Skip to content

Commit

Permalink
preserve order of inductive type declarations in Core
Browse files Browse the repository at this point in the history
  • Loading branch information
lukaszcz committed Dec 3, 2024
1 parent 837b13b commit b92b14e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Juvix/Compiler/Core/Pretty/Base.hs
Original file line number Diff line number Diff line change
Expand Up @@ -574,7 +574,7 @@ instance PrettyCode InfoTable where
ppCode :: forall r. (Member (Reader Options) r) => InfoTable -> Sem r (Doc Ann)
ppCode tbl = do
let header x = annotate AnnImportant (Str.commentLineStart <+> x) <> line
tys <- ppInductives (toList (tbl ^. infoInductives))
tys <- ppInductives (sortOn (^. inductiveSymbol) $ toList (tbl ^. infoInductives))
sigs <- ppSigs (sortOn (^. identifierSymbol) $ toList (tbl ^. infoIdentifiers))
ctx' <- ppContext (tbl ^. identContext)
axioms <- vsep <$> mapM ppCode (tbl ^. infoAxioms)
Expand Down

0 comments on commit b92b14e

Please sign in to comment.