concept Reader in category haskell
appears as: Reader, Reader

This is an excerpt from Manning's book Haskell in Depth.
The Readermonad
The idea of the
Readermonad is to pass a configuration implicitly (meaning we don’t have to do that explicitly) and provide an interface to consult it whenever required. An implicit configuration passing is implemented by theMonadinstance forReader. The interface is described by the following type class:class Monad m => MonadReader r m | m -> r where ask :: m r local :: (r -> r) -> m a -> m a reader :: (r -> a) -> m aNote the head of the type class definition: we define multiparametric type class
MonadReader r mwhererrefers to the type of configuration (something that can be read inside the computation) andmrefers to some monad. TheReadermonad implements an instance of theMonadReadertype class, there are other implementations as well.