@@ -166,7 +166,7 @@ elabType' norm info syn doc argDocs fc opts n ty' = {- let ty' = piBind (params
166 lst = txt "List"
166 lst = txt "List"
167 errrep = txt "ErrorReportPart"
167 errrep = txt "ErrorReportPart"
169− saveInaccArgs :: Name -> [Int] -> Idris ()
169+ saveInaccArgs :: Name -> [(Int,Name)] -> Idris ()
170 saveInaccArgs n is = do
170 saveInaccArgs n is = do
171 ist <- getIState
171 ist <- getIState
172 case lookupCtxt n (idris_optimisation ist) of
172 case lookupCtxt n (idris_optimisation ist) of
@@ -179,12 +179,12 @@ elabType' norm info syn doc argDocs fc opts n ty' = {- let ty' = piBind (params
179 addDef n (Optimise False False [] [] is) (idris_optimisation ist) }
179 addDef n (Optimise False False [] [] is) (idris_optimisation ist) }
180 addIBC (IBCOpt n)
180 addIBC (IBCOpt n)
182− inaccessible :: Int -> PTerm -> [Int]
182+ inaccessible :: Int -> PTerm -> [(Int, Name)]
183 inaccessible i (PPi (Imp _ _ _ _) n Placeholder t)
183 inaccessible i (PPi (Imp _ _ _ _) n Placeholder t)
184− = i : inaccessible (i+1) t -- unbound implicit
184+ = (i,n) : inaccessible (i+1) t -- unbound implicit
185 inaccessible i (PPi plicity n ty t)
185 inaccessible i (PPi plicity n ty t)
186 | InaccessibleArg `elem` pargopts plicity
186 | InaccessibleArg `elem` pargopts plicity
187− = i : inaccessible (i+1) t -- an .{erased : Implicit}
187+ = (i,n) : inaccessible (i+1) t -- an .{erased : Implicit}
188 | otherwise
188 | otherwise
189 = inaccessible (i+1) t -- a {regular : Implicit}
189 = inaccessible (i+1) t -- a {regular : Implicit}
190 inaccessible _ _ = []
190 inaccessible _ _ = []