@@ -51,12 +51,12 @@ addError span message t1 t2 =
52 location =
52 location =
53 case span of
53 case span of
54− NoSpan msg -> if null msg then "" else "in\n\n " ++ msg
54+ NoSpan msg -> if null msg then "" else ":\n\n " ++ msg
55 Span p1 p2 msg -> lineNum ++ expr
55 Span p1 p2 msg -> lineNum ++ expr
57 lineNum = if line p1 == line p2 then "on line " ++ show (line p1)
57 lineNum = if line p1 == line p2 then "on line " ++ show (line p1)
58 else "between lines " ++ show (line p1) ++ " and " ++ show (line p2)
58 else "between lines " ++ show (line p1) ++ " and " ++ show (line p2)
59− expr = if null msg then "" else "\n\n " ++ msg
59+ expr = if null msg then "" else ":\n\n " ++ msg
61 makeError pt1 pt2 =
61 makeError pt1 pt2 =
62 P.vcat [ P.text $ "Type error " ++ location
62 P.vcat [ P.text $ "Type error " ++ location