Skip to content

Commit

Permalink
Don't force typechecked terms too early.
Browse files Browse the repository at this point in the history
Fixes #1012
  • Loading branch information
robdockins committed Dec 11, 2020
1 parent e5a6858 commit 9de193a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Cryptol/TypeCheck/Infer.hs
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ appTys expr ts tGoal =
P.ELocated e r ->
do e' <- inRange r (appTys e ts tGoal)
cs <- getCallStacks
pure $! if cs then ELocated r e' else e'
if cs then pure (ELocated r e') else pure e'

P.ENeg {} -> mono
P.EComplement {} -> mono
Expand Down Expand Up @@ -373,7 +373,7 @@ checkE expr tGoal =
P.ELocated e r ->
do e' <- inRange r (checkE e tGoal)
cs <- getCallStacks
pure $! if cs then ELocated r e' else e'
if cs then pure (ELocated r e') else pure e'

P.ESplit e ->
do prim <- mkPrim "splitAt"
Expand Down

0 comments on commit 9de193a

Please sign in to comment.