This repository was archived by the owner on Aug 3, 2024. It is now read-only.
This repository was archived by the owner on Aug 3, 2024. It is now read-only.
runReaderT has the wrong type #413
Closed
Description
Taking the mtl library, using the --hoogle
flag, I generates:
newtype ReaderT r (m :: * -> *) a :: * -> (* -> *) -> * -> *
[ReaderT] :: (r -> m a) -> ReaderT r a
[runReaderT] :: ReaderT r a -> r -> m a
runReaderT :: ReaderT r m a -> r -> m a
Observe that the first runReaderT
(the one in brackets) is missing the m
field from the ReaderT
type. Originally reported at https://code.google.com/p/ndmitchell/issues/detail?id=557