on master help sign in
reframe explanation of comma-first style in error messages
commit98e9fb9433cba52f52cfd2770ce7bb15f80aa26a authorEvan Czaplicki <evancz@users.noreply.github.com> dateMon 29 Jul 2019, 21:13 (7 years ago) parentfea0186
1 file changed+16−24
compiler/src/Reporting/Error/Syntax.hs+16−24
compiler/src/Reporting/Error/Syntax.hs+16−24
@@ -4170,9 +4170,8 @@ noteForRecordError =
41704170 , "}"
41714171 ]
41724172 , D.reflow $
4173− "Notice that each line starts with some indentation. Usually two or four spaces. I\
4174− \ know this style can be jarring for people coming from C-like syntax, but folks generally\
4175− \ report that they are used to it (and often prefer it!) after a week or two of using Elm."
4173+ "Notice that each line starts with some indentation. Usually two or four spaces.\
4174+ \ This is the stylistic convention in the Elm ecosystem."
41764175 ]
41774176
41784177
@@ -4191,9 +4190,8 @@ addNoteForRecordIndentError normalRecommendation =
41914190 , "}"
41924191 ]
41934192 , D.reflow $
4194− "Notice that each line starts with some indentation. Usually two or four spaces. I\
4195− \ know this style can be jarring for people coming from C-like syntax, but folks generally\
4196− \ report that they are used to it (and often prefer it!) after a week or two of using Elm."
4193+ "Notice that each line starts with some indentation. Usually two or four spaces.\
4194+ \ This is the stylistic convention in the Elm ecosystem!"
41974195 ]
41984196
41994197
@@ -4388,9 +4386,8 @@ toListReport source context list startRow startCol =
43884386 , "]"
43894387 ]
43904388 , D.reflow $
4391− "Notice that nothing comes directly after a newline. Each line starts with some spaces.\
4392− \ This style can be jarring for people coming from C-like syntax, but folks generally\
4393− \ report that they are used to it (and often prefer it!) after a week or two of using Elm."
4389+ "Notice that each line starts with some indentation. Usually two or four spaces.\
4390+ \ This is the stylistic convention in the Elm ecosystem."
43944391 ]
43954392 )
43964393
@@ -4449,9 +4446,8 @@ toListReport source context list startRow startCol =
44494446 , "]"
44504447 ]
44514448 , D.reflow $
4452− "Notice that nothing comes directly after a newline. Each line starts with some spaces.\
4453− \ This style can be jarring for people coming from C-like syntax, but folks generally\
4454− \ report that they are used to it (and often prefer it!) after a week or two of using Elm."
4449+ "Notice that each line starts with some indentation. Usually two or four spaces.\
4450+ \ This is the stylistic convention in the Elm ecosystem."
44554451 ]
44564452 )
44574453
@@ -4481,9 +4477,8 @@ toListReport source context list startRow startCol =
44814477 , "]"
44824478 ]
44834479 , D.reflow $
4484− "Notice that nothing comes directly after a newline. Each line starts with some spaces.\
4485− \ This style can be jarring for people coming from C-like syntax, but folks generally\
4486− \ report that they are used to it (and often prefer it!) after a week or two of using Elm."
4480+ "Notice that each line starts with some indentation. Usually two or four spaces.\
4481+ \ This is the stylistic convention in the Elm ecosystem."
44874482 ]
44884483 )
44894484
@@ -4510,9 +4505,8 @@ toListReport source context list startRow startCol =
45104505 , "]"
45114506 ]
45124507 , D.reflow $
4513− "Notice that nothing comes directly after a newline. Each line starts with some spaces.\
4514− \ This style can be jarring for people coming from C-like syntax, but folks generally\
4515− \ report that they are used to it (and often prefer it!) after a week or two of using Elm."
4508+ "Notice that each line starts with some indentation. Usually two or four spaces.\
4509+ \ This is the stylistic convention in the Elm ecosystem."
45164510 ]
45174511 )
45184512
@@ -5604,9 +5598,8 @@ noteForRecordTypeError =
56045598 , "}"
56055599 ]
56065600 , D.reflow $
5607− "Notice that each line starts with some indentation. Usually two or four spaces. I\
5608− \ know this style can be jarring for people coming from C-like syntax, but folks generally\
5609− \ report that they are used to it (and often prefer it!) after a week or two of using Elm."
5601+ "Notice that each line starts with some indentation. Usually two or four spaces.\
5602+ \ This is the stylistic convention in the Elm ecosystem."
56105603 ]
56115604
56125605
@@ -5623,9 +5616,8 @@ noteForRecordTypeIndentError =
56235616 , "}"
56245617 ]
56255618 , D.reflow $
5626− "Notice that each line starts with some indentation. Usually two or four spaces. I\
5627− \ know this style can be jarring for people coming from C-like syntax, but folks generally\
5628− \ report that they are used to it (and often prefer it!) after a week or two of using Elm."
5619+ "Notice that each line starts with some indentation. Usually two or four spaces.\
5620+ \ This is the stylistic convention in the Elm ecosystem."
56295621 ]
56305622
56315623