plutus-ledger-1.2.0.0: Wallet API
Safe HaskellNone
LanguageHaskell2010

Ledger.Value.Orphans

Orphan instances

Generic AssetId Source # 
Instance details

Associated Types

type Rep AssetId :: Type -> Type Source #

Serialise CurrencySymbol Source # 
Instance details

Methods

encode :: CurrencySymbol -> Encoding

decode :: Decoder s CurrencySymbol

encodeList :: [CurrencySymbol] -> Encoding

decodeList :: Decoder s [CurrencySymbol]

Serialise TokenName Source # 
Instance details

Methods

encode :: TokenName -> Encoding

decode :: Decoder s TokenName

encodeList :: [TokenName] -> Encoding

decodeList :: Decoder s [TokenName]

Serialise Value Source # 
Instance details

Methods

encode :: Value -> Encoding

decode :: Decoder s Value

encodeList :: [Value] -> Encoding

decodeList :: Decoder s [Value]

Serialise AssetClass Source # 
Instance details

Methods

encode :: AssetClass -> Encoding

decode :: Decoder s AssetClass

encodeList :: [AssetClass] -> Encoding

decodeList :: Decoder s [AssetClass]

Serialise AssetId Source # 
Instance details

Methods

encode :: AssetId -> Encoding

decode :: Decoder s AssetId

encodeList :: [AssetId] -> Encoding

decodeList :: Decoder s [AssetId]

Serialise AssetName Source # 
Instance details

Methods

encode :: AssetName -> Encoding

decode :: Decoder s AssetName

encodeList :: [AssetName] -> Encoding

decodeList :: Decoder s [AssetName]

Serialise Lovelace Source # 
Instance details

Methods

encode :: Lovelace -> Encoding

decode :: Decoder s Lovelace

encodeList :: [Lovelace] -> Encoding

decodeList :: Decoder s [Lovelace]

Serialise PolicyId Source # 
Instance details

Methods

encode :: PolicyId -> Encoding

decode :: Decoder s PolicyId

encodeList :: [PolicyId] -> Encoding

decodeList :: Decoder s [PolicyId]

Serialise Quantity Source # 
Instance details

Methods

encode :: Quantity -> Encoding

decode :: Decoder s Quantity

encodeList :: [Quantity] -> Encoding

decodeList :: Decoder s [Quantity]

Serialise Value Source # 
Instance details

Methods

encode :: Value -> Encoding

decode :: Decoder s Value

encodeList :: [Value] -> Encoding

decodeList :: Decoder s [Value]

Hashable CurrencySymbol Source # 
Instance details

Methods

hashWithSalt :: Int -> CurrencySymbol -> Int

hash :: CurrencySymbol -> Int

Hashable TokenName Source # 
Instance details

Methods

hashWithSalt :: Int -> TokenName -> Int

hash :: TokenName -> Int

Hashable Value Source # 
Instance details

Methods

hashWithSalt :: Int -> Value -> Int

hash :: Value -> Int

Hashable AssetClass Source # 
Instance details

Methods

hashWithSalt :: Int -> AssetClass -> Int

hash :: AssetClass -> Int

FromJSON CurrencySymbol Source # 
Instance details

Methods

parseJSON :: Value -> Parser CurrencySymbol

parseJSONList :: Value -> Parser [CurrencySymbol]

FromJSON TokenName Source # 
Instance details

Methods

parseJSON :: Value -> Parser TokenName

parseJSONList :: Value -> Parser [TokenName]

FromJSON Value Source # 
Instance details

Methods

parseJSON :: Value0 -> Parser Value

parseJSONList :: Value0 -> Parser [Value]

FromJSON AssetClass Source # 
Instance details

Methods

parseJSON :: Value -> Parser AssetClass

parseJSONList :: Value -> Parser [AssetClass]

FromJSON AssetId Source # 
Instance details

Methods

parseJSON :: Value -> Parser AssetId

parseJSONList :: Value -> Parser [AssetId]

ToJSON CurrencySymbol Source # 
Instance details

Methods

toJSON :: CurrencySymbol -> Value

toEncoding :: CurrencySymbol -> Encoding

toJSONList :: [CurrencySymbol] -> Value

toEncodingList :: [CurrencySymbol] -> Encoding

ToJSON TokenName Source # 
Instance details

Methods

toJSON :: TokenName -> Value

toEncoding :: TokenName -> Encoding

toJSONList :: [TokenName] -> Value

toEncodingList :: [TokenName] -> Encoding

ToJSON Value Source # 
Instance details

Methods

toJSON :: Value -> Value0

toEncoding :: Value -> Encoding

toJSONList :: [Value] -> Value0

toEncodingList :: [Value] -> Encoding

ToJSON AssetClass Source # 
Instance details

Methods

toJSON :: AssetClass -> Value

toEncoding :: AssetClass -> Encoding

toJSONList :: [AssetClass] -> Value

toEncodingList :: [AssetClass] -> Encoding

ToJSON AssetId Source # 
Instance details

Methods

toJSON :: AssetId -> Value

toEncoding :: AssetId -> Encoding

toJSONList :: [AssetId] -> Value

toEncodingList :: [AssetId] -> Encoding

Pretty AssetId Source # 
Instance details

Methods

pretty :: AssetId -> Doc ann #

prettyList :: [AssetId] -> Doc ann #

Pretty Lovelace Source # 
Instance details

Methods

pretty :: Lovelace -> Doc ann #

prettyList :: [Lovelace] -> Doc ann #

Pretty Value Source # 
Instance details

Methods

pretty :: Value -> Doc ann #

prettyList :: [Value] -> Doc ann #

(Serialise k, Serialise v) => Serialise (Map k v) Source # 
Instance details

Methods

encode :: Map k v -> Encoding

decode :: Decoder s (Map k v)

encodeList :: [Map k v] -> Encoding

decodeList :: Decoder s [Map k v]

(Hashable k, Hashable v) => Hashable (Map k v) Source # 
Instance details

Methods

hashWithSalt :: Int -> Map k v -> Int

hash :: Map k v -> Int

(FromJSON v, FromJSON k) => FromJSON (Map k v) Source # 
Instance details

Methods

parseJSON :: Value -> Parser (Map k v)

parseJSONList :: Value -> Parser [Map k v]

(ToJSON v, ToJSON k) => ToJSON (Map k v) Source # 
Instance details

Methods

toJSON :: Map k v -> Value

toEncoding :: Map k v -> Encoding

toJSONList :: [Map k v] -> Value

toEncodingList :: [Map k v] -> Encoding