packages feed

bluefin 0.0.12.1 → 0.0.14.0

raw patch · 4 files changed

+28/−3 lines, 4 filesdep ~bluefin-internalPVP: major bump suggested

API removals or changes: PVP suggests a major version bump

Dependency ranges changed: bluefin-internal

API changes (from Hackage documentation)

+ Bluefin.HandleReader: askHandle :: forall (e :: Effects) (es :: Effects) h. (e :> es, Handle h) => HandleReader h e -> Eff es (h es)
+ Bluefin.HandleReader: data () => HandleReader (h :: Effects -> Type) (e :: Effects)
+ Bluefin.HandleReader: localHandle :: forall (e :: Effects) (es :: Effects) h r. (e :> es, Handle h) => HandleReader h e -> (h es -> h es) -> Eff es r -> Eff es r
+ Bluefin.HandleReader: runHandleReader :: forall (e1 :: Effects) (es :: Effects) h r. (e1 :> es, Handle h) => h e1 -> (forall (e :: Effects). () => HandleReader h e -> Eff (e :& es) r) -> Eff es r
+ Bluefin.System.IO: hGetLine :: forall (e :: Effects) (es :: Effects). e :> es => Handle e -> Eff es String
+ Bluefin.System.IO: hIsEOF :: forall (e :: Effects) (es :: Effects). e :> es => Handle e -> Eff es Bool
- Bluefin.State: withState :: forall s (es :: Effects) a. s -> (forall (st :: Effects). () => State s st -> Eff (st :& es) (s -> a)) -> Eff es a
+ Bluefin.State: withState :: forall s (es :: Effects) a. s -> (forall (e :: Effects). () => State s e -> Eff (e :& es) (s -> a)) -> Eff es a

Files

CHANGELOG.md view
@@ -1,3 +1,13 @@+## 0.0.14.0++* Add `hGetLine` and `hIsEOF` to `Bluefin.System.IO`++* Add `Bluefin.HandleReader`++## 0.0.13.0++* No release+ ## 0.0.12.0  * Add `asks` and `local` to `Bluefin.Reader`
bluefin.cabal view
@@ -1,6 +1,6 @@ cabal-version:      3.0 name:               bluefin-version:            0.0.12.1+version:            0.0.14.0 license:            MIT license-file:       LICENSE author:             Tom Ellis@@ -27,6 +27,7 @@       Bluefin.EarlyReturn,       Bluefin.Eff,       Bluefin.Exception,+      Bluefin.HandleReader,       Bluefin.IO,       Bluefin.Jump,       Bluefin.Pipes,@@ -38,6 +39,6 @@       Bluefin.System.IO,       Bluefin.Writer,     build-depends:-      bluefin-internal >= 0.0.12.0 && < 0.1+      bluefin-internal >= 0.0.13.0 && < 0.1     hs-source-dirs:   src     default-language: Haskell2010
+ src/Bluefin/HandleReader.hs view
@@ -0,0 +1,12 @@+module Bluefin.HandleReader+  (-- * Handle+   HandleReader,+   -- * Handlers+   runHandleReader,+   -- * Effectful operations+   askHandle,+   localHandle,+  )+  where++import Bluefin.Internal
src/Bluefin/System/IO.hs view
@@ -1,4 +1,4 @@--- | A safer interface to "System.IO.Handle"+-- | A safer interface to @System.IO.'System.IO.Handle'@  module Bluefin.System.IO   ( -- * Handle@@ -11,6 +11,8 @@     hPutChar,     hPutStr,     hPutStrLn,+    hGetLine,+    hIsEOF,     hFlush,      -- * Unsafe