on master help sign in
Removed MonadCatchIO
commitafb9caacf9035261dc5aa49fc7c346bce170deaa authorMichael Snoyman <michael@snoyman.com> dateFri 15 Oct 2010, 13:49 (16 years ago) parent6b49eb1
2 files changed+3−5
Text/Libyaml.hs+2−3 yaml.cabal+1−2
Text/Libyaml.hs+2−3
@@ -40,10 +40,9 @@ import Data.Data
4040import Control.Monad.IO.Class
4141import Control.Monad.Trans.Class (lift)
4242
43−import Control.Exception (throwIO, Exception)
43+import Control.Exception (throwIO, Exception, finally)
4444import Data.Enumerator
4545import Control.Applicative
46−import "MonadCatchIO-transformers" Control.Monad.CatchIO (MonadCatchIO, finally)
4746
4847data Event =
4948 EventStreamStart
@@ -456,7 +455,7 @@ newtype ToEventRawException = ToEventRawException CInt
456455 deriving (Show, Typeable)
457456instance Exception ToEventRawException
458457
459−decode :: MonadCatchIO m => B.ByteString -> Enumerator Event m a
458+decode :: MonadIO m => B.ByteString -> Enumerator Event m a
460459decode bs i = do
461460 fp <- liftIO $ mallocForeignPtrBytes parserSize
462461 res <- liftIO $ withForeignPtr fp c_yaml_parser_initialize
yaml.cabal+1−2
@@ -1,5 +1,5 @@
11name: yaml
2−version: 0.4.0
2+version: 0.4.1
33license: BSD3
44license-file: LICENSE
55author: Michael Snoyman <michael@snoyman.com>, Anton Ageev <antage@gmail.com>
@@ -31,7 +31,6 @@ library
3131 , transformers >= 0.1 && < 0.3
3232 , bytestring >= 0.9.1.4 && < 0.10
3333 , enumerator >= 0.4 && < 0.5
34− , MonadCatchIO-transformers >= 0.2.2 && < 0.3
3534 exposed-modules: Text.Libyaml
3635 ghc-options: -Wall
3736 c-sources: c/helper.c,