Safe Haskell | None |
---|---|
Language | Haskell2010 |
Documentation
newtype AesonRecord a Source #
AesonRecord | |
|
Instances
(HasJSONOptions (AesonRecord a), Generic a, GToJSON Zero (Rep a), GToEncoding Zero (Rep a)) => ToJSON (AesonRecord a) Source # | |
Defined in Heart.Core.Aeson toJSON :: AesonRecord a -> Value # toEncoding :: AesonRecord a -> Encoding # toJSONList :: [AesonRecord a] -> Value # toEncodingList :: [AesonRecord a] -> Encoding # | |
(HasJSONOptions (AesonRecord a), Generic a, GFromJSON Zero (Rep a)) => FromJSON (AesonRecord a) Source # | |
Defined in Heart.Core.Aeson parseJSON :: Value -> Parser (AesonRecord a) # parseJSONList :: Value -> Parser [AesonRecord a] # | |
HasJSONOptions (AesonRecord a) Source # | |
Defined in Heart.Core.Aeson getJSONOptions :: Proxy (AesonRecord a) -> Options Source # |
newtype AesonNewtype n o Source #
Instances
(Newtype n, o ~ O n, ToJSON o) => ToJSON (AesonNewtype n o) Source # | |
Defined in Heart.Core.Aeson toJSON :: AesonNewtype n o -> Value # toEncoding :: AesonNewtype n o -> Encoding # toJSONList :: [AesonNewtype n o] -> Value # toEncodingList :: [AesonNewtype n o] -> Encoding # | |
(Newtype n, o ~ O n, FromJSON o) => FromJSON (AesonNewtype n o) Source # | |
Defined in Heart.Core.Aeson parseJSON :: Value -> Parser (AesonNewtype n o) # parseJSONList :: Value -> Parser [AesonNewtype n o] # | |
HasJSONOptions (AesonNewtype n o) Source # | |
Defined in Heart.Core.Aeson getJSONOptions :: Proxy (AesonNewtype n o) -> Options Source # |
AesonTag | |
|
Instances
(HasJSONOptions (AesonTag a), Generic a, GToJSON Zero (Rep a), GToEncoding Zero (Rep a)) => ToJSON (AesonTag a) Source # | |
Defined in Heart.Core.Aeson | |
(HasJSONOptions (AesonTag a), Generic a, GFromJSON Zero (Rep a)) => FromJSON (AesonTag a) Source # | |
HasTagPrefix a => HasJSONOptions (AesonTag a) Source # | |
Defined in Heart.Core.Aeson |
class HasJSONOptions a where Source #
getJSONOptions :: Proxy a -> Options Source #
Instances
HasJSONOptions (AesonRecord a) Source # | |
Defined in Heart.Core.Aeson getJSONOptions :: Proxy (AesonRecord a) -> Options Source # | |
HasTagPrefix a => HasJSONOptions (AesonTag a) Source # | |
Defined in Heart.Core.Aeson | |
HasJSONOptions (AesonNewtype n o) Source # | |
Defined in Heart.Core.Aeson getJSONOptions :: Proxy (AesonNewtype n o) -> Options Source # |
class HasTagPrefix a where Source #
getTagPrefix :: Proxy a -> Text Source #