mirror of
https://github.com/anoma/juvix.git
synced 2025-01-05 22:46:08 +03:00
parent
c6b3b95db3
commit
f58c4a6d17
@ -431,7 +431,7 @@ goStatement = \case
|
|||||||
StatementOpenModule t -> goOpen t
|
StatementOpenModule t -> goOpen t
|
||||||
StatementFunctionDef t -> goFunctionDef t
|
StatementFunctionDef t -> goFunctionDef t
|
||||||
StatementSyntax s -> goSyntax s
|
StatementSyntax s -> goSyntax s
|
||||||
StatementImport {} -> mempty
|
StatementImport s -> goImport s
|
||||||
StatementModule m -> goLocalModule m
|
StatementModule m -> goLocalModule m
|
||||||
StatementProjectionDef {} -> mempty
|
StatementProjectionDef {} -> mempty
|
||||||
where
|
where
|
||||||
@ -507,6 +507,11 @@ goLocalModule def = fmap (fromMaybe mempty) . runFail $ do
|
|||||||
<$> mconcatMap goStatement (def ^. moduleBody)
|
<$> mconcatMap goStatement (def ^. moduleBody)
|
||||||
return (header' <> body')
|
return (header' <> body')
|
||||||
|
|
||||||
|
goImport :: forall r. (Members '[Reader HtmlOptions] r) => Import 'Scoped -> Sem r Html
|
||||||
|
goImport op
|
||||||
|
| Just Public <- op ^? importOpen . _Just . openPublic = noDefHeader <$> ppCodeHtml defaultOptions op
|
||||||
|
| otherwise = mempty
|
||||||
|
|
||||||
goOpen :: forall r. (Members '[Reader HtmlOptions] r) => OpenModule 'Scoped -> Sem r Html
|
goOpen :: forall r. (Members '[Reader HtmlOptions] r) => OpenModule 'Scoped -> Sem r Html
|
||||||
goOpen op
|
goOpen op
|
||||||
| Public <- op ^. openModuleParams . openPublic = noDefHeader <$> ppCodeHtml defaultOptions op
|
| Public <- op ^. openModuleParams . openPublic = noDefHeader <$> ppCodeHtml defaultOptions op
|
||||||
|
Loading…
Reference in New Issue
Block a user