Safe Haskell | None |
---|---|
Language | Haskell2010 |
Amount sum type
Documentation
Amount, which is either `AdaAmount Lovelaces` representing amount of lovelaces or `AssetAmount SomeDiscrete` for asset amounts, identified by concatenation of asset policy ID and hex-encoded asset_name
Instances
Orphan instances
ToJSON SomeDiscrete Source # | |
toJSON :: SomeDiscrete -> Value Source # toEncoding :: SomeDiscrete -> Encoding Source # toJSONList :: [ SomeDiscrete ] -> Value Source # toEncodingList :: [ SomeDiscrete ] -> Encoding Source # |
|
FromJSON SomeDiscrete Source # | |
parseJSON :: Value -> Parser SomeDiscrete Source # parseJSONList :: Value -> Parser [ SomeDiscrete ] Source # |