on master help sign in
style: better formatting for "reserveds"
42b2236Evan Czaplicki
compiler/Parse/Helpers.hs+11−9
@@ -22,15 +22,17 @@ import AST.Literal as Literal
22import AST.PrettyPrint
22import AST.PrettyPrint
23import qualified AST.Variable as Variable
23import qualified AST.Variable as Variable
24
24
25+reserveds :: [String]
26+reserveds =
25−reserveds = [ "if", "then", "else"
27+ [ "if", "then", "else"
26− , "case", "of"
28+ , "case", "of"
27− , "let", "in"
29+ , "let", "in"
28− , "data", "type"
30+ , "data", "type"
29− , "module", "where"
31+ , "module", "where"
30− , "import", "as", "hiding", "open"
32+ , "import", "as", "hiding", "open"
31− , "export", "foreign"
33+ , "export", "foreign"
32− , "deriving", "port"
34+ , "deriving", "port"
33− ]
35+ ]
34
36
35expecting = flip (<?>)
37expecting = flip (<?>)
36
38