Copyright | Claude Heiland-Allen 2010 |
---|---|
Maintainer | claude@mathr.co.uk |
Safe Haskell | None |
Language | Haskell98 |
Support code used by the output of binembed --output-hs=
.
For example, given MyData.binembed
listing some files, you might
get at the contents embedded into your executable using:
import MyData -- which re-exports this module main = do myData' <- unBinEmbed myData ...
See the 'binembed-example' package for a more detailed example.
- data Node a
- unBinEmbed :: Node (IO ByteString) -> IO (Node ByteString)
- unBinEmbedFile :: Ptr () -> Ptr () -> IO ByteString
Documentation
A directory tree
unBinEmbed :: Node (IO ByteString) -> IO (Node ByteString) Source
Unpack embedded data.
unBinEmbedFile :: Ptr () -> Ptr () -> IO ByteString Source
Repack the contents between two pointers. Your code probably doesn't need to call this, but it's needed in generated code.