Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- encodeListWith :: (a -> Encoding) -> [a] -> Encoding
- encodeMaybeWith :: (a -> Encoding) -> Maybe a -> Encoding
- encodeRecordFields :: [Encoding] -> Encoding
- encodeUnion :: Text -> Encoding -> Encoding
- decodeUnion :: [(Text, Decoder s a)] -> Decoder s a
- decodeListWith :: Decoder s a -> Decoder s [a]
- decodeMaybeWith :: Decoder s a -> Decoder s (Maybe a)
- (<$!>) :: Monad m => (a -> b) -> m a -> m b
Documentation
encodeListWith :: (a -> Encoding) -> [a] -> Encoding Source #
encodeRecordFields :: [Encoding] -> Encoding Source #
encodeUnion :: Text -> Encoding -> Encoding Source #
Encode an element of a union as single-element map from a field name to a value.
decodeListWith :: Decoder s a -> Decoder s [a] Source #