I seem unable to find where two relatively simple Haskell methods are defined.
It's about ReaderT
. I am looking for its implementation of ask
and local
, as requested by the MonadReader
contract.
At https://hackage.haskell.org/package/mtl-2.1.2/docs/src/Control-Monad-Reader-Class.html#ask I read:
instance Monad m => MonadReader r (ReaderT r m) where
ask = ReaderT.ask
local = ReaderT.local
but then I cannot find neither ReaderT.ask
nor ReaderT.local
anywhere.
It is the first time that I find no implementation by perusing Hackage.
Am I missing something?