-
-
Notifications
You must be signed in to change notification settings - Fork 40
Numbers with leading zero #333
Copy link
Copy link
Closed
Labels
bugSomething isn't workingSomething isn't workingparserEverything related to `Text -> Toml`Everything related to `Text -> Toml`
Milestone
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingparserEverything related to `Text -> Toml`Everything related to `Text -> Toml`
Currently
tomlandinterprets decimal numbers with leading zeros into zero. That is not really in the spirit of a TOML-0.5.0. According to the documentation:For this behaviour is responsible
zeroparser in functiondecimalP.tomland/src/Toml/Parser/Value.hs
Lines 37 to 38 in 316c893
So the type of parser should allow leading zero only if it is the only digit in the number, otherwise it shouldn't be allowed to come first.