htoml 0.2.0.0 → 0.2.0.1
raw patch · 3 files changed
+16/−12 lines, 3 filesdep −Cabaldep ~aesonPVP: minor bump suggested
API additions: PVP suggests at least a minor version bump
Dependencies removed: Cabal
Dependency ranges changed: aeson
API changes (from Hackage documentation)
+ Text.Toml.Types: class ToJSON a
+ Text.Toml.Types: instance GHC.Classes.Eq Text.Toml.Types.Explicitness
+ Text.Toml.Types: instance GHC.Show.Show Text.Toml.Types.Explicitness
+ Text.Toml.Types: toEncoding :: ToJSON a => a -> Encoding
+ Text.Toml.Types: toJSON :: ToJSON a => a -> Value
Files
- CHANGES.md +4/−0
- htoml.cabal +8/−10
- src/Text/Toml/Types.hs +4/−2
CHANGES.md view
@@ -4,6 +4,10 @@ #### dev * ... +### 0.2.0.1+* Expose `ToJSON` implementation+* Remove unused .cabal dependency (thanks @tmcgilchrist)+ #### 0.2.0.0 * Compatible with TOML 0.4.0 * Improve test suite (all test now pass -- thanks @HuwCampbell)
htoml.cabal view
@@ -1,5 +1,5 @@ name: htoml-version: 0.2.0.0+version: 0.2.0.1 synopsis: Parser for TOML files description: TOML is an obvious and minimal format for config files. .@@ -63,13 +63,13 @@ , aeson , text , time+ -- from here non-lib deps+ , htoml , bytestring >= 0.9 , file-embed >= 0.0.10- , Cabal >= 1.16.0 , tasty >= 0.10 , tasty-hspec >= 0.2 , tasty-hunit >= 0.9- , htoml test-suite Tests hs-source-dirs: test@@ -78,24 +78,22 @@ other-modules: BurntSushi , Text.Toml.Parser.Spec type: exitcode-stdio-1.0- default-language: Haskell2010+ default-language: Haskell2010 build-depends: base- , aeson , parsec , containers- , bytestring- , file-embed , unordered-containers , vector , aeson , text , time- , Cabal+ -- from here non-lib deps , htoml+ , bytestring+ , file-embed , tasty , tasty-hspec , tasty-hunit- , aeson benchmark benchmarks hs-source-dirs: benchmarks .@@ -111,6 +109,6 @@ , aeson , text , time- , Cabal+ -- from here non-lib deps , htoml , criterion
src/Text/Toml/Types.hs view
@@ -1,13 +1,14 @@ {-# LANGUAGE FlexibleInstances #-} {-# LANGUAGE OverloadedStrings #-} -module Text.Toml.Types (- Table+module Text.Toml.Types+ ( Table , emptyTable , Node (..) , Explicitness (..) , isExplicit , insert+ , ToJSON (..) , ToBsJSON (..) ) where @@ -47,6 +48,7 @@ -- | To mark whether or not a 'Table' has been explicitly defined. -- See: https://github.com/toml-lang/toml/issues/376 data Explicitness = Explicit | Implicit+ deriving (Eq, Show) -- | Convenience function to get a boolean value. isExplicit :: Explicitness -> Bool