Portability | portable |
---|---|
Stability | provisional |
Maintainer | John Goerzen <jgoerzen@complete.org> |
HSH.Channel
Description
Copyright (c) 2006-2009 John Goerzen, jgoerzen@complete.org
- data Channel
- chanAsString :: Channel -> IO String
- chanAsBSL :: Channel -> IO ByteString
- chanAsBS :: Channel -> IO ByteString
- chanToHandle :: Bool -> Channel -> Handle -> IO ()
- class Channelizable a where
Documentation
The main type for communicating between commands. All are expected to be lazy.
Constructors
ChanString String | |
ChanBSL ByteString | |
ChanHandle Handle |
chanAsString :: Channel -> IO StringSource
chanAsBSL :: Channel -> IO ByteStringSource
chanAsBS :: Channel -> IO ByteStringSource
chanToHandle :: Bool -> Channel -> Handle -> IO ()Source
Writes the Channel to the given Handle. If the first parameter is True, do this in a separate thread and close the handle afterwards.
class Channelizable a whereSource