handle-like 0.1.0.1 → 0.1.0.2
raw patch · 2 files changed
+5/−1 lines, 2 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
Files
- handle-like.cabal +1/−1
- src/Data/HandleLike.hs +4/−0
handle-like.cabal view
@@ -2,7 +2,7 @@ build-type: Simple name: handle-like-version: 0.1.0.1+version: 0.1.0.2 stability: Experimental author: Yoshikuni Jujo <PAF01143@nifty.ne.jp> maintainer: Yoshikuni Jujo <PAF01143@nifty.ne.jp>
src/Data/HandleLike.hs view
@@ -51,6 +51,9 @@ "critical" -> Critical _ -> Moderate +bufferSize :: Int+bufferSize = 65536+ instance HandleLike Handle where type HandleMonad Handle = IO hlPut = BS.hPut@@ -58,6 +61,7 @@ -- hlGetByte h = do [b] <- BS.unpack <$> BS.hGet h 1; return b hlGetLine = (chopCR `liftM`) . BS.hGetLine -- hlGetContent = flip BS.hGet 1+ hlGetContent = flip BS.hGetSome bufferSize hlDebug _ Critical = BS.hPutStr stderr hlDebug _ _ = const $ return () hlFlush = hFlush