on master help sign in
Rename the "got to end unexpectedly" error in syntax errors
9307149Evan Czaplicki
compiler/src/Reporting/Error/Syntax.hs+2−2
@@ -77,7 +77,7 @@ data Error
77
77
78data Module
78data Module
79 = ModuleSpace Space Row Col
79 = ModuleSpace Space Row Col
80− | ModuleEndOfFile Row Col
80+ | ModuleBadEnd Row Col
81 --
81 --
82 | ModuleProblem Row Col
82 | ModuleProblem Row Col
83 | ModuleName Row Col
83 | ModuleName Row Col
@@ -570,7 +570,7 @@ toParseErrorReport source modul =
570 ModuleSpace space row col ->
570 ModuleSpace space row col ->
571 toSpaceReport source space row col
571 toSpaceReport source space row col
572
572
573− ModuleEndOfFile row col ->
573+ ModuleBadEnd row col ->
574 case Code.whatIsNext source row col of
574 case Code.whatIsNext source row col of
575 Code.Keyword keyword ->
575 Code.Keyword keyword ->
576 let
576 let