on master help sign in
Removed MonadCatchIO
afb9caaMichael Snoyman
Text/Libyaml.hs+2−3
@@ -40,10 +40,9 @@ import Data.Data
40import Control.Monad.IO.Class
40import Control.Monad.IO.Class
41import Control.Monad.Trans.Class (lift)
41import Control.Monad.Trans.Class (lift)
42
42
43−import Control.Exception (throwIO, Exception)
43+import Control.Exception (throwIO, Exception, finally)
44import Data.Enumerator
44import Data.Enumerator
45import Control.Applicative
45import Control.Applicative
46−import "MonadCatchIO-transformers" Control.Monad.CatchIO (MonadCatchIO, finally)
47
46
48data Event =
47data Event =
49 EventStreamStart
48 EventStreamStart
@@ -456,7 +455,7 @@ newtype ToEventRawException = ToEventRawException CInt
456 deriving (Show, Typeable)
455 deriving (Show, Typeable)
457instance Exception ToEventRawException
456instance Exception ToEventRawException
458
457
459−decode :: MonadCatchIO m => B.ByteString -> Enumerator Event m a
458+decode :: MonadIO m => B.ByteString -> Enumerator Event m a
460decode bs i = do
459decode bs i = do
461 fp <- liftIO $ mallocForeignPtrBytes parserSize
460 fp <- liftIO $ mallocForeignPtrBytes parserSize
462 res <- liftIO $ withForeignPtr fp c_yaml_parser_initialize
461 res <- liftIO $ withForeignPtr fp c_yaml_parser_initialize
yaml.cabal+1−2
@@ -1,5 +1,5 @@
1name: yaml
1name: yaml
2−version: 0.4.0
2+version: 0.4.1
3license: BSD3
3license: BSD3
4license-file: LICENSE
4license-file: LICENSE
5author: Michael Snoyman <michael@snoyman.com>, Anton Ageev <antage@gmail.com>
5author: Michael Snoyman <michael@snoyman.com>, Anton Ageev <antage@gmail.com>
@@ -31,7 +31,6 @@ library
31 , transformers >= 0.1 && < 0.3
31 , transformers >= 0.1 && < 0.3
32 , bytestring >= 0.9.1.4 && < 0.10
32 , bytestring >= 0.9.1.4 && < 0.10
33 , enumerator >= 0.4 && < 0.5
33 , enumerator >= 0.4 && < 0.5
34− , MonadCatchIO-transformers >= 0.2.2 && < 0.3
35 exposed-modules: Text.Libyaml
34 exposed-modules: Text.Libyaml
36 ghc-options: -Wall
35 ghc-options: -Wall
37 c-sources: c/helper.c,
36 c-sources: c/helper.c,