on master help sign in
Add message on = and : for when you indented a definition wrong
commit094830d89a20f2084d0169c8d835cacb2accd5a7 authorEvan Czaplicki <evancz@users.noreply.github.com> dateSat 6 Aug 2016, 21:49 (10 years ago) parent707bea1
1 file changed+2−2
src/Parse/Binop.hs+2−2
src/Parse/Binop.hs+2−2
@@ -45,10 +45,10 @@ failOn op msg =
4545notReserved :: IParser a
4646notReserved =
4747 choice
48− [ failOn "=" "The = operator is reserved for defining variables. Maybe you want == instead?"
48+ [ failOn "=" "The = operator is reserved for defining variables. Maybe you want == instead? Or maybe you are defining a variable, but there is whitespace before it?"
4949 , failOn "->" "Arrows are reserved for cases and anonymous functions. Maybe you want > or >= instead?"
5050 , failOn "|" "Vertical bars are reserved for use in union type declarations. Maybe you want || instead?"
51− , failOn ":" "A singe colon is for type annotations. Maybe you want :: instead?"
51+ , failOn ":" "A singe colon is for type annotations. Maybe you want :: instead? Or maybe you are defining a type annotation, but there is whitespace before it?"
5252 ]
5353
5454