Skip to content

Commit

Permalink
print
Browse files Browse the repository at this point in the history
  • Loading branch information
janmasrovira committed Jun 20, 2024
1 parent 5ebef71 commit 25d0e5a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/Juvix/Compiler/Concrete/Print/Base.hs
Original file line number Diff line number Diff line change
Expand Up @@ -1160,14 +1160,15 @@ instance (SingI s) => PrettyPrint (Import s) where
ppCode :: forall r. (Members '[ExactPrint, Reader Options] r) => Import s -> Sem r ()
ppCode i = do
let open' = ppCode <$> (i ^. importOpen)
usingHiding' = ppCode <$> i ^. importUsingHiding
public' = ppCode <$> i ^? importPublic . _Public
ppCode (i ^. importKw)
<+> ppModulePathType (i ^. importModulePath)
<+?> ppAlias
<+?> open'
<+?> usingHiding'
<+?> public'
where
-- TODO add public
-- <+?> fmap ppCode (i ^? importPublic . _Public . _Just)

ppAlias :: Maybe (Sem r ())
ppAlias = case i ^. importAsName of
Nothing -> Nothing
Expand Down

0 comments on commit 25d0e5a

Please sign in to comment.