@@ -434,7 +434,7 @@ readWith chunkSize h = A.flattenArrays $ readChunksUpto chunkSize h
435-- @since 0.7.0
435-- @since 0.7.0
436{-# INLINE toBytes #-}
436{-# INLINE toBytes #-}
437−toBytes :: (MonadIO m) => Socket -> Stream m Word8
437+toBytes :: MonadIO m => Socket -> Stream m Word8
438toBytes = AS.concat . toChunks
438toBytes = AS.concat . toChunks
440-- | Unfolds the tuple @(bufsize, socket)@ into a byte stream, read requests
440-- | Unfolds the tuple @(bufsize, socket)@ into a byte stream, read requests
@@ -590,7 +590,7 @@ write = toHandleWith defaultChunkSize
591-- @since 0.7.0
591-- @since 0.7.0
592{-# INLINE readUtf8 #-}
592{-# INLINE readUtf8 #-}
593−readUtf8 :: (MonadIO m) => Handle -> Stream m Char
593+readUtf8 :: MonadIO m => Handle -> Stream m Char
594readUtf8 = decodeUtf8 . read
594readUtf8 = decodeUtf8 . read
@@ -612,7 +612,7 @@ writeUtf8 h s = write h $ encodeUtf8 s
613-- @since 0.7.0
613-- @since 0.7.0
614{-# INLINE writeUtf8ByLines #-}
614{-# INLINE writeUtf8ByLines #-}
615−writeUtf8ByLines :: (MonadIO m) => Handle -> Stream m Char -> m ()
615+writeUtf8ByLines :: MonadIO m => Handle -> Stream m Char -> m ()
616writeUtf8ByLines = undefined
616writeUtf8ByLines = undefined
618-- | Read UTF-8 lines from a file handle and apply the specified fold to each
618-- | Read UTF-8 lines from a file handle and apply the specified fold to each
@@ -620,7 +620,7 @@ writeUtf8ByLines = undefined
621-- @since 0.7.0
621-- @since 0.7.0
622{-# INLINE readLines #-}
622{-# INLINE readLines #-}
623−readLines :: (MonadIO m) => Handle -> Fold m Char b -> Stream m b
623+readLines :: MonadIO m => Handle -> Fold m Char b -> Stream m b
624readLines h f = foldLines (readUtf8 h) f
624readLines h f = foldLines (readUtf8 h) f
626-------------------------------------------------------------------------------
626-------------------------------------------------------------------------------