aboutsummaryrefslogtreecommitdiffstats
path: root/src/Parser.hs
diff options
context:
space:
mode:
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 e46d80c..5089cb4 100644
--- a/src/Parser.hs
+++ b/src/Parser.hs
@@ -40,7 +40,7 @@ parseToken (Token token tr tc tf)
isString t = "\"" `L.isPrefixOf` t
removeQuotes s = drop 1 s $> take (length s - 2)
isBoolean t = t `elem` ["true", "false"]
- asBoolean t = if t == "true" then True else False
+ asBoolean t = t == "true"
ast astNode = AST { astNode = astNode, astRow = tr, astColumn = tc, astFileName = tf }
_parse :: [AST] -> [Token] -> LContext [AST]