@@ -88,7 +88,7 @@ elabType' norm info syn doc argDocs fc opts n ty' = {- let ty' = piBind (params
88 let ty = addImpl i ty'
88 let ty = addImpl i ty'
89 inacc = inaccessibleArgs 0 ty
89 inacc = inaccessibleArgs 0 ty
90 logLvl 3 $ show n ++ " type " ++ showTmImpls ty
90 logLvl 3 $ show n ++ " type " ++ showTmImpls ty
91− logLvl 5 $ "Inaccessible arguments: " ++ show inacc
91+ logLvl 3 $ show n ++ ": inaccessible arguments: " ++ show inacc
93 ((tyT, defer, is), log) <-
93 ((tyT, defer, is), log) <-
94 tclift $ elaborate ctxt n (TType (UVal 0)) []
94 tclift $ elaborate ctxt n (TType (UVal 0)) []
@@ -182,12 +182,12 @@ elabType' norm info syn doc argDocs fc opts n ty' = {- let ty' = piBind (params
182saveInaccArgs :: Name -> [(Int,Name)] -> Idris ()
182saveInaccArgs :: Name -> [(Int,Name)] -> Idris ()
183saveInaccArgs n is = do
183saveInaccArgs n is = do
184 ist <- getIState
184 ist <- getIState
185− case lookupCtxt n (idris_optimisation ist) of
185+ case lookupCtxtExact n (idris_optimisation ist) of
186− [oi] -> do
186+ Just oi -> do
187 putIState ist{ idris_optimisation =
187 putIState ist{ idris_optimisation =
188 addDef n oi{ inaccessible = is } (idris_optimisation ist) }
188 addDef n oi{ inaccessible = is } (idris_optimisation ist) }
190− _ -> do
190+ Nothing -> do
191 putIState ist{ idris_optimisation =
191 putIState ist{ idris_optimisation =
192 addDef n (Optimise is False) (idris_optimisation ist) }
192 addDef n (Optimise is False) (idris_optimisation ist) }
193 addIBC (IBCOpt n)
193 addIBC (IBCOpt n)
@@ -195,7 +195,7 @@ saveInaccArgs n is = do
195-- Get the list of (index, name) of inaccessible arguments from the type.
195-- Get the list of (index, name) of inaccessible arguments from the type.
196inaccessibleArgs :: Int -> PTerm -> [(Int, Name)]
196inaccessibleArgs :: Int -> PTerm -> [(Int, Name)]
197inaccessibleArgs i (PPi (Imp _ _ _) n Placeholder t)
197inaccessibleArgs i (PPi (Imp _ _ _) n Placeholder t)
198− = (i,n) : inaccessibleArgs (i+1) t -- unbound implicit
198+ = (i,n) : inaccessibleArgs (i+1) t -- unbound implicit
199inaccessibleArgs i (PPi plicity n ty t)
199inaccessibleArgs i (PPi plicity n ty t)
200 | InaccessibleArg `elem` pargopts plicity
200 | InaccessibleArg `elem` pargopts plicity
201 = (i,n) : inaccessibleArgs (i+1) t -- an .{erased : Implicit}
201 = (i,n) : inaccessibleArgs (i+1) t -- an .{erased : Implicit}