Skip to content

Commit

Permalink
Fix pipeline upToAnoma
Browse files Browse the repository at this point in the history
  • Loading branch information
paulcadman committed Feb 23, 2024
1 parent 2a09c78 commit c6ed50f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Juvix/Compiler/Pipeline.hs
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ upToGeb spec =
upToAnoma ::
(Members '[HighlightBuilder, Reader Parser.ParserResult, Reader EntryPoint, Reader Store.ModuleTable, Files, NameIdGen, Error JuvixError, GitClone, PathResolver] r) =>
Sem r (Nockma.Term Natural)
upToAnoma = upToStoredCore >>= \Core.CoreResult {..} -> Nockma.TermCell <$> coreToAnoma _coreResultModule
upToAnoma = upToStoredCore >>= \Core.CoreResult {..} -> Nockma.TermCell <$> storedCoreToAnoma _coreResultModule

upToCoreTypecheck ::
(Members '[HighlightBuilder, Reader Parser.ParserResult, Reader EntryPoint, Reader Store.ModuleTable, Files, NameIdGen, Error JuvixError, GitClone, PathResolver] r) =>
Expand All @@ -144,6 +144,9 @@ strippedCoreToTree = return . Tree.fromCore . Stripped.fromCore . Core.computeCo
storedCoreToTree :: (Members '[Error JuvixError, Reader EntryPoint] r) => Core.TransformationId -> Core.Module -> Sem r Tree.InfoTable
storedCoreToTree checkId = Core.toStripped checkId >=> strippedCoreToTree

storedCoreToAnoma :: (Members '[Error JuvixError, Reader EntryPoint] r) => Core.Module -> Sem r (Nockma.Cell Natural)
storedCoreToAnoma = storedCoreToTree Core.CheckAnoma >=> treeToAnoma

storedCoreToAsm :: (Members '[Error JuvixError, Reader EntryPoint] r) => Core.Module -> Sem r Asm.InfoTable
storedCoreToAsm = storedCoreToTree Core.CheckExec >=> treeToAsm

Expand Down

0 comments on commit c6ed50f

Please sign in to comment.