@@ -220,7 +220,7 @@ elabData info syn doc fc codata (PDatadecl n t_in dcons)
221elabPrims :: Idris ()
221elabPrims :: Idris ()
222elabPrims = do mapM_ (elabDecl EAll toplevel)
222elabPrims = do mapM_ (elabDecl EAll toplevel)
223− (map (PData "" defaultSyntax (FC "builtin" 0) False)
223+ (map (PData "" defaultSyntax (fileFC "builtin") False)
224 [inferDecl, unitDecl, falseDecl, pairDecl, eqDecl])
224 [inferDecl, unitDecl, falseDecl, pairDecl, eqDecl])
225 mapM_ elabPrim primitives
225 mapM_ elabPrim primitives
226 -- Special case prim__believe_me because it doesn't work on just constants
226 -- Special case prim__believe_me because it doesn't work on just constants
@@ -746,15 +746,15 @@ elabVal info aspat tm_in
746-- (build i info aspat (MN 0 "val") tm))
746-- (build i info aspat (MN 0 "val") tm))
747 tclift (elaborate ctxt (MN 0 "val") infP []
747 tclift (elaborate ctxt (MN 0 "val") infP []
748 (build i info aspat (MN 0 "val") (infTerm tm)))
748 (build i info aspat (MN 0 "val") (infTerm tm)))
749− def' <- checkDef (FC "(input)" 0) defer
749+ def' <- checkDef (fileFC "(input)") defer
750 addDeferred def'
750 addDeferred def'
751 mapM_ (elabCaseBlock info []) is
751 mapM_ (elabCaseBlock info []) is
753 logLvl 3 ("Value: " ++ show tm')
753 logLvl 3 ("Value: " ++ show tm')
754− recheckC (FC "(input)" 0) [] tm'
754+ recheckC (fileFC "(input)") [] tm'
755 let vtm = getInferTerm tm'
755 let vtm = getInferTerm tm'
756 logLvl 2 (show vtm)
756 logLvl 2 (show vtm)
757− recheckC (FC "(input)" 0) [] vtm
757+ recheckC (fileFC "(input)") [] vtm
759-- checks if the clause is a possible left hand side. Returns the term if
759-- checks if the clause is a possible left hand side. Returns the term if
760-- possible, otherwise Nothing.
760-- possible, otherwise Nothing.
@@ -1051,7 +1051,7 @@ elabClause info opts (_, PWith fc fname lhs_in withs wval_in withblock)
1051 logLvl 2 ("Matching " ++ showImp Nothing True False tm ++ " against " ++
1051 logLvl 2 ("Matching " ++ showImp Nothing True False tm ++ " against " ++
1052 showImp Nothing True False toplhs)
1052 showImp Nothing True False toplhs)
1053 case matchClause i toplhs tm of
1053 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")
1055 Right mvars ->
1055 Right mvars ->
1056 do logLvl 3 ("Match vars : " ++ show mvars)
1056 do logLvl 3 ("Match vars : " ++ show mvars)
1057 lhs <- updateLHS n wname mvars ns ns' (fullApp tm) w
1057 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)
1063 showImp Nothing True False toplhs)
1063 showImp Nothing True False toplhs)
1064 withs' <- mapM (mkAuxC wname toplhs ns ns') withs
1064 withs' <- mapM (mkAuxC wname toplhs ns ns') withs
1065 case matchClause i toplhs tm of
1065 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")
1067 Right mvars ->
1067 Right mvars ->
1068 do lhs <- updateLHS n wname mvars ns ns' (fullApp tm) w
1068 do lhs <- updateLHS n wname mvars ns ns' (fullApp tm) w
1069 return $ PWith fc wname lhs ws wval withs'
1069 return $ PWith fc wname lhs ws wval withs'
@@ -1190,7 +1190,7 @@ elabClass info syn doc fc constraints tn ps ds
1190 let mnames = take (length all) $ map (\x -> MN x "meth") [0..]
1190 let mnames = take (length all) $ map (\x -> MN x "meth") [0..]
1191 let capp = PApp fc (PRef fc cn) (map (pexp . PRef fc) mnames)
1191 let capp = PApp fc (PRef fc cn) (map (pexp . PRef fc) mnames)
1192 let lhs = PApp fc (PRef fc cfn) [pconst capp]
1192 let lhs = PApp fc (PRef fc cfn) [pconst capp]
1193− let rhs = PResolveTC (FC "HACK" 0)
1193+ let rhs = PResolveTC (fileFC "HACK")
1194 let ty = PPi constraint (MN 0 "pc") c con
1194 let ty = PPi constraint (MN 0 "pc") c con
1195 iLOG (showImp Nothing True False ty)
1195 iLOG (showImp Nothing True False ty)
1196 iLOG (showImp Nothing True False lhs ++ " = " ++ showImp Nothing True False rhs)
1196 iLOG (showImp Nothing True False lhs ++ " = " ++ showImp Nothing True False rhs)