Skip to content

Commit

Permalink
remove printing unit values in repl output
Browse files Browse the repository at this point in the history
  • Loading branch information
jmcardon committed Feb 5, 2025
1 parent 5ce6678 commit c4ea4c3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pact-repl/Pact/Core/Repl/Compile.hs
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ import Pact.Core.Errors
import Pact.Core.Interpreter
import Pact.Core.Pretty hiding (pipe)
import Pact.Core.Serialise
import Pact.Core.PactValue


import Pact.Core.IR.Eval.Runtime
Expand Down Expand Up @@ -257,6 +258,8 @@ interpretReplProgram interpreter sc@(SourceCode sourceFp source) = do
parseSource lexerOutput
| sourceIsPactFile = (fmap.fmap) (Lisp.RTLTopLevel) $ Lisp.parseProgram lexerOutput
| otherwise = Lisp.parseReplProgram lexerOutput
displayValue :: FileLocSpanInfo -> ReplCompileValue -> ReplM ReplCoreBuiltin ReplCompileValue
displayValue _info v@(RCompileValue (InterpretValue PUnit _)) = pure v
displayValue info p = p <$ replPrintLn info p
sliceCode = \case
Lisp.TLModule{} -> sliceFromSource
Expand Down

0 comments on commit c4ea4c3

Please sign in to comment.