on master help sign in
fix a bunch of typos in syntax errors
71afb2fEvan Czaplicki
compiler/src/Reporting/Error/Syntax.hs+10−10
@@ -517,7 +517,7 @@ toReport source err =
517 ,
517 ,
518 D.stack
518 D.stack
519 [ D.reflow $
519 [ 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 `"
521 ++ ModuleName.toChars expectedName
521 ++ ModuleName.toChars expectedName
522 ++ "` here. Make the following change, and you should be all set!"
522 ++ "` here. Make the following change, and you should be all set!"
523 , D.indent 4 $
523 , D.indent 4 $
@@ -1728,7 +1728,7 @@ toTypeAliasReport source typeAlias startRow startCol =
1728 ,
1728 ,
1729 D.stack
1729 D.stack
1730 [ D.reflow $
1730 [ 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."
1732 , typeAliasNote
1732 , typeAliasNote
1733 ]
1733 ]
1734 )
1734 )
@@ -1749,7 +1749,7 @@ toTypeAliasReport source typeAlias startRow startCol =
1749 ,
1749 ,
1750 D.stack
1750 D.stack
1751 [ D.reflow $
1751 [ 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."
1753 , typeAliasNote
1753 , typeAliasNote
1754 ]
1754 ]
1755 )
1755 )
@@ -1856,7 +1856,7 @@ toCustomTypeReport source customType startRow startCol =
1856 ,
1856 ,
1857 D.stack
1857 D.stack
1858 [ D.reflow $
1858 [ 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."
1860 , customTypeNote
1860 , customTypeNote
1861 ]
1861 ]
1862 )
1862 )
@@ -1916,7 +1916,7 @@ toCustomTypeReport source customType startRow startCol =
1916 ,
1916 ,
1917 D.stack
1917 D.stack
1918 [ D.reflow $
1918 [ 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."
1920 , customTypeNote
1920 , customTypeNote
1921 ]
1921 ]
1922 )
1922 )
@@ -2932,7 +2932,7 @@ toLetReport source context let_ startRow startCol =
2932 , D.toSimpleNote $
2932 , D.toSimpleNote $
2933 "This can also happen if you are trying to define another value within the `let` but\
2933 "This can also happen if you are trying to define another value within the `let` but\
2934 \ it is not indented enough. Make sure each definition has exactly the same amount of\
2934 \ 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!"
2936 ]
2936 ]
2937 )
2937 )
2938
2938
@@ -4473,7 +4473,7 @@ toPatternReport source context pattern startRow startCol =
4473 ,"((" <> D.dullyellow "x" <> "," <> D.dullyellow "y" <> ") " <> D.cyan "as" <> D.dullyellow " point" <> ")"
4473 ,"((" <> D.dullyellow "x" <> "," <> D.dullyellow "y" <> ") " <> D.cyan "as" <> D.dullyellow " point" <> ")"
4474 ,"so","you","can","refer","to","individual","parts","of","the","tuple","with"
4474 ,"so","you","can","refer","to","individual","parts","of","the","tuple","with"
4475 ,D.dullyellow "x","and",D.dullyellow "y","or","you","refer","to","the","whole"
4475 ,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" <> "."
4477 ]
4477 ]
4478 , D.reflow $
4478 , D.reflow $
4479 "So I was expecting to see a variable name after the `as` keyword here. Sometimes\
4479 "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 =
4665 "I just saw an open parenthesis, but I got stuck here:"
4665 "I just saw an open parenthesis, but I got stuck here:"
4666 ,
4666 ,
4667 D.fillSep
4667 D.fillSep
4668− ["I","was","expecting","so","see","a","pattern","next."
4668+ ["I","was","expecting","to","see","a","pattern","next."
4669 ,"Maybe","it","will","end","up","being","something"
4669 ,"Maybe","it","will","end","up","being","something"
4670 ,"like",D.dullyellow "(x,y)","or",D.dullyellow "(name, _)" <> "?"
4670 ,"like",D.dullyellow "(x,y)","or",D.dullyellow "(name, _)" <> "?"
4671 ]
4671 ]
@@ -4774,7 +4774,7 @@ toPTupleReport source context tuple startRow startCol =
4774 "I just saw an open parenthesis, but then I got stuck here:"
4774 "I just saw an open parenthesis, but then I got stuck here:"
4775 ,
4775 ,
4776 D.fillSep
4776 D.fillSep
4777− ["I","was","expecting","so","see","a","pattern","next."
4777+ ["I","was","expecting","to","see","a","pattern","next."
4778 ,"Maybe","it","will","end","up","being","something"
4778 ,"Maybe","it","will","end","up","being","something"
4779 ,"like",D.dullyellow "(x,y)","or",D.dullyellow "(name, _)" <> "?"
4779 ,"like",D.dullyellow "(x,y)","or",D.dullyellow "(name, _)" <> "?"
4780 ]
4780 ]
@@ -4793,7 +4793,7 @@ toPTupleReport source context tuple startRow startCol =
4793 ,
4793 ,
4794 D.stack
4794 D.stack
4795 [ D.fillSep
4795 [ D.fillSep
4796− ["I","was","expecting","so","see","a","pattern","next."
4796+ ["I","was","expecting","to","see","a","pattern","next."
4797 ,"I","am","expecting","the","final","result","to","be","something"
4797 ,"I","am","expecting","the","final","result","to","be","something"
4798 ,"like",D.dullyellow "(x,y)","or",D.dullyellow "(name, _)" <> "."
4798 ,"like",D.dullyellow "(x,y)","or",D.dullyellow "(name, _)" <> "."
4799 ]
4799 ]