on master help sign in
Change typesetting of errors a bit
2852a9aEvan Czaplicki
src/Reporting/Error.hs+3−3
@@ -43,16 +43,16 @@ toString location source (A.A region err) =
43 )
43 )
44
44
45 usedSpace =
45 usedSpace =
46− 4 + length tag + length location + 4
46+ 4 + length tag + 1 + length location
47
47
48 messageBar =
48 messageBar =
49 "-- " ++ tag ++ " "
49 "-- " ++ tag ++ " "
50 ++ replicate (max 1 (80 - usedSpace)) '-'
50 ++ replicate (max 1 (80 - usedSpace)) '-'
51− ++ " " ++ location ++ " --"
51+ ++ " " ++ location
52 in
52 in
53 messageBar ++ "\n\n"
53 messageBar ++ "\n\n"
54 ++ R.select region source ++ "\n"
54 ++ R.select region source ++ "\n"
55− ++ hint ++ "\n\n"
55+ ++ hint ++ "\n\n\n"
56
56
57
57
58-- JSON
58-- JSON