Skip to content

Commit

Permalink
Don't block under Delay in repl evaluation
Browse files Browse the repository at this point in the history
Fixes #2063
  • Loading branch information
edwinb committed Mar 30, 2015
1 parent a0725d2 commit 78a55ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Idris/Core/Evaluate.hs
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ eval traceon ctxt ntimes genv tm opts = ev ntimes [] True [] tm where
-- block reduction immediately under codata (and not forced)
ev ntimes stk top env
(App (App (App d@(P _ (UN dly) _) l@(P _ (UN lco) _)) t) arg)
| dly == txt "Delay" && lco == txt "LazyCodata" && not simpl
| dly == txt "Delay" && lco == txt "LazyCodata" && not (simpl || atRepl)
= do let (f, _) = unApply arg
let ntimes' = case f of
P _ fn _ -> (fn, 0) : ntimes
Expand Down

0 comments on commit 78a55ab

Please sign in to comment.