Safe Haskell | None |
---|
- main :: IO ()
- shdatResolve :: ([Word], [IOStream], [IOStream]) -> (Word, IOStream, [IOStream])
- shdatCheckStreams :: [IOStream] -> Maybe ByteString
- tmpxResolve :: ([Word], [IOStream], [IOStream], [(Var, Val)], [(Bool, Bool)], [ByteSource]) -> (Word, IOStream, [IOStream], [(Var, Val)], (Bool, Bool), ByteSource)
- tmpxCheckStreams :: [IOStream] -> ByteSource -> Maybe ByteString
- tmpxOpen :: Word -> [(Var, Val)] -> (Bool, Bool) -> 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 :: [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.
tmpxResolve :: ([Word], [IOStream], [IOStream], [(Var, Val)], [(Bool, Bool)], [ByteSource]) -> (Word, IOStream, [IOStream], [(Var, Val)], (Bool, Bool), ByteSource)Source
Apply defaulting and overrides appropriate to TMPX
programs.
tmpxCheckStreams :: [IOStream] -> ByteSource -> Maybe ByteStringSource
inIOStream :: IOStream -> IO ByteStringSource
outIOStream :: IOStream -> ByteString -> IO ()Source
arIOStream :: IOStream -> IO (Maybe (Tar, ByteString))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 :: ByteSourceSource
The default task is a no-op call to /bin/true
.
streamsMessage :: [ZOM] -> Maybe ByteStringSource
blockMessage :: ByteString -> [ByteString] -> ByteString -> ByteStringSource
err :: ByteString -> IO ()Source
die :: ByteString -> IO bSource