@@ -224,7 +224,6 @@ data Expr
224 | EndlessShader Row Col
224 | EndlessShader Row Col
225 | ShaderProblem [Char.Char] Row Col
225 | ShaderProblem [Char.Char] Row Col
226 | IndentOperatorRight Name.Name Row Col
226 | IndentOperatorRight Name.Name Row Col
227− | IndentMoreExpr Row Col
230data Record
229data Record
@@ -2337,9 +2336,6 @@ toExprReport source context expr startRow startCol =
2340− IndentMoreExpr _ _ ->
2341− error "TODO IndentMoreExpr"
@@ -4270,8 +4266,41 @@ toPatternReport source context pattern startRow startCol =
4270 "This is a reserved word! Try using some other name?"
4266 "This is a reserved word! Try using some other name?"
4269+ Code.Operator "-" ->
4271+ surroundings = A.Region (A.Position startRow startCol) (A.Position row col)
4272+ region = toRegion row col
4274+ Report.Report "UNEXPECTED SYMBOL" region [] $
4275+ Code.toSnippet source surroundings (Just region)
4278+ "I ran into a minus sign unexpectedly in this pattern:"
4281+ "It is not possible to pattern match on negative numbers at this\
4282+ \ time. Try using an `if` expression for that sort of thing for now."
4274− error "TODO PStart"
4286+ let
4287+ surroundings = A.Region (A.Position startRow startCol) (A.Position row col)
4288+ region = toRegion row col
4290+ Report.Report "PROBLEM IN PATTERN" region [] $
4291+ Code.toSnippet source surroundings (Just region)
4294+ "I wanted to parse a pattern next, but I got stuck here:"
4297+ ["I","am","not","sure","why","I","am","getting","stuck","exactly."
4298+ ,"I","just","know","that","I","want","a","pattern","next."
4299+ ,"Something","as","simple","as"
4300+ ,D.dullyellow "maybeHeight","or",D.dullyellow "result"
4276 PChar char row col ->
4305 PChar char row col ->
4277 toCharReport source char row col
4306 toCharReport source char row col
@@ -4348,7 +4377,29 @@ toPatternReport source context pattern startRow startCol =
4348 toSpaceReport source space row col
4377 toSpaceReport source space row col
4350 PIndentStart row col ->
4379 PIndentStart row col ->
4351− error "TODO PIndentStart" row col
4380+ let
4381+ surroundings = A.Region (A.Position startRow startCol) (A.Position row col)
4382+ region = toRegion row col
4384+ Report.Report "UNFINISHED PATTERN" region [] $
4385+ Code.toSnippet source surroundings (Just region)
4388+ "I wanted to parse a pattern next, but I got stuck here:"
4392+ ["I","am","not","sure","why","I","am","getting","stuck","exactly."
4393+ ,"I","just","know","that","I","want","a","pattern","next."
4394+ ,"Something","as","simple","as"
4395+ ,D.dullyellow "maybeHeight","or",D.dullyellow "result"
4399+ "I can get confused by indentation. If you think there is a pattern next, maybe\
4400+ \ it needs to be indented a bit more?"
4353 PIndentAlias row col ->
4404 PIndentAlias row col ->