Skip to content

Commit 8ea9d73

Browse files
fix doctest in Channel/Type
1 parent 8495fb0 commit 8ea9d73

File tree

1 file changed

+10
-1
lines changed
  • src/Streamly/Internal/Data/Stream/Channel

1 file changed

+10
-1
lines changed

src/Streamly/Internal/Data/Stream/Channel/Type.hs

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ module Streamly.Internal.Data.Stream.Channel.Type
4444
-- *** Diagnostics
4545
, inspect
4646

47-
-- *** Resource cleanup
47+
-- *** Resource management
4848
, useAcquire
4949
, clearAcquire
5050

@@ -589,6 +589,15 @@ _getBound = _bound
589589
--
590590
-- Here is an example:
591591
--
592+
-- >>> import Control.Monad (when)
593+
-- >>> import Control.Concurrent (threadDelay)
594+
-- >>> import Data.Function ((&))
595+
-- >>> import System.IO (hClose, IOMode(..), openFile)
596+
--
597+
-- >>> import qualified Streamly.Data.Fold as Fold
598+
-- >>> import qualified Streamly.Data.Stream.Prelude as Stream
599+
-- >>> import qualified Streamly.Control.Exception as Exception
600+
--
592601
-- >>> :{
593602
-- close x h = do
594603
-- putStrLn $ "closing: " ++ x

0 commit comments

Comments
 (0)