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-Inferred |
Language | Haskell98 |
HSH.Channel
Description
Copyright (c) 2006-2009 John Goerzen, jgoerzen@complete.org
Synopsis
- data Channel
- = ChanString String
- | ChanBSL ByteString
- | ChanHandle Handle
- 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 |
Instances
ShellCommand (Channel -> IO Channel) Source # | |
Defined in HSH.Command Methods fdInvoke :: (Channel -> IO Channel) -> Environment -> Channel -> IO (Channel, [InvokeResult]) Source # | |
Show (Channel -> IO Channel) | |
chanAsString :: Channel -> IO String Source #
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 #
Instances
Channelizable Handle Source # | |
Defined in HSH.Channel | |
Channelizable ByteString Source # | |
Defined in HSH.Channel | |
Channelizable ByteString Source # | |
Defined in HSH.Channel | |
Channelizable String Source # | |
Defined in HSH.Channel |