Copyright | (c) Rose 2019 |
---|---|
License | BSD3 |
Maintainer | rose@lain.org.uk |
Stability | experimental |
Portability | POSIX |
Safe Haskell | Safe |
Language | Haskell2010 |
This module defines methods of controlling the flow of execution for Lazyboy.
Synopsis
- getLabel :: Lazyboy Integer
- getLocalLabel :: Lazyboy Label
- getGlobalLabel :: Lazyboy Label
- withLabel :: (Label -> Lazyboy ()) -> Lazyboy ()
- withLocalLabel :: (Label -> Lazyboy ()) -> Lazyboy ()
- embedFile :: FilePath -> Lazyboy Label
- embedImage :: FilePath -> Lazyboy Label
- embedBytes :: [Word8] -> Lazyboy Label
- freeze :: Lazyboy ()
- cond :: Condition -> Lazyboy () -> Lazyboy ()
Documentation
getLabel :: Lazyboy Integer Source #
Get a label, and in the process increment the counter used to track labels. this provides a safe interface to label retrieval and utilization.
getLocalLabel :: Lazyboy Label Source #
Get a local label. The name is guaranteed to be unique.
getGlobalLabel :: Lazyboy Label Source #
Get a global label. The name is guaranteed to be unique.
withLabel :: (Label -> Lazyboy ()) -> Lazyboy () Source #
Execute an action within a global label and pass the action the label.
withLocalLabel :: (Label -> Lazyboy ()) -> Lazyboy () Source #
Execute an action within a local label and pass the action the label.
embedFile :: FilePath -> Lazyboy Label Source #
Embed a file and return a global label for it. A jump over the block of data is added to prevent the image data being executed.
embedImage :: FilePath -> Lazyboy Label Source #
Embed an image and return a (global) label for it. A jump over the block of data is added to prevent the image data being executed.