on master help sign in
fix a bunch of typos in syntax errors

Thank you to @hrk on Slack for finding all of these!!!

commit71afb2f1ca3d12fcc40a4681e5f64991d99cead7 authorEvan Czaplicki <evancz@users.noreply.github.com> dateSat 13 Jul 2019, 09:59 (7 years ago) parenta648d59
1 file changed+10−10
compiler/src/Reporting/Error/Syntax.hs+10−10
compiler/src/Reporting/Error/Syntax.hs+10−10
@@ -517,7 +517,7 @@ toReport source err =
517517 ,
518518 D.stack
519519 [ D.reflow $
520− "I need it to match the file path, so I was expecting it to see `"
520+ "I need it to match the file path, so I was expecting to see `"
521521 ++ ModuleName.toChars expectedName
522522 ++ "` here. Make the following change, and you should be all set!"
523523 , D.indent 4 $
@@ -1728,7 +1728,7 @@ toTypeAliasReport source typeAlias startRow startCol =
17281728 ,
17291729 D.stack
17301730 [ D.reflow $
1731− "I was expecting to see a type variable or an an equals sign next."
1731+ "I was expecting to see a type variable or an equals sign next."
17321732 , typeAliasNote
17331733 ]
17341734 )
@@ -1749,7 +1749,7 @@ toTypeAliasReport source typeAlias startRow startCol =
17491749 ,
17501750 D.stack
17511751 [ D.reflow $
1752− "I was expecting to see a type variable or an an equals sign next."
1752+ "I was expecting to see a type variable or an equals sign next."
17531753 , typeAliasNote
17541754 ]
17551755 )
@@ -1856,7 +1856,7 @@ toCustomTypeReport source customType startRow startCol =
18561856 ,
18571857 D.stack
18581858 [ D.reflow $
1859− "I was expecting to see a type variable or an an equals sign next."
1859+ "I was expecting to see a type variable or an equals sign next."
18601860 , customTypeNote
18611861 ]
18621862 )
@@ -1916,7 +1916,7 @@ toCustomTypeReport source customType startRow startCol =
19161916 ,
19171917 D.stack
19181918 [ D.reflow $
1919− "I was expecting to see a type variable or an an equals sign next."
1919+ "I was expecting to see a type variable or an equals sign next."
19201920 , customTypeNote
19211921 ]
19221922 )
@@ -2932,7 +2932,7 @@ toLetReport source context let_ startRow startCol =
29322932 , D.toSimpleNote $
29332933 "This can also happen if you are trying to define another value within the `let` but\
29342934 \ it is not indented enough. Make sure each definition has exactly the same amount of\
2935− \ spaces before it. The should line up exactly!"
2935+ \ spaces before it. They should line up exactly!"
29362936 ]
29372937 )
29382938
@@ -4473,7 +4473,7 @@ toPatternReport source context pattern startRow startCol =
44734473 ,"((" <> D.dullyellow "x" <> "," <> D.dullyellow "y" <> ") " <> D.cyan "as" <> D.dullyellow " point" <> ")"
44744474 ,"so","you","can","refer","to","individual","parts","of","the","tuple","with"
44754475 ,D.dullyellow "x","and",D.dullyellow "y","or","you","refer","to","the","whole"
4476− ,"thing","with",D.dullyellow "point."
4476+ ,"thing","with",D.dullyellow "point" <> "."
44774477 ]
44784478 , D.reflow $
44794479 "So I was expecting to see a variable name after the `as` keyword here. Sometimes\
@@ -4665,7 +4665,7 @@ toPTupleReport source context tuple startRow startCol =
46654665 "I just saw an open parenthesis, but I got stuck here:"
46664666 ,
46674667 D.fillSep
4668− ["I","was","expecting","so","see","a","pattern","next."
4668+ ["I","was","expecting","to","see","a","pattern","next."
46694669 ,"Maybe","it","will","end","up","being","something"
46704670 ,"like",D.dullyellow "(x,y)","or",D.dullyellow "(name, _)" <> "?"
46714671 ]
@@ -4774,7 +4774,7 @@ toPTupleReport source context tuple startRow startCol =
47744774 "I just saw an open parenthesis, but then I got stuck here:"
47754775 ,
47764776 D.fillSep
4777− ["I","was","expecting","so","see","a","pattern","next."
4777+ ["I","was","expecting","to","see","a","pattern","next."
47784778 ,"Maybe","it","will","end","up","being","something"
47794779 ,"like",D.dullyellow "(x,y)","or",D.dullyellow "(name, _)" <> "?"
47804780 ]
@@ -4793,7 +4793,7 @@ toPTupleReport source context tuple startRow startCol =
47934793 ,
47944794 D.stack
47954795 [ D.fillSep
4796− ["I","was","expecting","so","see","a","pattern","next."
4796+ ["I","was","expecting","to","see","a","pattern","next."
47974797 ,"I","am","expecting","the","final","result","to","be","something"
47984798 ,"like",D.dullyellow "(x,y)","or",D.dullyellow "(name, _)" <> "."
47994799 ]