Skip to content

Commit

Permalink
fix prettyprinting of import statements
Browse files Browse the repository at this point in the history
  • Loading branch information
janmasrovira committed Jan 22, 2025
1 parent 3601359 commit eee20b1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/Juvix/Compiler/Concrete/Print/Base.hs
Original file line number Diff line number Diff line change
Expand Up @@ -1422,9 +1422,9 @@ instance (SingI s) => PrettyPrint (Import s) where
ppCode (i ^. importKw)
<+> ppModulePathType (i ^. importModulePath)
<+?> ppAlias
<+?> open'
<+?> usingHiding'
<+?> public'
<+?> open'
where
ppAlias :: Maybe (Sem r ())
ppAlias = case i ^. importAsName of
Expand Down
4 changes: 4 additions & 0 deletions tests/positive/Format.juvix
Original file line number Diff line number Diff line change
Expand Up @@ -559,6 +559,10 @@ module PublicImports;
axiom a : Inner.X.Y.Z.Nat;
end;

module Issue3287;
import Stdlib.Prelude as E using {Nat} public open public;
end;

--- Judoc comment 0
syntax fixity aaa := binary {};

Expand Down

0 comments on commit eee20b1

Please sign in to comment.