| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Money.Aeson
Contents
Description
This module only exports orphan FromJSON and ToJSON instances.
Import as:
import Money.Aeson ()
Orphan instances
| ToJSON SomeDense Source # | Compatible with Note: The JSON serialization changed in |
| ToJSON SomeDiscrete Source # | Compatible with Note: The JSON serialization changed in version 0.4 (the leading |
Methods toJSON :: SomeDiscrete -> Value # toEncoding :: SomeDiscrete -> Encoding # toJSONList :: [SomeDiscrete] -> Value # toEncodingList :: [SomeDiscrete] -> Encoding # | |
| ToJSON SomeExchangeRate Source # | Compatible with Note: The JSON serialization changed in |
Methods toJSON :: SomeExchangeRate -> Value # toEncoding :: SomeExchangeRate -> Encoding # toJSONList :: [SomeExchangeRate] -> Value # toEncodingList :: [SomeExchangeRate] -> Encoding # | |
| FromJSON SomeDense Source # | Compatible with Note: The JSON serialization changed in |
| FromJSON SomeDiscrete Source # | Compatible with Note: The JSON serialization changed in version 0.4. However, this instance is still able to cope with the previous format. |
| FromJSON SomeExchangeRate Source # | Compatible with Note: The JSON serialization changed in |
Methods parseJSON :: Value -> Parser SomeExchangeRate # parseJSONList :: Value -> Parser [SomeExchangeRate] # | |
| KnownSymbol currency => ToJSON (Dense currency) Source # | Compatible with Example rendering ["BTC", 2, 3] Note: The JSON serialization changed in version 0.4 (the leading |
| KnownSymbol currency => FromJSON (Dense currency) Source # | Compatible with Note: The JSON serialization changed in |
| (KnownSymbol currency, GoodScale scale) => ToJSON (Discrete' currency scale) Source # | Compatible with Example rendering ["BTC", 100000000, 1, 43] Note: The JSON serialization changed in |
| (KnownSymbol src, KnownSymbol dst) => ToJSON (ExchangeRate src dst) Source # | Compatible with Example rendering an ["USD", "JPY", 5, 7] Note: The JSON serialization changed in version 0.4 (the leading
|
Methods toJSON :: ExchangeRate src dst -> Value # toEncoding :: ExchangeRate src dst -> Encoding # toJSONList :: [ExchangeRate src dst] -> Value # toEncodingList :: [ExchangeRate src dst] -> Encoding # | |
| (KnownSymbol currency, GoodScale scale) => FromJSON (Discrete' currency scale) Source # | Compatible with Note: The JSON serialization changed in |
| (KnownSymbol src, KnownSymbol dst) => FromJSON (ExchangeRate src dst) Source # | Compatible with Note: The JSON serialization changed in version 0.4. However, this instance is still able to cope with the previous format. |
Methods parseJSON :: Value -> Parser (ExchangeRate src dst) # parseJSONList :: Value -> Parser [ExchangeRate src dst] # | |