@@ -571,7 +571,7 @@ elabClause info opts (cnum, PClause fc fname lhs_in_as withs rhs_in_as wherebloc
571571
572572 ((ElabResult lhs' dlhs [] ctxt' newDecls highlights, probs, inj), _) <-
573573 tclift $ elaborate ctxt (idris_datatypes i) (sMN 0 "patLHS") infP initEState
574− (do res <- errAt "left hand side of " fname
574+ (do res <- errAt "left hand side of " fname Nothing
575575 (erun fc (buildTC i info ELHS opts fname (infTerm lhs)))
576576 probs <- get_probs
577577 inj <- get_inj
@@ -655,9 +655,9 @@ elabClause info opts (cnum, PClause fc fname lhs_in_as withs rhs_in_as wherebloc
655655 mapM_ setinj (nub (tcparams ++ inj))
656656 setNextName
657657 (ElabResult _ _ is ctxt' newDecls highlights) <-
658− errAt "right hand side of " fname
658+ errAt "right hand side of " fname (Just clhsty)
659659 (erun fc (build i winfo ERHS opts fname rhs))
660− errAt "right hand side of " fname
660+ errAt "right hand side of " fname (Just clhsty)
661661 (erun fc $ psolve lhs_tm)
662662 hs <- get_holes
663663 mapM_ (elabCaseHole is) hs
@@ -677,7 +677,7 @@ elabClause info opts (cnum, PClause fc fname lhs_in_as withs rhs_in_as wherebloc
677677 logLvl 4 $ "---> " ++ show rhs'
678678 when (not (null defer)) $ logLvl 1 $ "DEFERRED " ++
679679 show (map (\ (n, (_,_,t,_)) -> (n, t)) defer)
680− def' <- checkDef fc (Elaborating "deferred type of ") defer
680+ def' <- checkDef fc (\n -> Elaborating "deferred type of " n Nothing) defer
681681 let def'' = map (\(n, (i, top, t, ns)) -> (n, (i, top, t, ns, False))) def'
682682 addDeferred def''
683683 mapM_ (\(n, _) -> addIBC (IBCDef n)) def''
@@ -817,7 +817,7 @@ elabClause info opts (_, PWith fc fname lhs_in withs wval_in pn_in withblock)
817817 logLvl 2 ("LHS: " ++ show lhs)
818818 (ElabResult lhs' dlhs [] ctxt' newDecls highlights, _) <-
819819 tclift $ elaborate ctxt (idris_datatypes i) (sMN 0 "patLHS") infP initEState
820− (errAt "left hand side of with in " fname
820+ (errAt "left hand side of with in " fname Nothing
821821 (erun fc (buildTC i info ELHS opts fname (infTerm lhs))) )
822822 setContext ctxt'
823823 processTacticDecls info newDecls
@@ -842,7 +842,7 @@ elabClause info opts (_, PWith fc fname lhs_in withs wval_in pn_in withblock)
842842 mapM_ addPSname (allNamesIn lhs_in)
843843 setNextName
844844 -- TODO: may want where here - see winfo abpve
845− (ElabResult _ d is ctxt' newDecls highlights) <- errAt "with value in " fname
845+ (ElabResult _ d is ctxt' newDecls highlights) <- errAt "with value in " fname Nothing
846846 (erun fc (build i info ERHS opts fname (infTerm wval)))
847847 erun fc $ psolve lhs_tm
848848 tt <- get_term