hjsonschema-1.8.0: JSON Schema library
JSONSchema.Validator.Utils
Contents
Synopsis
arbitraryText ::GenTextSource#
arbitraryScientific ::GenScientificSource#
arbitraryPositiveScientific ::GenScientificSource#
newtypeArbitraryValueSource#
Constructors
Fields
Instances
Methods
(==) ::ArbitraryValue ->ArbitraryValue ->Bool#
(/=) ::ArbitraryValue ->ArbitraryValue ->Bool#
showsPrec ::Int ->ArbitraryValue ->ShowS#
show ::ArbitraryValue ->String#
showList :: [ArbitraryValue] ->ShowS#
arbitrary ::GenArbitraryValue#
shrink ::ArbitraryValue -> [ArbitraryValue]#
arbitraryHashMap ::Arbitrary a =>Gen (HashMapText a)Source#
arbitrarySetOfText ::Gen (SetText)Source#
newtypeNonEmpty' aSource#
arbitrary ::Gen (NonEmpty' a)#
shrink ::NonEmpty' a -> [NonEmpty' a]#
toJSON ::NonEmpty' a ->Value#
toEncoding ::NonEmpty' a ->Encoding#
toJSONList :: [NonEmpty' a] ->Value#
toEncodingList :: [NonEmpty' a] ->Encoding#
parseJSON ::Value ->Parser (NonEmpty' a)#
parseJSONList ::Value ->Parser [NonEmpty' a]#
allUniqueValues :: (Foldable f,Functor f) => fValue ->BoolSource#
allUnique :: (Foldable f,Ord a) => f a ->BoolSource#
newtypeOrdValueSource#
OrdValue's Ord instance needs benchmarking, but it allows us to use ourallUnique function instead of O(n^2) nub, so it's probably worth it.
allUnique
(==) ::OrdValue ->OrdValue ->Bool#
(/=) ::OrdValue ->OrdValue ->Bool#
compare ::OrdValue ->OrdValue ->Ordering#
(<) ::OrdValue ->OrdValue ->Bool#
(<=) ::OrdValue ->OrdValue ->Bool#
(>) ::OrdValue ->OrdValue ->Bool#
(>=) ::OrdValue ->OrdValue ->Bool#
max ::OrdValue ->OrdValue ->OrdValue#
min ::OrdValue ->OrdValue ->OrdValue#
Produced byHaddock version 2.18.1