Module

Data.Argonaut.Encode.Encoders

Package
purescript-argonaut-codecs
Repository
purescript-contrib/purescript-argonaut-codecs

#encodeIdentity Source

encodeIdentity :: forall a. (a -> Json) -> Identity a -> Json

#encodeMaybe Source

encodeMaybe :: forall a. (a -> Json) -> Maybe a -> Json

#encodeTuple Source

encodeTuple :: forall a b. (a -> Json) -> (b -> Json) -> Tuple a b -> Json

#encodeEither Source

encodeEither :: forall a b. (a -> Json) -> (b -> Json) -> Either a b -> Json

#encodeUnit Source

#encodeBoolean Source

#encodeNumber Source

#encodeInt Source

#encodeString Source

#encodeCodePoint Source

#encodeNonEmpty_Array Source

encodeNonEmpty_Array :: forall a. (a -> Json) -> NonEmpty Array a -> Json

#encodeNonEmptyArray Source

encodeNonEmptyArray :: forall a. (a -> Json) -> NonEmptyArray a -> Json

#encodeNonEmpty_List Source

encodeNonEmpty_List :: forall a. (a -> Json) -> NonEmpty List a -> Json

#encodeNonEmptyList Source

encodeNonEmptyList :: forall a. (a -> Json) -> NonEmptyList a -> Json

#encodeChar Source

#encodeArray Source

encodeArray :: forall a. (a -> Json) -> Array a -> Json

#encodeList Source

encodeList :: forall a. (a -> Json) -> List a -> Json

#encodeForeignObject Source

encodeForeignObject :: forall a. (a -> Json) -> Object a -> Json

#encodeSet Source

encodeSet :: forall a. Ord a => (a -> Json) -> Set a -> Json

#encodeMap Source

encodeMap :: forall a b. Ord a => (a -> Json) -> (b -> Json) -> Map a b -> Json

#encodeVoid Source

#assoc Source

assoc :: forall a. (a -> Json) -> String -> a -> Tuple String Json

#assocOptional Source

assocOptional :: forall a. (a -> Json) -> String -> Maybe a -> Maybe (Tuple String Json)

#extend Source

extend :: forall a. (a -> Json) -> Tuple String Json -> a -> Json

#extendOptional Source

extendOptional :: forall a. (a -> Json) -> Maybe (Tuple String Json) -> a -> Json

The named Encoders of the (~>?) operator.