@@ -91,10 +91,13 @@ elabStep st e = case runStateT eCheck st of
91 OK (a, st') -> return (a, st')
91 OK (a, st') -> return (a, st')
92 Error a -> ierror a
92 Error a -> ierror a
93 where eCheck = do res <- e
93 where eCheck = do res <- e
94− tm <- get_term
96+ [] -> do tm <- get_term
95− ctxt <- get_context
97+ ctxt <- get_context
96− lift $ check ctxt [] (forget tm)
98+ lift $ check ctxt [] (forget tm)
97− return res
99+ return res
100+ ((_,_,_,e,_,_):_) -> lift $ Error e
99dumpState :: IState -> ProofState -> Idris ()
102dumpState :: IState -> ProofState -> Idris ()
100dumpState ist (PS nm [] _ _ tm _ _ _ _ _ _ _ _ _ _ _ _ _ _ _) =
103dumpState ist (PS nm [] _ _ tm _ _ _ _ _ _ _ _ _ _ _ _ _ _ _) =