| Copyright | Copyright (C) 2006-2009 John Goerzen |
|---|---|
| License | GNU LGPL, version 2.1 or above |
| Maintainer | John Goerzen <jgoerzen@complete.org> |
| Stability | provisional |
| Portability | portable |
| Safe Haskell | Safe |
| Language | Haskell98 |
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 |
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 where Source #
Minimal complete definition