on master help sign in
reframe explanation of comma-first style in error messages
98e9fb9Evan Czaplicki
compiler/src/Reporting/Error/Syntax.hs+16−24
@@ -4170,9 +4170,8 @@ noteForRecordError =
4170 , "}"
4170 , "}"
4171 ]
4171 ]
4172 , D.reflow $
4172 , D.reflow $
4173− "Notice that each line starts with some indentation. Usually two or four spaces. I\
4173+ "Notice that each line starts with some indentation. Usually two or four spaces.\
4174− \ know this style can be jarring for people coming from C-like syntax, but folks generally\
4174+ \ This is the stylistic convention in the Elm ecosystem."
4175− \ report that they are used to it (and often prefer it!) after a week or two of using Elm."
4176 ]
4175 ]
4177
4176
4178
4177
@@ -4191,9 +4190,8 @@ addNoteForRecordIndentError normalRecommendation =
4191 , "}"
4190 , "}"
4192 ]
4191 ]
4193 , D.reflow $
4192 , D.reflow $
4194− "Notice that each line starts with some indentation. Usually two or four spaces. I\
4193+ "Notice that each line starts with some indentation. Usually two or four spaces.\
4195− \ know this style can be jarring for people coming from C-like syntax, but folks generally\
4194+ \ This is the stylistic convention in the Elm ecosystem!"
4196− \ report that they are used to it (and often prefer it!) after a week or two of using Elm."
4197 ]
4195 ]
4198
4196
4199
4197
@@ -4388,9 +4386,8 @@ toListReport source context list startRow startCol =
4388 , "]"
4386 , "]"
4389 ]
4387 ]
4390 , D.reflow $
4388 , D.reflow $
4391− "Notice that nothing comes directly after a newline. Each line starts with some spaces.\
4389+ "Notice that each line starts with some indentation. Usually two or four spaces.\
4392− \ This style can be jarring for people coming from C-like syntax, but folks generally\
4390+ \ This is the stylistic convention in the Elm ecosystem."
4393− \ report that they are used to it (and often prefer it!) after a week or two of using Elm."
4394 ]
4391 ]
4395 )
4392 )
4396
4393
@@ -4449,9 +4446,8 @@ toListReport source context list startRow startCol =
4449 , "]"
4446 , "]"
4450 ]
4447 ]
4451 , D.reflow $
4448 , D.reflow $
4452− "Notice that nothing comes directly after a newline. Each line starts with some spaces.\
4449+ "Notice that each line starts with some indentation. Usually two or four spaces.\
4453− \ This style can be jarring for people coming from C-like syntax, but folks generally\
4450+ \ This is the stylistic convention in the Elm ecosystem."
4454− \ report that they are used to it (and often prefer it!) after a week or two of using Elm."
4455 ]
4451 ]
4456 )
4452 )
4457
4453
@@ -4481,9 +4477,8 @@ toListReport source context list startRow startCol =
4481 , "]"
4477 , "]"
4482 ]
4478 ]
4483 , D.reflow $
4479 , D.reflow $
4484− "Notice that nothing comes directly after a newline. Each line starts with some spaces.\
4480+ "Notice that each line starts with some indentation. Usually two or four spaces.\
4485− \ This style can be jarring for people coming from C-like syntax, but folks generally\
4481+ \ This is the stylistic convention in the Elm ecosystem."
4486− \ report that they are used to it (and often prefer it!) after a week or two of using Elm."
4487 ]
4482 ]
4488 )
4483 )
4489
4484
@@ -4510,9 +4505,8 @@ toListReport source context list startRow startCol =
4510 , "]"
4505 , "]"
4511 ]
4506 ]
4512 , D.reflow $
4507 , D.reflow $
4513− "Notice that nothing comes directly after a newline. Each line starts with some spaces.\
4508+ "Notice that each line starts with some indentation. Usually two or four spaces.\
4514− \ This style can be jarring for people coming from C-like syntax, but folks generally\
4509+ \ This is the stylistic convention in the Elm ecosystem."
4515− \ report that they are used to it (and often prefer it!) after a week or two of using Elm."
4516 ]
4510 ]
4517 )
4511 )
4518
4512
@@ -5604,9 +5598,8 @@ noteForRecordTypeError =
5604 , "}"
5598 , "}"
5605 ]
5599 ]
5606 , D.reflow $
5600 , D.reflow $
5607− "Notice that each line starts with some indentation. Usually two or four spaces. I\
5601+ "Notice that each line starts with some indentation. Usually two or four spaces.\
5608− \ know this style can be jarring for people coming from C-like syntax, but folks generally\
5602+ \ This is the stylistic convention in the Elm ecosystem."
5609− \ report that they are used to it (and often prefer it!) after a week or two of using Elm."
5610 ]
5603 ]
5611
5604
5612
5605
@@ -5623,9 +5616,8 @@ noteForRecordTypeIndentError =
5623 , "}"
5616 , "}"
5624 ]
5617 ]
5625 , D.reflow $
5618 , D.reflow $
5626− "Notice that each line starts with some indentation. Usually two or four spaces. I\
5619+ "Notice that each line starts with some indentation. Usually two or four spaces.\
5627− \ know this style can be jarring for people coming from C-like syntax, but folks generally\
5620+ \ This is the stylistic convention in the Elm ecosystem."
5628− \ report that they are used to it (and often prefer it!) after a week or two of using Elm."
5629 ]
5621 ]
5630
5622
5631
5623