summaryrefslogtreecommitdiff
path: root/src/Language/Fiddle/Compiler/Expansion.hs
diff options
context:
space:
mode:
authorJosh Rahm <joshuarahm@gmail.com>2024-09-28 10:30:49 -0600
committerJosh Rahm <joshuarahm@gmail.com>2024-09-28 10:30:49 -0600
commit35b7ae9561b3dc312b857cadb3e99e14594d29a6 (patch)
treed964ff6e1c144e3f932164db0bbb9bbe0bb27dd7 /src/Language/Fiddle/Compiler/Expansion.hs
parent21e6e5940ecb462436b8dc94428c5cee5cdc9072 (diff)
downloadfiddle-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.hs2
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