Skip to content

Commit

Permalink
Parser: FIX add missing parentheses
Browse files Browse the repository at this point in the history
  • Loading branch information
ccntrq committed Jan 8, 2018
1 parent fad2fb8 commit fe4ab13
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Parser.hs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ parseIt ts = runParser (initState ts) parse
runParser :: ParserState -> Parser a -> Either ParserError a
runParser st p =
let (res, finalState) = runIdentity $ runStateT (runExceptT p) st
in if null $ errors finalState then res else Left $ ParserErrorCollection (reverse . errors finalState)
in if null $ errors finalState then res else Left $ ParserErrorCollection $ (reverse . errors) finalState


initState :: [Token] -> ParserState
Expand Down

0 comments on commit fe4ab13

Please sign in to comment.