Add Reader functionality into postlude.
parent
5675f8b10d
commit
bff2a04359
|
@ -18,4 +18,5 @@ library
|
||||||
hs-source-dirs: src
|
hs-source-dirs: src
|
||||||
default-language: Haskell2010
|
default-language: Haskell2010
|
||||||
build-depends: base >= 4.7 && < 5,
|
build-depends: base >= 4.7 && < 5,
|
||||||
mtl == 2.2.1
|
mtl == 2.2.1,
|
||||||
|
transformers == 0.5.2.0
|
||||||
|
|
|
@ -36,12 +36,23 @@ import Control.Monad as X
|
||||||
, return
|
, return
|
||||||
)
|
)
|
||||||
|
|
||||||
|
import Control.Monad.Reader as X
|
||||||
|
( MonadReader
|
||||||
|
, ask
|
||||||
|
, local
|
||||||
|
, reader
|
||||||
|
)
|
||||||
|
|
||||||
import Control.Monad.Trans as X
|
import Control.Monad.Trans as X
|
||||||
( MonadIO
|
( MonadIO
|
||||||
, lift
|
, lift
|
||||||
, liftIO
|
, liftIO
|
||||||
)
|
)
|
||||||
|
|
||||||
|
import Control.Monad.Trans.Reader as X
|
||||||
|
( ReaderT (..)
|
||||||
|
)
|
||||||
|
|
||||||
import Data.Bool as X
|
import Data.Bool as X
|
||||||
( Bool(..)
|
( Bool(..)
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue