unliftio 0.2.19 → 0.2.20
raw patch · 3 files changed
+12/−3 lines, 3 files
Files
- ChangeLog.md +4/−0
- src/UnliftIO/IO.hs +7/−0
- unliftio.cabal +1/−3
ChangeLog.md view
@@ -1,5 +1,9 @@ # Changelog for unliftio +## 0.2.20++* Add lifted `System.IO.openFile` (https://github.com/fpco/unliftio/pull/88)+ ## 0.2.19 * Add `Eq` instance for `StringException` (https://github.com/fpco/unliftio/pull/83)
src/UnliftIO/IO.hs view
@@ -9,6 +9,7 @@ , IO.stderr , withFile , withBinaryFile+ , openFile , hClose , hFlush , hFileSize@@ -50,6 +51,12 @@ -- @since 0.1.0.0 withBinaryFile :: MonadUnliftIO m => FilePath -> IOMode -> (Handle -> m a) -> m a withBinaryFile fp mode inner = withRunInIO $ \run -> IO.withBinaryFile fp mode $ run . inner++-- | Lifted version of 'IO.openFile'+--+-- @since 0.2.20+openFile :: MonadIO m => FilePath -> IOMode -> m Handle+openFile fp = liftIO . IO.openFile fp -- | Lifted version of 'IO.hClose' --
unliftio.cabal view
@@ -3,11 +3,9 @@ -- This file has been generated from package.yaml by hpack version 0.34.4. -- -- see: https://github.com/sol/hpack------ hash: 58a862786103e0ea7ccdb111f5dc9c0088d8bdc74476f700df5b16ee6dc36a02 name: unliftio-version: 0.2.19+version: 0.2.20 synopsis: The MonadUnliftIO typeclass for unlifting monads to IO (batteries included) description: Please see the documentation and README at <https://www.stackage.org/package/unliftio> category: Control