Skip to content

Commit

Permalink
[#206] Test on toml-v0.4.0 example
Browse files Browse the repository at this point in the history
  • Loading branch information
jiegillet committed Jul 10, 2019
1 parent cfea143 commit 9c3475b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Toml/Parser/TOML.hs
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ tomlP = sc *> localTomlP Nothing <* eof

-- | Parser for a toml under a certain key
localTomlP :: Maybe Key -> Parser TOML
localTomlP key = mconcat <$> many (subArray <|> subTable <|> hasKeyP key)
localTomlP key = mconcat <$> many (subArray <|> subTable <|> (try $ hasKeyP key))
where
subTable :: Parser TOML
subTable = do
Expand Down

0 comments on commit 9c3475b

Please sign in to comment.