Skip to content

Commit

Permalink
Suppress REPL instantiation messages when warnDefaulting = off.
Browse files Browse the repository at this point in the history
Fixes #543.
  • Loading branch information
Brian Huffman committed Sep 17, 2018
1 parent ad766b3 commit 634c5a0
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/Cryptol/REPL/Command.hs
Original file line number Diff line number Diff line change
Expand Up @@ -1211,8 +1211,10 @@ replEvalExpr expr =
case ts of
[] -> return ()
_ ->
do rPutStrLn "Showing a specific instance of polymorphic result:"
mapM_ warnDefault ts
do EnvBool warnDefaulting <- getUser "warnDefaulting"
when warnDefaulting $
do rPutStrLn "Showing a specific instance of polymorphic result:"
mapM_ warnDefault ts

warnDefault (x,t) =
rPrint (" *" <+> nest 2 ("Using" <+> quotes (pp t) <+> "for" <+>
Expand Down

0 comments on commit 634c5a0

Please sign in to comment.