Skip to content

Commit

Permalink
Use ppOutDefault in output so colours are shown
Browse files Browse the repository at this point in the history
Co-authored-by: Jan Mas Rovira <[email protected]>
  • Loading branch information
paulcadman and janmasrovira authored Nov 25, 2024
1 parent 442ca5b commit 24a796b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/Commands/Dev/Anoma/Prove.hs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ runCommand :: forall r. (Members (Anoma ': Error SimpleError ': AppEffects) r) =
runCommand opts = do
res <- runNock (opts ^. proveFile) (opts ^. proveArgs)
let traces = res ^. runNockmaTraces
forM_ traces (renderStdOutLn . ppPrint)
forM_ traces (renderStdOutLn . ppOutDefault)
let provedCode = Encoding.jamToByteString (res ^. runNockmaResult)
outputFile <- getOutputFile (opts ^. proveOutputFile)
writeFileBS outputFile provedCode
Expand Down
4 changes: 2 additions & 2 deletions app/Commands/Dev/Nockma/Run/Anoma.hs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@ runInAnoma runArgs = do
let traces = res ^. runNockmaTraces
renderStdOutLn (annotate AnnImportant $ "Traces (" <> show (length traces) <> "):")
forM_ traces $ \tr ->
renderStdOutLn (ppPrint tr)
renderStdOutLn (ppOutDefault tr)
renderStdOutLn (annotate AnnImportant "Result:")
renderStdOutLn (ppPrint (res ^. runNockmaResult))
renderStdOutLn (ppOutDefault (res ^. runNockmaResult))

0 comments on commit 24a796b

Please sign in to comment.