@@ -220,7 +220,7 @@ elabData info syn doc fc codata (PDatadecl n t_in dcons)
220220
221221elabPrims :: Idris ()
222222elabPrims = do mapM_ (elabDecl EAll toplevel)
223− (map (PData "" defaultSyntax (FC "builtin" 0) False)
223+ (map (PData "" defaultSyntax (fileFC "builtin") False)
224224 [inferDecl, unitDecl, falseDecl, pairDecl, eqDecl])
225225 mapM_ elabPrim primitives
226226 -- Special case prim__believe_me because it doesn't work on just constants
@@ -746,15 +746,15 @@ elabVal info aspat tm_in
746746-- (build i info aspat (MN 0 "val") tm))
747747 tclift (elaborate ctxt (MN 0 "val") infP []
748748 (build i info aspat (MN 0 "val") (infTerm tm)))
749− def' <- checkDef (FC "(input)" 0) defer
749+ def' <- checkDef (fileFC "(input)") defer
750750 addDeferred def'
751751 mapM_ (elabCaseBlock info []) is
752752
753753 logLvl 3 ("Value: " ++ show tm')
754− recheckC (FC "(input)" 0) [] tm'
754+ recheckC (fileFC "(input)") [] tm'
755755 let vtm = getInferTerm tm'
756756 logLvl 2 (show vtm)
757− recheckC (FC "(input)" 0) [] vtm
757+ recheckC (fileFC "(input)") [] vtm
758758
759759-- checks if the clause is a possible left hand side. Returns the term if
760760-- possible, otherwise Nothing.
@@ -1051,7 +1051,7 @@ elabClause info opts (_, PWith fc fname lhs_in withs wval_in withblock)
10511051 logLvl 2 ("Matching " ++ showImp Nothing True False tm ++ " against " ++
10521052 showImp Nothing True False toplhs)
10531053 case matchClause i toplhs tm of
1054− Left f -> ifail $ show fc ++ ":with clause does not match top level"
1054+ Left (a,b) -> trace ("matchClause: " ++ show a ++ " =/= " ++ show b) (ifail $ show fc ++ ":with clause does not match top level")
10551055 Right mvars ->
10561056 do logLvl 3 ("Match vars : " ++ show mvars)
10571057 lhs <- updateLHS n wname mvars ns ns' (fullApp tm) w
@@ -1063,7 +1063,7 @@ elabClause info opts (_, PWith fc fname lhs_in withs wval_in withblock)
10631063 showImp Nothing True False toplhs)
10641064 withs' <- mapM (mkAuxC wname toplhs ns ns') withs
10651065 case matchClause i toplhs tm of
1066− Left _ -> ifail $ show fc ++ "with clause does not match top level"
1066+ Left (a,b) -> trace ("matchClause: " ++ show a ++ " =/= " ++ show b) (ifail $ show fc ++ "with clause does not match top level")
10671067 Right mvars ->
10681068 do lhs <- updateLHS n wname mvars ns ns' (fullApp tm) w
10691069 return $ PWith fc wname lhs ws wval withs'
@@ -1190,7 +1190,7 @@ elabClass info syn doc fc constraints tn ps ds
11901190 let mnames = take (length all) $ map (\x -> MN x "meth") [0..]
11911191 let capp = PApp fc (PRef fc cn) (map (pexp . PRef fc) mnames)
11921192 let lhs = PApp fc (PRef fc cfn) [pconst capp]
1193− let rhs = PResolveTC (FC "HACK" 0)
1193+ let rhs = PResolveTC (fileFC "HACK")
11941194 let ty = PPi constraint (MN 0 "pc") c con
11951195 iLOG (showImp Nothing True False ty)
11961196 iLOG (showImp Nothing True False lhs ++ " = " ++ showImp Nothing True False rhs)