Module
Data.Codec
- Package
- purescript-codec
- Repository
- garyb/purescript-codec
#Codec Source
#identity Source
identity :: forall m a. Applicative m => Codec m a a a a
#composeFlipped Source
composeFlipped :: forall a d f b e c m. Bind m => Codec m a b c d -> Codec m d c e f -> Codec m a b e f
#(~) Source
Operator alias for Data.Profunctor.lcmap (left-associative / precedence 5)
Codec
is defined as a Profunctor
so that lcmap
can be used to target
specific fields when defining a codec for a product type. This operator
is a convenience for that:
tupleCodec =
Tuple
<$> fst ~ fstCodec
<*> snd ~ sndCodec
- Modules
- Data.
Codec