packages feed

tomland 1.3.3.0 → 1.3.3.1

raw patch · 3 files changed

+42/−16 lines, 3 filesdep ~bytestringdep ~hashabledep ~hspec

Dependency ranges changed: bytestring, hashable, hspec, megaparsec, time, transformers

Files

CHANGELOG.md view
@@ -3,6 +3,16 @@ `tomland` uses [PVP Versioning][1]. The changelog is available [on GitHub][2]. +## 🍁 1.3.3.1 — Nov 8, 2021++* Disable building executables by default+* Bump up dependencies:+    * Allow `bytestring-0.11.*`+    * Allow `hashable-1.4.0.0`+    * Allow `megaparsec-9.2.0`+    * Allow `time-1.13`+    * Allow `transformers-0.6.*`+ ## 🥞 1.3.3.0 — Mar 14, 2021  * [#370](https://github.com/kowainik/tomland/issues/370):
test/Test/Toml/Gen.hs view
@@ -116,16 +116,22 @@     alphadashes = Gen.choice [Gen.alphaNum, Gen.element "_-"]      quoted :: Gen Text-    quoted = genNotEscape $ Gen.choice [quotedWith '"', quotedWith '\'']+    quoted = genNotEscape $ Gen.choice+        [ quotedWith '"' (\x -> x /= '\\' && notControl x)+        , quotedWith '\'' notControl+        ] -    quotedWith :: Char -> Gen Text-    quotedWith c = wrapChar c <$> Gen.text (Range.constant 1 10) notControl+    quotedWith :: Char -> (Char -> Bool) -> Gen Text+    quotedWith c isAllowed = wrapChar c <$> Gen.text (Range.constant 1 10) allowedChar       where-        notControl :: Gen Char-        notControl = Gen.filter (\x -> x /= c && not (Char.isControl x)) Gen.unicode+        allowedChar :: Gen Char+        allowedChar = Gen.filter (\x -> x /= c && isAllowed x) Gen.unicode      wrapChar :: Char -> Text -> Text     wrapChar c = Text.cons c . (`Text.append` Text.singleton c)++    notControl :: Char -> Bool+    notControl = not . Char.isControl  genKey :: Gen Key genKey = Key <$> Gen.nonEmpty (Range.constant 1 10) genPiece
tomland.cabal view
@@ -1,6 +1,6 @@ cabal-version:       2.4 name:                tomland-version:             1.3.3.0+version:             1.3.3.1 synopsis:            Bidirectional TOML serialization description:     Implementation of bidirectional TOML serialization. Simple codecs look like this:@@ -37,13 +37,23 @@ tested-with:         GHC == 8.4.4                      GHC == 8.6.5                      GHC == 8.8.4-                     GHC == 8.10.4+                     GHC == 8.10.7                      GHC == 9.0.1  source-repository head   type:                git   location:            https://github.com/kowainik/tomland.git +flag build-readme+  description:         Build README generator.+  default:             False+  manual:              True++flag build-play-tomland+  description:         Build play-tomland executable.+  default:             False+  manual:              True+ common common-options   build-depends:       base >= 4.11 && < 4.16 @@ -116,23 +126,23 @@                            Toml.Type.UValue                            Toml.Type.Value -  build-depends:       bytestring ^>= 0.10+  build-depends:       bytestring >= 0.10 && < 0.12                      , containers >= 0.5.7 && < 0.7                      , deepseq ^>= 1.4-                     , hashable >= 1.3.1.0 && < 1.4-                     , megaparsec >= 7.0.5 && < 9.1+                     , hashable >= 1.3.1.0 && < 1.5+                     , megaparsec >= 7.0.5 && < 9.3                      , mtl ^>= 2.2                      , parser-combinators >= 1.1.0 && < 1.4                      , text ^>= 1.2-                     , time >= 1.8 && < 1.11-                     , transformers ^>= 0.5+                     , time >= 1.8 && < 1.14+                     , transformers >= 0.5 && < 0.7                      , unordered-containers ^>= 0.2.7                      , validation-selective ^>= 0.1.0  executable readme   import:              common-options   -- doesn't work on windows for unknown reasons-  if os(windows)+  if !flag(build-readme) || os(windows)     buildable: False   main-is:             README.lhs   build-depends:       tomland@@ -145,7 +155,7 @@ executable play-tomland   import:              common-options   -- We are using DerivingVia that works only with > 8.6-  if impl(ghc < 8.6)+  if !flag(build-play-tomland) || impl(ghc < 8.6)     buildable: False   main-is:             Main.hs   build-depends:       tomland@@ -209,11 +219,11 @@                        Test.Toml.Gen                        Test.Toml.Property -  build-depends:       bytestring ^>= 0.10+  build-depends:       bytestring                      , containers >= 0.5.7 && < 0.7                      , hashable                      , hedgehog ^>= 1.0.1-                     , hspec ^>= 2.7.1+                     , hspec >= 2.7.1 && < 2.9                      , hspec-hedgehog ^>= 0.0.1                      , hspec-megaparsec >= 2.0.0 && < 2.3.0                      , megaparsec