toml-parser 2.0.1.0 → 2.0.1.1
raw patch · 4 files changed
+17/−8 lines, 4 filesdep ~containers
Dependency ranges changed: containers
Files
- ChangeLog.md +4/−0
- src/Toml/Syntax/Lexer.x +1/−1
- test/LexerSpec.hs +6/−1
- toml-parser.cabal +6/−6
ChangeLog.md view
@@ -1,5 +1,9 @@ # Revision history for toml-parser +## 2.0.1.1++* Fixes bug that prohibited non-ASCII characters in `'''` strings.+ ## 2.0.1.0 * Added `ToValue UTCTime` and `FromValue UTCTime`. These correspond
src/Toml/Syntax/Lexer.x view
@@ -63,7 +63,7 @@ $literal_char = [\x09 \x20-\x26 \x28-\x7E $non_ascii] -$mll_char = [\x09 \x20-\x26 \x28-\x7E]+$mll_char = [\x09 \x20-\x26 \x28-\x7E $non_ascii] @mll_content = $mll_char | @newline @mlb_escaped_nl = \\ @ws @newline ($wschar | @newline)*
test/LexerSpec.hs view
@@ -40,7 +40,7 @@ it "accepts tabs" $ parse_ "x\t=\t1" `shouldBe`- Right (table [("x" .= Integer 1)])+ Right (table ["x" .= Integer 1]) it "computes columns correctly with tabs" $ parse "x\t=\t="@@ -96,3 +96,8 @@ parse "x = \"\\p\"" `shouldBe` Left "1:6: lexical error: unknown escape sequence"++ it "allows multi-byte characters in ''' strings" $+ parse_ "x = '''§'''"+ `shouldBe`+ Right (table ["x" .= Text "§"])
toml-parser.cabal view
@@ -1,6 +1,6 @@ cabal-version: 3.0 name: toml-parser-version: 2.0.1.0+version: 2.0.1.1 synopsis: TOML 1.0.0 parser description: TOML parser using generated lexers and parsers with@@ -13,7 +13,7 @@ copyright: 2023 Eric Mertens category: Text build-type: Simple-tested-with: GHC == {8.10.7, 9.0.2, 9.2.8, 9.4.8, 9.6.5, 9.8.2, 9.10.1}+tested-with: GHC == {8.10.7, 9.0.2, 9.2.8, 9.4.8, 9.6.6, 9.8.2, 9.10.1, 9.12.2} extra-doc-files: ChangeLog.md@@ -71,8 +71,8 @@ Toml.Syntax.ParserUtils build-depends: array ^>= 0.5,- base ^>= {4.14, 4.15, 4.16, 4.17, 4.18, 4.19, 4.20},- containers ^>= {0.5, 0.6, 0.7},+ base ^>= {4.14, 4.15, 4.16, 4.17, 4.18, 4.19, 4.20, 4.21},+ containers ^>= {0.5, 0.6, 0.7, 0.8}, prettyprinter ^>= 1.7, text >= 0.2 && < 3, time ^>= {1.9, 1.10, 1.11, 1.12, 1.14},@@ -96,7 +96,7 @@ base, containers, hspec ^>= {2.10, 2.11},- template-haskell ^>= {2.16, 2.17, 2.18, 2.19, 2.20, 2.21, 2.22},+ template-haskell ^>= {2.16, 2.17, 2.18, 2.19, 2.20, 2.21, 2.22, 2.23}, text, time, toml-parser,@@ -128,7 +128,7 @@ base, toml-parser, hspec ^>= {2.10, 2.11},- template-haskell ^>= {2.16, 2.17, 2.18, 2.19, 2.20, 2.21, 2.22},+ template-haskell ^>= {2.16, 2.17, 2.18, 2.19, 2.20, 2.21, 2.22, 2.23}, text, build-tool-depends: markdown-unlit:markdown-unlit ^>= {0.5.1, 0.6.0},