With the following code in Main.hs:
import Control.Monad.Reader
data Config = Config {discountRate :: Float,
currencySym :: String}
discount :: Float -> Reader Config Float
discount amt = do
discountRate' <- asks discountRate
return (amt * (1 - discountRate' / 100))
If you highlight "Reader" and then Get Info on it, you get correct type information with documentation link for Control.Monad.Trans.Reader. However, the link takes you to http://support.hfm.io/1.5/api/transformers-0.5.2.0/Control-Monad-Reader.html#t:Reader which is incorrect. It should take you to http://support.hfm.io/1.5/api/transformers-0.5.2.0/Control-Monad-Trans-Reader.html#t:Reader