Rejig mtl; trac proposal #1127
Moved the MonadFoo classes to Control.Monad.Foo.Class. Put the instances consistently in the module which defines the type they give an instance for. Made the existing transformers lazy to match the existing monads, and put them in Control.Monad.Foo.Lazy. Also added Control.Monad.Foo.Strict with strict monads and transformers. Control.Monad.Foo still exports what it used to. Created a MonadRWS class. Made the MonadWriter w (ErrorT e m) instance strict to match everything else.
Showing
- Control/Monad/Cont.hs 45 additions, 64 deletionsControl/Monad/Cont.hs
- Control/Monad/Cont/Class.hs 24 additions, 0 deletionsControl/Monad/Cont/Class.hs
- Control/Monad/Error.hs 93 additions, 158 deletionsControl/Monad/Error.hs
- Control/Monad/Error/Class.hs 93 additions, 0 deletionsControl/Monad/Error/Class.hs
- Control/Monad/Identity.hs 14 additions, 14 deletionsControl/Monad/Identity.hs
- Control/Monad/List.hs 48 additions, 44 deletionsControl/Monad/List.hs
- Control/Monad/RWS.hs 9 additions, 157 deletionsControl/Monad/RWS.hs
- Control/Monad/RWS/Class.hs 35 additions, 0 deletionsControl/Monad/RWS/Class.hs
- Control/Monad/RWS/Lazy.hs 179 additions, 0 deletionsControl/Monad/RWS/Lazy.hs
- Control/Monad/RWS/Strict.hs 175 additions, 0 deletionsControl/Monad/RWS/Strict.hs
- Control/Monad/Reader.hs 89 additions, 72 deletionsControl/Monad/Reader.hs
- Control/Monad/Reader/Class.hs 42 additions, 0 deletionsControl/Monad/Reader/Class.hs
- Control/Monad/State.hs 9 additions, 318 deletionsControl/Monad/State.hs
- Control/Monad/State/Class.hs 62 additions, 0 deletionsControl/Monad/State/Class.hs
- Control/Monad/State/Lazy.hs 300 additions, 0 deletionsControl/Monad/State/Lazy.hs
- Control/Monad/State/Strict.hs 299 additions, 0 deletionsControl/Monad/State/Strict.hs
- Control/Monad/Trans.hs 12 additions, 12 deletionsControl/Monad/Trans.hs
- Control/Monad/Writer.hs 9 additions, 150 deletionsControl/Monad/Writer.hs
- Control/Monad/Writer/Class.hs 58 additions, 0 deletionsControl/Monad/Writer/Class.hs
- Control/Monad/Writer/Lazy.hs 150 additions, 0 deletionsControl/Monad/Writer/Lazy.hs
Loading
Please register or sign in to comment