aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Parser.hs
diff options
context:
space:
mode:
authorMarvin Borner2022-07-17 13:10:37 +0200
committerMarvin Borner2022-07-17 13:48:08 +0200
commit15c5e04c598a19153404a1ac184ed36dd4b30160 (patch)
tree43e0f2134c804ea719dfa2e2a447fe02e1e0fda7 /src/Parser.hs
parent4c7d4174a2fcdea74d332cf7b407d6234c06bb2d (diff)
More examples
Diffstat (limited to 'src/Parser.hs')
-rw-r--r--src/Parser.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Parser.hs b/src/Parser.hs
index 29f40b9..dc6951a 100644
--- a/src/Parser.hs
+++ b/src/Parser.hs
@@ -24,7 +24,7 @@ symbol = L.symbol sc
identifier :: Parser String
identifier = lexeme
- ((:) <$> (letterChar <|> char '_') <*> many (alphaNumChar <|> oneOf "?!'_"))
+ ((:) <$> (letterChar <|> char '_') <*> many (alphaNumChar <|> oneOf "?!'_-"))
parens :: Parser a -> Parser a
parens = between (symbol "(") (symbol ")")