File tree 5 files changed +13
-4
lines changed 5 files changed +13
-4
lines changed Original file line number Diff line number Diff line change @@ -13,11 +13,13 @@ module Control.Monad.RWS
13
13
14
14
import Prelude
15
15
16
- import Control.Monad.RWS.Trans
17
16
import Data.Identity
18
17
import Data.Monoid
19
18
import Data.Tuple
20
19
20
+ import Control.Monad.RWS.Class
21
+ import Control.Monad.RWS.Trans
22
+
21
23
-- | The `RWS` monad is a synonym for the `RWST` monad transformer, applied
22
24
-- | to the `Identity` monad.
23
25
type RWS r w s = RWST r w s Identity
Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ import Prelude
12
12
13
13
import Data.Monoid
14
14
15
+ import Control.Monad.Trans
15
16
import Control.Monad.Reader.Class
16
17
import Control.Monad.State.Class
17
18
import Control.Monad.Writer.Class
Original file line number Diff line number Diff line change @@ -10,9 +10,11 @@ module Control.Monad.Reader
10
10
11
11
import Prelude
12
12
13
- import Control.Monad.Reader.Trans
14
13
import Data.Identity
15
14
15
+ import Control.Monad.Reader.Class
16
+ import Control.Monad.Reader.Trans
17
+
16
18
-- | The `Reader` monad is a synonym for the `ReaderT` monad transformer, applied
17
19
-- | to the `Identity` monad.
18
20
type Reader r = ReaderT r Identity
Original file line number Diff line number Diff line change @@ -12,10 +12,12 @@ module Control.Monad.State
12
12
13
13
import Prelude
14
14
15
- import Control.Monad.State.Trans
16
15
import Data.Identity
17
16
import Data.Tuple
18
17
18
+ import Control.Monad.State.Class
19
+ import Control.Monad.State.Trans
20
+
19
21
-- | The `State` monad is a synonym for the `StateT` monad transformer, applied
20
22
-- | to the `Identity` monad.
21
23
type State s = StateT s Identity
Original file line number Diff line number Diff line change @@ -10,11 +10,13 @@ module Control.Monad.Writer
10
10
11
11
import Prelude
12
12
13
- import Control.Monad.Writer.Trans
14
13
import Data.Identity
15
14
import Data.Monoid
16
15
import Data.Tuple
17
16
17
+ import Control.Monad.Writer.Class
18
+ import Control.Monad.Writer.Trans
19
+
18
20
-- | The `Writer` monad is a synonym for the `WriterT` monad transformer, applied
19
21
-- | to the `Identity` monad.
20
22
type Writer w = WriterT w Identity
You can’t perform that action at this time.
0 commit comments