@@ -44,7 +44,7 @@ elabType info syn doc fc opts n ty' = {- let ty' = piBind (params info) ty_in
44 n = liftname info n_in in -}
44 n = liftname info n_in in -}
45 do checkUndefined fc n
45 do checkUndefined fc n
46 ctxt <- getContext
46 ctxt <- getContext
47− i <- get
47+ i <- getIState
48 logLvl 3 $ show n ++ " pre-type " ++ showImp True ty'
48 logLvl 3 $ show n ++ " pre-type " ++ showImp True ty'
49 ty' <- implicit syn n ty'
49 ty' <- implicit syn n ty'
50 let ty = addImpl i ty'
50 let ty = addImpl i ty'
@@ -91,7 +91,7 @@ elabPostulate info syn doc fc opts n ty
91 fty <- case lookupTy Nothing n ctxt of
91 fty <- case lookupTy Nothing n ctxt of
92 [] -> tclift $ tfail $ (At fc (NoTypeDecl n)) -- can't happen!
92 [] -> tclift $ tfail $ (At fc (NoTypeDecl n)) -- can't happen!
93 [ty] -> return ty
93 [ty] -> return ty
94− ist <- get
94+ ist <- getIState
95 let (ap, _) = unApply (getRetTy fty)
95 let (ap, _) = unApply (getRetTy fty)
96 logLvl 5 $ "Checking collapsibility of " ++ show (ap, fty)
96 logLvl 5 $ "Checking collapsibility of " ++ show (ap, fty)
97 let postOK = case ap of
97 let postOK = case ap of
@@ -110,7 +110,7 @@ elabData info syn doc fc codata (PLaterdecl n t_in)
110 = do iLOG (show (fc, doc))
110 = do iLOG (show (fc, doc))
111 checkUndefined fc n
111 checkUndefined fc n
112 ctxt <- getContext
112 ctxt <- getContext
113− i <- get
113+ i <- getIState
114 t_in <- implicit syn n t_in
114 t_in <- implicit syn n t_in
115 let t = addImpl i t_in
115 let t = addImpl i t_in
116 ((t', defer, is), log) <- tclift $ elaborate ctxt n (TType (UVal 0)) []
116 ((t', defer, is), log) <- tclift $ elaborate ctxt n (TType (UVal 0)) []
@@ -126,7 +126,7 @@ elabData info syn doc fc codata (PDatadecl n t_in dcons)
126 = do iLOG (show fc)
126 = do iLOG (show fc)
127 undef <- isUndefined fc n
127 undef <- isUndefined fc n
128 ctxt <- getContext
128 ctxt <- getContext
129− i <- get
129+ i <- getIState
130 t_in <- implicit syn n t_in
130 t_in <- implicit syn n t_in
131 let t = addImpl i t_in
131 let t = addImpl i t_in
132 ((t', defer, is), log) <- tclift $ elaborate ctxt n (TType (UVal 0)) []
132 ((t', defer, is), log) <- tclift $ elaborate ctxt n (TType (UVal 0)) []
@@ -140,11 +140,11 @@ elabData info syn doc fc codata (PDatadecl n t_in dcons)
140 when undef $ updateContext (addTyDecl n cty)
140 when undef $ updateContext (addTyDecl n cty)
141 cons <- mapM (elabCon info syn n codata) dcons
141 cons <- mapM (elabCon info syn n codata) dcons
142 ttag <- getName
142 ttag <- getName
143− i <- get
143+ i <- getIState
144 let as = map (const Nothing) (getArgTys cty)
144 let as = map (const Nothing) (getArgTys cty)
145 let params = findParams (zip as (repeat True)) (map snd cons)
145 let params = findParams (zip as (repeat True)) (map snd cons)
146 logLvl 2 $ "Parameters : " ++ show params
146 logLvl 2 $ "Parameters : " ++ show params
147− put (i { idris_datatypes = addDef n (TI (map fst cons) codata params)
147+ putIState (i { idris_datatypes = addDef n (TI (map fst cons) codata params)
148 (idris_datatypes i) })
148 (idris_datatypes i) })
149 addIBC (IBCDef n)
149 addIBC (IBCDef n)
150 addIBC (IBCData n)
150 addIBC (IBCData n)
@@ -188,7 +188,7 @@ elabRecord :: ElabInfo -> SyntaxInfo -> String -> FC -> Name ->
188elabRecord info syn doc fc tyn ty cdoc cn cty
188elabRecord info syn doc fc tyn ty cdoc cn cty
189 = do elabData info syn doc fc False (PDatadecl tyn ty [(cdoc, cn, cty, fc)])
189 = do elabData info syn doc fc False (PDatadecl tyn ty [(cdoc, cn, cty, fc)])
190 cty' <- implicit syn cn cty
190 cty' <- implicit syn cn cty
191− i <- get
191+ i <- getIState
192 cty <- case lookupTy Nothing cn (tt_ctxt i) of
192 cty <- case lookupTy Nothing cn (tt_ctxt i) of
193 [t] -> return (delab i t)
193 [t] -> return (delab i t)
194 _ -> fail "Something went inexplicably wrong"
194 _ -> fail "Something went inexplicably wrong"
@@ -213,13 +213,13 @@ elabRecord info syn doc fc tyn ty cdoc cn cty
213 isNonImp _ = Nothing
213 isNonImp _ = Nothing
215 tryElabDecl info (fn, ty, val)
215 tryElabDecl info (fn, ty, val)
216− = do i <- get
216+ = do i <- getIState
217 idrisCatch (do elabDecl' EAll info ty
217 idrisCatch (do elabDecl' EAll info ty
218 elabDecl' EAll info val)
218 elabDecl' EAll info val)
219 (\v -> do iputStrLn $ show fc ++
219 (\v -> do iputStrLn $ show fc ++
220 ":Warning - can't generate setter for " ++
220 ":Warning - can't generate setter for " ++
221 show fn ++ " (" ++ show ty ++ ")"
221 show fn ++ " (" ++ show ty ++ ")"
222− put i)
222+ putIState i)
224 getImplB k (PPi (Imp l s _) n Placeholder sc)
224 getImplB k (PPi (Imp l s _) n Placeholder sc)
225 = getImplB k sc
225 = getImplB k sc
@@ -297,7 +297,7 @@ elabCon :: ElabInfo -> SyntaxInfo -> Name -> Bool ->
297elabCon info syn tn codata (doc, n, t_in, fc)
297elabCon info syn tn codata (doc, n, t_in, fc)
298 = do checkUndefined fc n
298 = do checkUndefined fc n
299 ctxt <- getContext
299 ctxt <- getContext
300− i <- get
300+ i <- getIState
301 t_in <- implicit syn n (if codata then mkLazy t_in else t_in)
301 t_in <- implicit syn n (if codata then mkLazy t_in else t_in)
302 let t = addImpl i t_in
302 let t = addImpl i t_in
303 logLvl 2 $ show fc ++ ":Constructor " ++ show n ++ " : " ++ showImp True t
303 logLvl 2 $ show fc ++ ":Constructor " ++ show n ++ " : " ++ showImp True t
@@ -343,7 +343,7 @@ elabClauses info fc opts n_in cs = let n = liftname info n_in in
343 (zip [0..] cs)
343 (zip [0..] cs)
344 -- if the return type of 'ty' is collapsible, the optimised version should
344 -- if the return type of 'ty' is collapsible, the optimised version should
345 -- just do nothing
345 -- just do nothing
346− ist <- get
346+ ist <- getIState
347 let (ap, _) = unApply (getRetTy fty)
347 let (ap, _) = unApply (getRetTy fty)
348 logLvl 5 $ "Checking collapsibility of " ++ show (ap, fty)
348 logLvl 5 $ "Checking collapsibility of " ++ show (ap, fty)
349 -- FIXME: Really ought to only do this for total functions!
349 -- FIXME: Really ought to only do this for total functions!
@@ -354,17 +354,17 @@ elabClauses info fc opts n_in cs = let n = liftname info n_in in
354 _ -> False
354 _ -> False
355 _ -> False
355 _ -> False
356 solveDeferred n
356 solveDeferred n
357− ist <- get
357+ ist <- getIState
358 when doNothing $
358 when doNothing $
359 case lookupCtxt Nothing n (idris_optimisation ist) of
359 case lookupCtxt Nothing n (idris_optimisation ist) of
360 [oi] -> do let opts = addDef n (oi { collapsible = True })
360 [oi] -> do let opts = addDef n (oi { collapsible = True })
361 (idris_optimisation ist)
361 (idris_optimisation ist)
362− put (ist { idris_optimisation = opts })
362+ putIState (ist { idris_optimisation = opts })
363 _ -> do let opts = addDef n (Optimise True [] [])
363 _ -> do let opts = addDef n (Optimise True [] [])
364 (idris_optimisation ist)
364 (idris_optimisation ist)
365− put (ist { idris_optimisation = opts })
365+ putIState (ist { idris_optimisation = opts })
366 addIBC (IBCOpt n)
366 addIBC (IBCOpt n)
367− ist <- get
367+ ist <- getIState
368 let pats = pats_in
368 let pats = pats_in
369 -- logLvl 3 (showSep "\n" (map (\ (l,r) ->
369 -- logLvl 3 (showSep "\n" (map (\ (l,r) ->
370 -- show l ++ " = " ++
370 -- show l ++ " = " ++
@@ -401,7 +401,7 @@ elabClauses info fc opts n_in cs = let n = liftname info n_in in
401 pdef' <- applyOpts optpdef
401 pdef' <- applyOpts optpdef
402 logLvl 2 $ "Optimised patterns"
402 logLvl 2 $ "Optimised patterns"
403 logLvl 5 $ show pdef'
403 logLvl 5 $ show pdef'
404− ist <- get
404+ ist <- getIState
405 -- let wf = wellFounded ist n sc
405 -- let wf = wellFounded ist n sc
406 let tot = if pcover || AssertTotal `elem` opts
406 let tot = if pcover || AssertTotal `elem` opts
407 then Unchecked -- finish checking later
407 then Unchecked -- finish checking later
@@ -425,8 +425,8 @@ elabClauses info fc opts n_in cs = let n = liftname info n_in in
425 logLvl 3 (show tree)
425 logLvl 3 (show tree)
426 logLvl 3 $ "Optimised: " ++ show tree'
426 logLvl 3 $ "Optimised: " ++ show tree'
427 ctxt <- getContext
427 ctxt <- getContext
428− ist <- get
428+ ist <- getIState
429− put (ist { idris_patdefs = addDef n pdef' (idris_patdefs ist) })
429+ putIState (ist { idris_patdefs = addDef n pdef' (idris_patdefs ist) })
430 case lookupTy (namespace info) n ctxt of
430 case lookupTy (namespace info) n ctxt of
431 [ty] -> do updateContext (addCasedef n (inlinable opts)
431 [ty] -> do updateContext (addCasedef n (inlinable opts)
432 tcase knowncovering
432 tcase knowncovering
@@ -437,7 +437,7 @@ elabClauses info fc opts n_in cs = let n = liftname info n_in in
437 setTotality n tot
437 setTotality n tot
438 totcheck (fc, n)
438 totcheck (fc, n)
439 when (tot /= Unchecked) $ addIBC (IBCTotal n tot)
439 when (tot /= Unchecked) $ addIBC (IBCTotal n tot)
440− i <- get
440+ i <- getIState
441 case lookupDef Nothing n (tt_ctxt i) of
441 case lookupDef Nothing n (tt_ctxt i) of
442 (CaseOp _ _ _ _ _ scargs sc scargs' sc' : _) ->
442 (CaseOp _ _ _ _ _ scargs sc scargs' sc' : _) ->
443 do let calls = findCalls sc' scargs'
443 do let calls = findCalls sc' scargs'
@@ -485,7 +485,7 @@ elabClauses info fc opts n_in cs = let n = liftname info n_in in
485elabVal :: ElabInfo -> Bool -> PTerm -> Idris (Term, Type)
485elabVal :: ElabInfo -> Bool -> PTerm -> Idris (Term, Type)
486elabVal info aspat tm_in
486elabVal info aspat tm_in
487 = do ctxt <- getContext
487 = do ctxt <- getContext
488− i <- get
488+ i <- getIState
489 let tm = addImpl i tm_in
489 let tm = addImpl i tm_in
490 logLvl 10 (showImp True tm)
490 logLvl 10 (showImp True tm)
@@ -510,7 +510,7 @@ elabVal info aspat tm_in
510checkPossible :: ElabInfo -> FC -> Bool -> Name -> PTerm -> Idris Bool
510checkPossible :: ElabInfo -> FC -> Bool -> Name -> PTerm -> Idris Bool
511checkPossible info fc tcgen fname lhs_in
511checkPossible info fc tcgen fname lhs_in
512 = do ctxt <- getContext
512 = do ctxt <- getContext
513− i <- get
513+ i <- getIState
514 let lhs = addImpl i lhs_in
514 let lhs = addImpl i lhs_in
515 -- if the LHS type checks, it is possible
515 -- if the LHS type checks, it is possible
516 case elaborate ctxt (MN 0 "patLHS") infP []
516 case elaborate ctxt (MN 0 "patLHS") infP []
@@ -537,7 +537,7 @@ elabClause info tcgen (cnum, PClause fc fname lhs_in withs rhs_in whereblock)
537 = do ctxt <- getContext
537 = do ctxt <- getContext
538 -- Build the LHS as an "Infer", and pull out its type and
538 -- Build the LHS as an "Infer", and pull out its type and
539 -- pattern bindings
539 -- pattern bindings
540− i <- get
540+ i <- getIState
541 -- get the parameters first, to pass through to any where block
541 -- get the parameters first, to pass through to any where block
542 let fn_ty = case lookupTy Nothing fname (tt_ctxt i) of
542 let fn_ty = case lookupTy Nothing fname (tt_ctxt i) of
@@ -575,7 +575,7 @@ elabClause info tcgen (cnum, PClause fc fname lhs_in withs rhs_in whereblock)
575 logLvl 5 $ "Where block:\n " ++ show wbefore ++ "\n" ++ show wafter
575 logLvl 5 $ "Where block:\n " ++ show wbefore ++ "\n" ++ show wafter
576 mapM_ (elabDecl' EAll info) wbefore
576 mapM_ (elabDecl' EAll info) wbefore
577 -- Now build the RHS, using the type of the LHS as the goal.
577 -- Now build the RHS, using the type of the LHS as the goal.
578− i <- get -- new implicits from where block
578+ i <- getIState -- new implicits from where block
579 logLvl 5 (showImp True (expandParams decorate newargs defs (defs \\ decls) rhs_in))
579 logLvl 5 (showImp True (expandParams decorate newargs defs (defs \\ decls) rhs_in))
580 let rhs = addImplBoundInf i (map fst newargs) (defs \\ decls)
580 let rhs = addImplBoundInf i (map fst newargs) (defs \\ decls)
581 (expandParams decorate newargs defs (defs \\ decls) rhs_in)
581 (expandParams decorate newargs defs (defs \\ decls) rhs_in)
@@ -609,7 +609,7 @@ elabClause info tcgen (cnum, PClause fc fname lhs_in withs rhs_in whereblock)
609 case converts ctxt [] clhsty crhsty of
609 case converts ctxt [] clhsty crhsty of
610 OK _ -> return ()
610 OK _ -> return ()
611 Error e -> ierror (At fc (CantUnify False clhsty crhsty e [] 0))
611 Error e -> ierror (At fc (CantUnify False clhsty crhsty e [] 0))
612− i <- get
612+ i <- getIState
613 checkInferred fc (delab' i crhs True) rhs
613 checkInferred fc (delab' i crhs True) rhs
614 return $ Right (clhs, crhs)
614 return $ Right (clhs, crhs)
@@ -678,7 +678,7 @@ elabClause info tcgen (_, PWith fc fname lhs_in withs wval_in withblock)
678 = do ctxt <- getContext
678 = do ctxt <- getContext
679 -- Build the LHS as an "Infer", and pull out its type and
679 -- Build the LHS as an "Infer", and pull out its type and
680 -- pattern bindings
680 -- pattern bindings
681− i <- get
681+ i <- getIState
682 let lhs = addImpl i lhs_in
682 let lhs = addImpl i lhs_in
683 logLvl 5 ("LHS: " ++ showImp True lhs)
683 logLvl 5 ("LHS: " ++ showImp True lhs)
684 ((lhs', dlhs, []), _) <-
684 ((lhs', dlhs, []), _) <-
@@ -731,7 +731,7 @@ elabClause info tcgen (_, PWith fc fname lhs_in withs wval_in withblock)
731 logLvl 3 ("New function type " ++ show wtype)
731 logLvl 3 ("New function type " ++ show wtype)
732 let wname = MN windex (show fname)
732 let wname = MN windex (show fname)
733 let imps = getImps wtype -- add to implicits context
733 let imps = getImps wtype -- add to implicits context
734− put (i { idris_implicits = addDef wname imps (idris_implicits i) })
734+ putIState (i { idris_implicits = addDef wname imps (idris_implicits i) })
735 addIBC (IBCDef wname)
735 addIBC (IBCDef wname)
736 def' <- checkDef fc [(wname, wtype)]
736 def' <- checkDef fc [(wname, wtype)]
737 addDeferred def'
737 addDeferred def'
@@ -751,7 +751,7 @@ elabClause info tcgen (_, PWith fc fname lhs_in withs wval_in withblock)
751 (map (pexp . (PRef fc) . fst) bargs_post))
751 (map (pexp . (PRef fc) . fst) bargs_post))
752 logLvl 5 ("New RHS " ++ showImp True rhs)
752 logLvl 5 ("New RHS " ++ showImp True rhs)
753 ctxt <- getContext -- New context with block added
753 ctxt <- getContext -- New context with block added
754− i <- get
754+ i <- getIState
755 ((rhs', defer, is), _) <-
755 ((rhs', defer, is), _) <-
756 tclift $ elaborate ctxt (MN 0 "wpatRHS") clhsty []
756 tclift $ elaborate ctxt (MN 0 "wpatRHS") clhsty []
757 (do pbinds lhs_tm
757 (do pbinds lhs_tm
@@ -776,7 +776,7 @@ elabClause info tcgen (_, PWith fc fname lhs_in withs wval_in withblock)
776 mkAuxC wname lhs ns ns' d = return $ d
776 mkAuxC wname lhs ns ns' d = return $ d
778 mkAux wname toplhs ns ns' (PClause fc n tm_in (w:ws) rhs wheres)
778 mkAux wname toplhs ns ns' (PClause fc n tm_in (w:ws) rhs wheres)
779− = do i <- get
779+ = do i <- getIState
780 let tm = addImpl i tm_in
780 let tm = addImpl i tm_in
781 logLvl 2 ("Matching " ++ showImp True tm ++ " against " ++
781 logLvl 2 ("Matching " ++ showImp True tm ++ " against " ++
782 showImp True toplhs)
782 showImp True toplhs)
@@ -787,7 +787,7 @@ elabClause info tcgen (_, PWith fc fname lhs_in withs wval_in withblock)
787 lhs <- updateLHS n wname mvars ns ns' (fullApp tm) w
787 lhs <- updateLHS n wname mvars ns ns' (fullApp tm) w
788 return $ PClause fc wname lhs ws rhs wheres
788 return $ PClause fc wname lhs ws rhs wheres
789 mkAux wname toplhs ns ns' (PWith fc n tm_in (w:ws) wval withs)
789 mkAux wname toplhs ns ns' (PWith fc n tm_in (w:ws) wval withs)
790− = do i <- get
790+ = do i <- getIState
791 let tm = addImpl i tm_in
791 let tm = addImpl i tm_in
792 logLvl 2 ("Matching " ++ showImp True tm ++ " against " ++
792 logLvl 2 ("Matching " ++ showImp True tm ++ " against " ++
793 showImp True toplhs)
793 showImp True toplhs)
@@ -864,7 +864,7 @@ elabClass info syn doc fc constraints tn ps ds
864 mapM_ (elabDecl EAll info) (concat fns)
864 mapM_ (elabDecl EAll info) (concat fns)
865 -- add the default definitions
865 -- add the default definitions
866 mapM_ (elabDecl EAll info) (concat (map (snd.snd) defs))
866 mapM_ (elabDecl EAll info) (concat (map (snd.snd) defs))
867− i <- get
867+ i <- getIState
868 addIBC (IBCClass tn)
868 addIBC (IBCClass tn)
870 nodoc (n, (_, o, t)) = (n, (o, t))
870 nodoc (n, (_, o, t)) = (n, (o, t))
@@ -918,7 +918,7 @@ elabClass info syn doc fc constraints tn ps ds
918 let ty = PPi constraint (MN 0 "pc") c con
918 let ty = PPi constraint (MN 0 "pc") c con
919 iLOG (showImp True ty)
919 iLOG (showImp True ty)
920 iLOG (showImp True lhs ++ " = " ++ showImp True rhs)
920 iLOG (showImp True lhs ++ " = " ++ showImp True rhs)
921− i <- get
921+ i <- getIState
922 let conn = case con of
922 let conn = case con of
923 PRef _ n -> n
923 PRef _ n -> n
924 PApp _ (PRef _ n) _ -> n
924 PApp _ (PRef _ n) _ -> n
@@ -982,7 +982,7 @@ elabInstance :: ElabInfo -> SyntaxInfo ->
982 Maybe Name -> -- explicit name
982 Maybe Name -> -- explicit name
983 [PDecl] -> Idris ()
983 [PDecl] -> Idris ()
984elabInstance info syn fc cs n ps t expn ds
984elabInstance info syn fc cs n ps t expn ds
985− = do i <- get
985+ = do i <- getIState
986 (n, ci) <- case lookupCtxtName (namespace info) n (idris_classes i) of
986 (n, ci) <- case lookupCtxtName (namespace info) n (idris_classes i) of
987 [c] -> return c
987 [c] -> return c
988 _ -> fail $ show fc ++ ":" ++ show n ++ " is not a type class"
988 _ -> fail $ show fc ++ ":" ++ show n ++ " is not a type class"
@@ -1137,7 +1137,7 @@ elabInstance info syn fc cs n ps t expn ds
1137 let ty = PPi constraint (MN 0 "pc") c con
1137 let ty = PPi constraint (MN 0 "pc") c con
1138 iLOG (showImp True ty)
1138 iLOG (showImp True ty)
1139 iLOG (showImp True lhs ++ " = " ++ showImp True rhs)
1139 iLOG (showImp True lhs ++ " = " ++ showImp True rhs)
1140− i <- get
1140+ i <- getIState
1141 let conn = case con of
1141 let conn = case con of
1142 PRef _ n -> n
1142 PRef _ n -> n
1143 PApp _ (PRef _ n) _ -> n
1143 PApp _ (PRef _ n) _ -> n
@@ -1214,7 +1214,7 @@ elabDecl' what info (PData doc s f co d)
1214elabDecl' what info d@(PClauses f o n ps)
1214elabDecl' what info d@(PClauses f o n ps)
1215 | what /= ETypes
1215 | what /= ETypes
1216 = do iLOG $ "Elaborating clause " ++ show n
1216 = do iLOG $ "Elaborating clause " ++ show n
1217− i <- get -- get the type options too
1217+ i <- getIState -- get the type options too
1218 let o' = case lookupCtxt Nothing n (idris_flags i) of
1218 let o' = case lookupCtxt Nothing n (idris_flags i) of
1219 [fs] -> fs
1219 [fs] -> fs
1220 [] -> []
1220 [] -> []
@@ -1223,7 +1223,7 @@ elabDecl' what info (PMutual f ps)
1223 = do mapM_ (elabDecl ETypes info) ps
1223 = do mapM_ (elabDecl ETypes info) ps
1224 mapM_ (elabDecl EDefns info) ps
1224 mapM_ (elabDecl EDefns info) ps
1225elabDecl' what info (PParams f ns ps)
1225elabDecl' what info (PParams f ns ps)
1226− = do i <- get
1226+ = do i <- getIState
1227 iLOG $ "Expanding params block with " ++ show ns ++ " decls " ++
1227 iLOG $ "Expanding params block with " ++ show ns ++ " decls " ++
1228 show (concatMap tldeclared ps)
1228 show (concatMap tldeclared ps)
1229 let nblock = pblock i
1229 let nblock = pblock i
@@ -1256,8 +1256,8 @@ elabDecl' what info (PRecord doc s f tyn ty cdoc cn cty)
1256 = do iLOG $ "Elaborating record " ++ show tyn
1256 = do iLOG $ "Elaborating record " ++ show tyn
1257 elabRecord info s doc f tyn ty cdoc cn cty
1257 elabRecord info s doc f tyn ty cdoc cn cty
1258elabDecl' _ info (PDSL n dsl)
1258elabDecl' _ info (PDSL n dsl)
1259− = do i <- get
1259+ = do i <- getIState
1260− put (i { idris_dsls = addDef n dsl (idris_dsls i) })
1260+ putIState (i { idris_dsls = addDef n dsl (idris_dsls i) })
1261 addIBC (IBCDSL n)
1261 addIBC (IBCDSL n)
1262elabDecl' what info (PDirective i)
1262elabDecl' what info (PDirective i)
1263 | what /= EDefns = i
1263 | what /= EDefns = i
@@ -1279,7 +1279,7 @@ checkInferred fc inf user =
1279 do logLvl 6 $ "Checked to\n" ++ showImp True inf ++ "\n\nFROM\n\n" ++
1279 do logLvl 6 $ "Checked to\n" ++ showImp True inf ++ "\n\nFROM\n\n" ++
1280 showImp True user
1280 showImp True user
1281 logLvl 10 $ "Checking match"
1281 logLvl 10 $ "Checking match"
1282− i <- get
1282+ i <- getIState
1283 tclift $ case matchClause' True i user inf of
1283 tclift $ case matchClause' True i user inf of
1284 Right vs -> return ()
1284 Right vs -> return ()
1285 Left (x, y) -> tfail $ At fc
1285 Left (x, y) -> tfail $ At fc
@@ -1293,7 +1293,7 @@ checkInferred fc inf user =
1294inferredDiff :: FC -> PTerm -> PTerm -> Idris Bool
1294inferredDiff :: FC -> PTerm -> PTerm -> Idris Bool
1295inferredDiff fc inf user =
1295inferredDiff fc inf user =
1296− do i <- get
1296+ do i <- getIState
1297 logLvl 6 $ "Checked to\n" ++ showImp True inf ++ "\n" ++
1297 logLvl 6 $ "Checked to\n" ++ showImp True inf ++ "\n" ++
1298 showImp True user
1298 showImp True user
1299 tclift $ case matchClause' True i user inf of
1299 tclift $ case matchClause' True i user inf of