json-ast-quickcheck 0.1 → 0.2
raw patch · 3 files changed
+28/−28 lines, 3 filesdep ~json-astPVP ok
version bump matches the API change (PVP)
Dependency ranges changed: json-ast
API changes (from Hackage documentation)
- JSON.AST.QuickCheck: instance Test.QuickCheck.Arbitrary.Arbitrary JSON.AST.JSON
+ JSONAST.QuickCheck: instance Test.QuickCheck.Arbitrary.Arbitrary JSONAST.JSON
Files
- json-ast-quickcheck.cabal +4/−4
- library/JSON/AST/QuickCheck.hs +0/−24
- library/JSONAST/QuickCheck.hs +24/−0
json-ast-quickcheck.cabal view
@@ -1,7 +1,7 @@ name: json-ast-quickcheck version:- 0.1+ 0.2 synopsis: Compatibility layer for "json-ast" and "QuickCheck" description:@@ -36,14 +36,14 @@ hs-source-dirs: library default-extensions:- Arrows, BangPatterns, ConstraintKinds, DataKinds, DefaultSignatures, DeriveDataTypeable, DeriveFoldable, DeriveFunctor, DeriveGeneric, DeriveTraversable, EmptyDataDecls, FlexibleContexts, FlexibleInstances, FunctionalDependencies, GADTs, GeneralizedNewtypeDeriving, ImpredicativeTypes, LambdaCase, LiberalTypeSynonyms, MagicHash, MultiParamTypeClasses, MultiWayIf, NoImplicitPrelude, NoMonomorphismRestriction, OverloadedStrings, PatternGuards, ParallelListComp, QuasiQuotes, RankNTypes, RecordWildCards, ScopedTypeVariables, StandaloneDeriving, TemplateHaskell, TupleSections, TypeFamilies, TypeOperators, UnboxedTuples+ Arrows, BangPatterns, ConstraintKinds, DataKinds, DefaultSignatures, DeriveDataTypeable, DeriveFoldable, DeriveFunctor, DeriveGeneric, DeriveTraversable, EmptyDataDecls, FlexibleContexts, FlexibleInstances, FunctionalDependencies, GADTs, GeneralizedNewtypeDeriving, LambdaCase, LiberalTypeSynonyms, MagicHash, MultiParamTypeClasses, MultiWayIf, NoImplicitPrelude, NoMonomorphismRestriction, OverloadedStrings, PatternGuards, ParallelListComp, QuasiQuotes, RankNTypes, RecordWildCards, ScopedTypeVariables, StandaloneDeriving, TemplateHaskell, TupleSections, TypeFamilies, TypeOperators, UnboxedTuples default-language: Haskell2010 other-modules: exposed-modules:- JSON.AST.QuickCheck+ JSONAST.QuickCheck build-depends:- json-ast == 0.1.*,+ json-ast == 0.2.*, -- testing: quickcheck-instances >= 0.3.12 && < 0.4, QuickCheck >= 2.8.1 && < 3,
− library/JSON/AST/QuickCheck.hs
@@ -1,24 +0,0 @@-module JSON.AST.QuickCheck where--import Prelude-import JSON.AST-import Test.QuickCheck-import Test.QuickCheck.Instances---instance Arbitrary JSON where- arbitrary =- oneof [null, bool, number, string, array, object]- where- null =- pure Null- bool =- fmap Bool arbitrary- number =- fmap Number arbitrary- string =- fmap String arbitrary- array =- fmap Array arbitrary- object =- fmap Object arbitrary
+ library/JSONAST/QuickCheck.hs view
@@ -0,0 +1,24 @@+module JSONAST.QuickCheck where++import Prelude+import JSONAST+import Test.QuickCheck+import Test.QuickCheck.Instances+++instance Arbitrary JSON where+ arbitrary =+ oneof [null, bool, number, string, array, object]+ where+ null =+ pure Null+ bool =+ fmap Bool arbitrary+ number =+ fmap Number arbitrary+ string =+ fmap String arbitrary+ array =+ fmap Array arbitrary+ object =+ fmap Object arbitrary