on master help sign in
Mention changelog in deprecation message
1a89d20Harendra Kumar
src/Streamly/Prelude.hs+4−2
@@ -874,7 +874,8 @@ each = K.fromFoldable
874-- | Read lines from an IO Handle into a stream of Strings.
874-- | Read lines from an IO Handle into a stream of Strings.
875--
875--
876-- @since 0.1.0
876-- @since 0.1.0
877+{-# DEPRECATED fromHandle
877−{-# DEPRECATED fromHandle "Please use Streamly.FileSystem.Handle instead." #-}
878+ "Please use Streamly.FileSystem.Handle module (see the changelog)" #-}
878fromHandle :: (IsStream t, MonadIO m) => IO.Handle -> t m String
879fromHandle :: (IsStream t, MonadIO m) => IO.Handle -> t m String
879fromHandle h = go
880fromHandle h = go
880 where
881 where
@@ -1589,7 +1590,8 @@ _toListRev = D.toListRev . toStreamD
1589-- Write a stream of Strings to an IO Handle.
1590-- Write a stream of Strings to an IO Handle.
1590--
1591--
1591-- @since 0.1.0
1592-- @since 0.1.0
1593+{-# DEPRECATED toHandle
1592−{-# DEPRECATED toHandle "Please use Streamly.FileSystem.Handle instead." #-}
1594+ "Please use Streamly.FileSystem.Handle module (see the changelog)" #-}
1593toHandle :: MonadIO m => IO.Handle -> SerialT m String -> m ()
1595toHandle :: MonadIO m => IO.Handle -> SerialT m String -> m ()
1594toHandle h m = go m
1596toHandle h m = go m
1595 where
1597 where