Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- newtype WithSpecialCases (rules :: [Type]) a = WithSpecialCases a
- data IfNoneThen label def
- type ExtractFieldFrom label field = ExtractFieldInto label field label
- data ExtractFieldInto label field target
- data ExtractFields label fields
- data ExtractArrayField label field
- data DefaultToEmptyArray
- data DefaultToZero
- data DefaultToFalse
- data DefaultToTrue
- newtype CalamityJSON a = CalamityJSON {
- unCalamityJSON :: a
- newtype CalamityJSONKeepNothing a = CalamityJSONKeepNothing {}
- jsonOptions :: Options
- jsonOptionsKeepNothing :: Options
Documentation
newtype WithSpecialCases (rules :: [Type]) a Source #
Instances
(RunSpecialCase rules, Typeable a, Generic a, GFromJSON Zero (Rep a)) => FromJSON (WithSpecialCases rules a) Source # | |
Defined in Calamity.Internal.AesonThings parseJSON :: Value -> Parser (WithSpecialCases rules a) # parseJSONList :: Value -> Parser [WithSpecialCases rules a] # |
data IfNoneThen label def Source #
type ExtractFieldFrom label field = ExtractFieldInto label field label Source #
data ExtractFieldInto label field target Source #
data ExtractFields label fields Source #
data ExtractArrayField label field Source #
data DefaultToEmptyArray Source #
Instances
Reifies DefaultToEmptyArray Value Source # | |
Defined in Calamity.Internal.AesonThings reflect :: proxy DefaultToEmptyArray -> Value # |
data DefaultToZero Source #
Instances
Reifies DefaultToZero Value Source # | |
Defined in Calamity.Internal.AesonThings reflect :: proxy DefaultToZero -> Value # |
data DefaultToFalse Source #
Instances
Reifies DefaultToFalse Value Source # | |
Defined in Calamity.Internal.AesonThings reflect :: proxy DefaultToFalse -> Value # |
data DefaultToTrue Source #
Instances
Reifies DefaultToTrue Value Source # | |
Defined in Calamity.Internal.AesonThings reflect :: proxy DefaultToTrue -> Value # |
newtype CalamityJSON a Source #
Instances
(Typeable a, Generic a, GToJSON Zero (Rep a), GToEncoding Zero (Rep a)) => ToJSON (CalamityJSON a) Source # | |
Defined in Calamity.Internal.AesonThings toJSON :: CalamityJSON a -> Value # toEncoding :: CalamityJSON a -> Encoding # toJSONList :: [CalamityJSON a] -> Value # toEncodingList :: [CalamityJSON a] -> Encoding # | |
(Typeable a, Generic a, GFromJSON Zero (Rep a)) => FromJSON (CalamityJSON a) Source # | |
Defined in Calamity.Internal.AesonThings parseJSON :: Value -> Parser (CalamityJSON a) # parseJSONList :: Value -> Parser [CalamityJSON a] # |
newtype CalamityJSONKeepNothing a Source #
version that keeps Nothing fields
Instances
(Typeable a, Generic a, GToJSON Zero (Rep a), GToEncoding Zero (Rep a)) => ToJSON (CalamityJSONKeepNothing a) Source # | |
Defined in Calamity.Internal.AesonThings toJSON :: CalamityJSONKeepNothing a -> Value # toEncoding :: CalamityJSONKeepNothing a -> Encoding # toJSONList :: [CalamityJSONKeepNothing a] -> Value # toEncodingList :: [CalamityJSONKeepNothing a] -> Encoding # | |
(Typeable a, Generic a, GFromJSON Zero (Rep a)) => FromJSON (CalamityJSONKeepNothing a) Source # | |
Defined in Calamity.Internal.AesonThings parseJSON :: Value -> Parser (CalamityJSONKeepNothing a) # parseJSONList :: Value -> Parser [CalamityJSONKeepNothing a] # |