Ticket #3777: mtl.dpatch

File mtl.dpatch, 1.5 KB (added by AntoineLatter, 4 years ago)

patch for mtl head

Line 
1Sun Dec 20 19:51:55 CST 2009  Antoine Latter <aslatter@gmail.com>
2  * move MonadIO class to its own package
3
4New patches:
5
6[move MonadIO class to its own package
7Antoine Latter <aslatter@gmail.com>**20091221015155
8 Ignore-this: 660ad64c851ee783ab235fe697554515
9] {
10hunk ./Control/Monad/Trans.hs 26
11     MonadIO(..),
12   ) where
13 
14+import Control.Monad.IO
15+
16 -- ---------------------------------------------------------------------------
17 -- MonadTrans class
18 --
19hunk ./Control/Monad/Trans.hs 37
20 
21 class MonadTrans t where
22     lift :: Monad m => m a -> t m a
23-
24-class (Monad m) => MonadIO m where
25-    liftIO :: IO a -> m a
26-
27-instance MonadIO IO where
28-    liftIO = id
29hunk ./mtl.cabal 38
30     Control.Monad.Writer.Class
31     Control.Monad.Writer.Lazy
32     Control.Monad.Writer.Strict
33-build-depends: base >= 3 && < 5
34+build-depends: base >= 3 && < 5, monad-io >= 0.1 && < 0.2
35 extensions: MultiParamTypeClasses,
36             FunctionalDependencies,
37             FlexibleInstances,
38}
39
40Context:
41
42[Add comments to "OPTIONS_GHC -fno-warn-orphans" pragmas
43Ian Lynagh <igloo@earth.li>**20091205165911
44 Also changed an OPTIONS pragma to OPTIONS_GHC
45]
46[De-orphan the "MonadReader r ((->) r)" instance
47Ian Lynagh <igloo@earth.li>**20091124143540]
48[Fix "Cabal check" warnings
49Ian Lynagh <igloo@earth.li>**20090811215913]
50[Fix unused import warnings
51Ian Lynagh <igloo@earth.li>**20090707133643]
52[Remove unused imports
53Ian Lynagh <igloo@earth.li>**20090707115851]
54[TAG 2009-06-25
55Ian Lynagh <igloo@earth.li>**20090625160255]
56Patch bundle hash:
57746b0dfba35bc3dfc26c42df0c94721ca23f021b