Safe Haskell | None |
---|---|
Language | Haskell98 |
- main :: IO ()
- shdatResolve :: ([Word], [IOStream], [IOStream]) -> (Word, IOStream, [IOStream])
- shdatCheckStreams :: [IOStream] -> Maybe ByteString
- tmpxResolve :: ([Word], [IOStream], [IOStream], [(Var, Val)], [ByteString], [(Bool, Bool)], [Bool], [ByteSource]) -> (Word, IOStream, [IOStream], [(Var, Val)], ByteString, (Bool, Bool), Bool, ByteSource)
- tmpxCheckStreams :: [IOStream] -> ByteSource -> Maybe ByteString
- tmpxOpen :: Word -> [(Var, Val)] -> (Bool, Bool, Bool) -> ByteString -> ByteSource -> IO TMPX
- openByteSource :: ByteSource -> IO ByteString
- inIOStream :: IOStream -> IO ByteString
- outIOStream :: IOStream -> ByteString -> IO ()
- arIOStream :: IOStream -> IO (Maybe (Tar, ByteString))
- defaultBlock :: Word
- defaultTask :: ByteSource
- data ZOM
- = Zero
- | One !ByteString
- | Many ![ByteString]
- streamsMessage :: Foldable t => t ZOM -> Maybe ByteString
- blockMessage :: ByteString -> [ByteString] -> ByteString -> ByteString
- err :: ByteString -> IO ()
- die :: ByteString -> IO b
Documentation
shdatResolve :: ([Word], [IOStream], [IOStream]) -> (Word, IOStream, [IOStream]) Source #
Apply defaulting and overrides appropriate to SHDAT
programs.
shdatCheckStreams :: [IOStream] -> Maybe ByteString Source #
tmpxResolve :: ([Word], [IOStream], [IOStream], [(Var, Val)], [ByteString], [(Bool, Bool)], [Bool], [ByteSource]) -> (Word, IOStream, [IOStream], [(Var, Val)], ByteString, (Bool, Bool), Bool, ByteSource) Source #
Apply defaulting and overrides appropriate to TMPX
programs.
tmpxCheckStreams :: [IOStream] -> ByteSource -> Maybe ByteString Source #
tmpxOpen :: Word -> [(Var, Val)] -> (Bool, Bool, Bool) -> ByteString -> ByteSource -> IO TMPX Source #
openByteSource :: ByteSource -> IO ByteString Source #
inIOStream :: IOStream -> IO ByteString Source #
outIOStream :: IOStream -> ByteString -> IO () Source #
arIOStream :: IOStream -> IO (Maybe (Tar, ByteString)) Source #
defaultBlock :: Word Source #
By default, we encode binary data to HERE docs 4MiB at a time. (The encoded result may be up to 10% larger, though 1% is more likely.)
defaultTask :: ByteSource Source #
The default task is a no-op call to /bin/true
.
streamsMessage :: Foldable t => t ZOM -> Maybe ByteString Source #
blockMessage :: ByteString -> [ByteString] -> ByteString -> ByteString Source #
err :: ByteString -> IO () Source #
die :: ByteString -> IO b Source #