Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Conventional string formats used in Cardano.
Synopsis
- newtype SlotNoBhhString = SlotNoBhhString SlotNoBhh
- renderSlotNoBhh :: SlotNoBhhString -> Text
- newtype AssetIdString = AssetIdString AssetId
- renderPolicyId :: PolicyId -> Text
- renderAssetId :: AssetId -> Text
SlotNoBhhString
newtype SlotNoBhhString #
Instances
ToJSON SlotNoBhhString # | |
Defined in Mafoc.Upstream.Formats toJSON :: SlotNoBhhString -> Value toEncoding :: SlotNoBhhString -> Encoding toJSONList :: [SlotNoBhhString] -> Value toEncodingList :: [SlotNoBhhString] -> Encoding | |
ToJSONKey SlotNoBhhString # | |
Defined in Mafoc.Upstream.Formats toJSONKey :: ToJSONKeyFunction SlotNoBhhString toJSONKeyList :: ToJSONKeyFunction [SlotNoBhhString] | |
Eq SlotNoBhhString # | |
Defined in Mafoc.Upstream.Formats (==) :: SlotNoBhhString -> SlotNoBhhString -> Bool # (/=) :: SlotNoBhhString -> SlotNoBhhString -> Bool # | |
Ord SlotNoBhhString # | |
Defined in Mafoc.Upstream.Formats compare :: SlotNoBhhString -> SlotNoBhhString -> Ordering # (<) :: SlotNoBhhString -> SlotNoBhhString -> Bool # (<=) :: SlotNoBhhString -> SlotNoBhhString -> Bool # (>) :: SlotNoBhhString -> SlotNoBhhString -> Bool # (>=) :: SlotNoBhhString -> SlotNoBhhString -> Bool # max :: SlotNoBhhString -> SlotNoBhhString -> SlotNoBhhString # min :: SlotNoBhhString -> SlotNoBhhString -> SlotNoBhhString # |
renderSlotNoBhh :: SlotNoBhhString -> Text #
AssetIdString
newtype AssetIdString #
Newtype of AssetId which renders as "policyId.assetName"
AssetIdString AssetId |
Instances
ToJSON AssetIdString # | |
Defined in Mafoc.Upstream.Formats toJSON :: AssetIdString -> Value toEncoding :: AssetIdString -> Encoding toJSONList :: [AssetIdString] -> Value toEncodingList :: [AssetIdString] -> Encoding | |
ToJSONKey AssetIdString # | |
Defined in Mafoc.Upstream.Formats toJSONKey :: ToJSONKeyFunction AssetIdString toJSONKeyList :: ToJSONKeyFunction [AssetIdString] | |
Eq AssetIdString # | |
Defined in Mafoc.Upstream.Formats (==) :: AssetIdString -> AssetIdString -> Bool # (/=) :: AssetIdString -> AssetIdString -> Bool # | |
Ord AssetIdString # | |
Defined in Mafoc.Upstream.Formats compare :: AssetIdString -> AssetIdString -> Ordering # (<) :: AssetIdString -> AssetIdString -> Bool # (<=) :: AssetIdString -> AssetIdString -> Bool # (>) :: AssetIdString -> AssetIdString -> Bool # (>=) :: AssetIdString -> AssetIdString -> Bool # max :: AssetIdString -> AssetIdString -> AssetIdString # min :: AssetIdString -> AssetIdString -> AssetIdString # |
renderPolicyId :: PolicyId -> Text #
renderAssetId :: AssetId -> Text #