@@ -53,6 +53,12 @@ reservedPsNames = [ "data"
5353 , "where"
5454 ]
5555
56+-- |
57+-- The characters allowed for use in operators
58+--
59+opChars :: [Char]
60+opChars = ":!#$%&*+./<=>?@\\^|-~"
61+
5662-- |
5763-- A list of reserved identifiers for types
5864--
@@ -82,13 +88,13 @@ identLetter = P.alphaNum <|> P.oneOf "_'"
8288-- Valid first characters for an operator
8389--
8490opStart :: P.Parsec String u Char
85−opStart = P.oneOf ":!#$%&*+./<=>?@\\^|-~"
91+opStart = P.oneOf opChars
8692
8793-- |
8894-- Valid operators characters
8995--
9096opLetter :: P.Parsec String u Char
91−opLetter = P.oneOf ":!#$%&*+./<=>?@\\^|-~"
97+opLetter = P.oneOf opChars
9298
9399-- |
94100-- The PureScript language definition