-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ohua-dev/ohuac#12] Starting with some basic machinery
- Loading branch information
1 parent
233f6bb
commit 007c5e9
Showing
2 changed files
with
26 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
module Ohua.Stage (stage) where | ||
|
||
import Ohua.Prelude | ||
|
||
stage :: (MonadReadEnvironment m, MonadIO m, Show code, Pretty code) => StageName -> code -> m () | ||
stage stName code = do | ||
stageH <- fromEnv stageHandling | ||
let (dumpInstructions, shouldAbort) = stageH stName | ||
|
||
|
||
when shouldAbort exitSuccess |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters