Skip to content

Commit

Permalink
more docs lol
Browse files Browse the repository at this point in the history
  • Loading branch information
ix committed May 15, 2019
1 parent 8e6e548 commit 19de647
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Lazyboy/Control.hs
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,11 @@ getLabel = do
modify (+ 1)
return label

-- | Get a local label. The name is guaranteed to be unique.
getLocalLabel :: Lazyboy Label
getLocalLabel = Local <$> getLabel

-- | Get a global label. The name is guaranteed to be unique.
getGlobalLabel :: Lazyboy Label
getGlobalLabel = Global <$> getLabel

Expand All @@ -44,7 +46,8 @@ withLocalLabel block = do
tell [LABEL label]
block label

-- | Embed a file and return a (global) label for it.
-- | 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.
embedFile :: FilePath -> Lazyboy Label
embedFile file = do
label <- getGlobalLabel
Expand Down

0 comments on commit 19de647

Please sign in to comment.