From fa32199f5ffc6405bd405e055051e11e85c80668 Mon Sep 17 00:00:00 2001 From: Josh Rahm Date: Thu, 3 Oct 2024 01:58:23 -0600 Subject: Another monolithic change. Not good git ettiquite. Import statements are fully implemented including compiling to an interface file for faster compilations. --- src/Language/Fiddle/Compiler/Expansion.hs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/Language/Fiddle/Compiler/Expansion.hs') diff --git a/src/Language/Fiddle/Compiler/Expansion.hs b/src/Language/Fiddle/Compiler/Expansion.hs index 7201686..1e8fbae 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 (pure ()) (\_ _ -> return ()) (\_ _ -> expandAst) +expansionPhase = CompilationPhase (pure ()) (\_ _ -> return ([], Just ())) (\_ _ -> expandAst) -- Shorthand for Identity type I = Identity @@ -108,8 +108,8 @@ instance AdvanceStage CurrentStage FiddleDecl where _ -> id instance AdvanceStage CurrentStage FiddleUnit where - advanceStage path (FiddleUnit decls a) = - FiddleUnit <$> reconfigureFiddleDecls path decls <*> pure a + advanceStage path (FiddleUnit _ decls a) = + FiddleUnit () <$> reconfigureFiddleDecls path decls <*> pure a instance AdvanceStage CurrentStage Expression where advanceStage _ = \case -- cgit