packages feed

libyaml-streamly 0.2.3.0 → 0.2.4.0

raw patch · 3 files changed

+6/−2 lines, 3 filesdep ~streamly-corePVP: major bump suggested

API removals or changes: PVP suggests a major version bump

Dependency ranges changed: streamly-core

API changes (from Hackage documentation)

- Text.Libyaml: decode :: (MonadCatch m, MonadIO m, MonadMask m) => ByteString -> Stream m Event
+ Text.Libyaml: decode :: forall (m :: Type -> Type). (MonadCatch m, MonadIO m, MonadMask m) => ByteString -> Stream m Event
- Text.Libyaml: decodeFile :: (MonadCatch m, MonadIO m, MonadMask m) => FilePath -> Stream m Event
+ Text.Libyaml: decodeFile :: forall (m :: Type -> Type). (MonadCatch m, MonadIO m, MonadMask m) => FilePath -> Stream m Event
- Text.Libyaml: decodeFileMarked :: (MonadCatch m, MonadIO m, MonadMask m) => FilePath -> Stream m MarkedEvent
+ Text.Libyaml: decodeFileMarked :: forall (m :: Type -> Type). (MonadCatch m, MonadIO m, MonadMask m) => FilePath -> Stream m MarkedEvent
- Text.Libyaml: decodeMarked :: (MonadCatch m, MonadIO m, MonadMask m) => ByteString -> Stream m MarkedEvent
+ Text.Libyaml: decodeMarked :: forall (m :: Type -> Type). (MonadCatch m, MonadIO m, MonadMask m) => ByteString -> Stream m MarkedEvent

Files

ChangeLog.md view
@@ -1,5 +1,9 @@ # Changelog for libyaml-streamly +## 0.2.4.0++* Allow ByteString that is the result of serialization to be freed: [https://github.com/snoyberg/yaml/pull/233](https://github.com/snoyberg/yaml/pull/233)+ ## 0.2.3.0  * migrate to streamly-core
libyaml-streamly.cabal view
@@ -1,6 +1,6 @@ cabal-version:      2.2 name:               libyaml-streamly-version:            0.2.3.0+version:            0.2.4.0 synopsis:           Low-level, streaming YAML interface via streamly. description:        Rewrite of libyaml in streamly category:           Text
src/Text/Libyaml.hs view
@@ -787,7 +787,7 @@     close _ fbuf = withForeignPtr fbuf $ \b -> do         ptr' <- c_get_buffer_buff b         len <- c_get_buffer_used b-        fptr <- newForeignPtr_ $ castPtr ptr'+        fptr <- newForeignPtr finalizerFree $ castPtr ptr'         return $ B.fromForeignPtr fptr 0 $ fromIntegral len