[ fix ] debugging printing

This commit is contained in:
Guillaume ALLAIS 2021-04-16 14:55:52 +01:00 committed by G. Allais
parent b68fa077af
commit 9f5cacf31e

View File

@ -663,9 +663,7 @@ dumpHole' : {auto u : Ref UST UState} ->
dumpHole' lvl hole
= do ust <- get UST
defs <- get Ctxt
if keepLog lvl (logLevel $ session $ options defs)
then pure ()
else do
when (keepLog lvl (logLevel $ session $ options defs)) $ do
defs <- get Ctxt
case !(lookupCtxtExact (Resolved hole) (gamma defs)) of
Nothing => pure ()