explicit-iomodes 0.1 → 0.1.1
raw patch · 2 files changed
+8/−4 lines, 2 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
+ System.IO.ExplicitIOModes: regularHandle :: Handle ioMode -> Handle
Files
System/IO/ExplicitIOModes.hs view
@@ -37,6 +37,7 @@ , SIO.FilePath , Handle+ , regularHandle -- ** IO Modes @@ -138,7 +139,7 @@ -- ** Special cases for standard input and output - -- | These functions are also exported by the "Prelude".+ -- | These functions are also exported by the \"Prelude\". , SIO.interact , SIO.putChar@@ -182,11 +183,14 @@ -- | A handle to a file with an explicit IOMode. -- -- Wraps: @System.IO.@'SIO.Handle'.-newtype Handle ioMode = Handle { unHandle :: SIO.Handle }+newtype Handle ioMode = Handle+ { -- | Retrieves the regular @System.IO.@'SIO.Handle'.+ regularHandle :: SIO.Handle+ } deriving ( Show, Eq, Typeable ) wrap :: (SIO.Handle -> a) -> (Handle ioMode -> a)-wrap f = f . unHandle+wrap f = f . regularHandle -- ** IO Modes
explicit-iomodes.cabal view
@@ -1,5 +1,5 @@ name: explicit-iomodes-version: 0.1+version: 0.1.1 cabal-version: >=1.6 build-type: Simple license: BSD3