Safe Haskell | None |
---|---|
Language | Haskell2010 |
- arbitraryText :: Gen Text
- arbitraryScientific :: Gen Scientific
- arbitraryPositiveScientific :: Gen Scientific
- newtype ArbitraryValue = ArbitraryValue {}
- arbitraryHashMap :: Arbitrary a => Gen (HashMap Text a)
- arbitrarySetOfText :: Gen (Set Text)
- newtype NonEmpty' a = NonEmpty' {
- _unNonEmpty' :: NonEmpty a
- allUniqueValues :: Vector Value -> Bool
- allUniqueValues' :: NonEmpty Value -> Bool
- allUnique :: Ord a => [a] -> Bool
- newtype OrdValue = OrdValue {
- _unOrdValue :: Value
- fromJSONEither :: FromJSON a => Value -> Either Text a
QuickCheck
arbitraryText :: Gen Text Source #
newtype ArbitraryValue Source #
allUniqueValues
OrdValue's Ord instance needs benchmarking, but it allows us to
use our allUnique
function instead of O(n^2) nub, so it's probably
worth it.