json-schema 0.7.1.1 → 0.7.2.0
raw patch · 3 files changed
+15/−1 lines, 3 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
+ Data.JSON.Schema.Types: instance HasResolution a => JSONSchema (Fixed a)
+ Data.JSON.Schema.Types: instance JSONSchema Double
+ Data.JSON.Schema.Types: instance JSONSchema Float
Files
- CHANGELOG.md +4/−0
- json-schema.cabal +1/−1
- src/Data/JSON/Schema/Types.hs +10/−0
CHANGELOG.md view
@@ -1,5 +1,9 @@ # Changelog +### 0.7.2.0++* Add `JSONSchema` instances for Double, Float, Fixed+ #### 0.7.1.1 * Allow `generic-deriving 1.7.*`
json-schema.cabal view
@@ -1,5 +1,5 @@ name: json-schema-version: 0.7.1.1+version: 0.7.2.0 synopsis: Types and type classes for defining JSON schemas. description: Types and type classes for defining JSON schemas. .
src/Data/JSON/Schema/Types.hs view
@@ -14,6 +14,7 @@ , unboundedLength ) where +import Data.Fixed import Data.Maybe import Data.Proxy import Data.String@@ -87,6 +88,15 @@ schema _ = Number unbounded instance JSONSchema Word32 where+ schema _ = Number unbounded++instance JSONSchema Float where+ schema _ = Number unbounded++instance JSONSchema Double where+ schema _ = Number unbounded++instance HasResolution a => JSONSchema (Fixed a) where schema _ = Number unbounded instance JSONSchema Bool where