Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
lukaszcz committed Sep 13, 2024
1 parent 2deb098 commit 0f4c6c8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
5 changes: 2 additions & 3 deletions app/Commands/Isabelle.hs
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,8 @@ translateTyped opts pkg res
comments = res ^. resultComments
outputDir <- fromAppPathDir (opts ^. isabelleOutputDir)
if
| opts ^. isabelleStdout -> do
renderStdOut (ppOutDefault comments thy)
putStrLn ""
| opts ^. isabelleStdout ->
renderStdOutLn (ppOutDefault comments thy)
| otherwise -> do
ensureDir outputDir
let file :: Path Rel File
Expand Down
5 changes: 3 additions & 2 deletions src/Juvix/Compiler/Backend/Isabelle/Translation/FromTyped.hs
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,9 @@ goModule onlyTypes infoTable Internal.Module {..} =
Theory
{ _theoryName = overNameText toIsabelleTheoryName _moduleName,
_theoryImports =
map (overNameText toIsabelleTheoryName) $
map (^. Internal.importModuleName) (_moduleBody ^. Internal.moduleImports),
map
(overNameText toIsabelleTheoryName . (^. Internal.importModuleName))
(_moduleBody ^. Internal.moduleImports),
_theoryStatements = case _modulePragmas ^. pragmasIsabelleIgnore of
Just (PragmaIsabelleIgnore True) -> []
_ -> concatMap goMutualBlock (_moduleBody ^. Internal.moduleStatements)
Expand Down

0 comments on commit 0f4c6c8

Please sign in to comment.