Module

Cardano.Types.Internal.Helpers

#eqOrd

eqOrd :: forall a. Ord a => a -> a -> Boolean

#showFromBytes

showFromBytes :: forall a. IsCsl a => IsBytes a => String -> a -> String

#showFromCbor

showFromCbor :: forall a. IsCsl a => IsBytes a => String -> a -> String

#compareViaCslBytes

compareViaCslBytes :: forall a b. IsCsl a => IsBytes a => IsCsl b => IsBytes b => a -> b -> Ordering

#decodeMap

decodeMap :: forall (k :: Type) (v :: Type). DecodeAeson k => Ord k => DecodeAeson v => DecodeTupleAux (k /\ v) => Aeson -> Either JsonDecodeError (Map k v)

#encodeTagged

encodeTagged :: forall a. String -> a -> (a -> Aeson) -> Aeson

Args: tag value encoder Encodes value using encoder as { "tag": *encoded tag*, "contents": *encoded value* }

#encodeTagged'

encodeTagged' :: forall (a :: Type). EncodeAeson a => String -> a -> Aeson

A wrapper around encodeTagged function that uses encodeAeson for encoding the passed value

#encodeMap

encodeMap :: forall (k :: Type) (v :: Type). EncodeAeson k => EncodeAeson v => Map k v -> Aeson

If k is encoded as string, encodeMap encodes Map as Object, else as an Array of Aeson /\ Aeson pairs

#withNonEmptyArray

withNonEmptyArray :: forall e c. IsCsl c => IsListContainer c e => Array e -> (c -> Effect Unit) -> Effect Unit

#clone

clone :: forall a. IsCsl a => a -> a

Modules