diff options
author | Josh Rahm <joshuarahm@gmail.com> | 2024-09-28 10:30:49 -0600 |
---|---|---|
committer | Josh Rahm <joshuarahm@gmail.com> | 2024-09-28 10:30:49 -0600 |
commit | 35b7ae9561b3dc312b857cadb3e99e14594d29a6 (patch) | |
tree | d964ff6e1c144e3f932164db0bbb9bbe0bb27dd7 /src/Language/Fiddle/Compiler/Expansion.hs | |
parent | 21e6e5940ecb462436b8dc94428c5cee5cdc9072 (diff) | |
download | fiddle-35b7ae9561b3dc312b857cadb3e99e14594d29a6.tar.gz fiddle-35b7ae9561b3dc312b857cadb3e99e14594d29a6.tar.bz2 fiddle-35b7ae9561b3dc312b857cadb3e99e14594d29a6.zip |
Option parsing with optparse-applicative
Diffstat (limited to 'src/Language/Fiddle/Compiler/Expansion.hs')
-rw-r--r-- | src/Language/Fiddle/Compiler/Expansion.hs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Language/Fiddle/Compiler/Expansion.hs b/src/Language/Fiddle/Compiler/Expansion.hs index 77ccf6c..7201686 100644 --- a/src/Language/Fiddle/Compiler/Expansion.hs +++ b/src/Language/Fiddle/Compiler/Expansion.hs @@ -39,7 +39,7 @@ expandAst :: FiddleUnit CurrentStage I Annot -> Compile () (FiddleUnit Expanded expandAst = fmap snd . subCompile (State [] []) . advanceStage (Path mempty) expansionPhase :: CompilationPhase CurrentStage Expanded -expansionPhase = CompilationPhase (const $ return ()) (\() -> expandAst) +expansionPhase = CompilationPhase (pure ()) (\_ _ -> return ()) (\_ _ -> expandAst) -- Shorthand for Identity type I = Identity |