| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Polysemy.Http.AesonEntity
Synopsis
- interpretEntityEncodeAeson :: ToJSON d => Sem (EntityEncode d ': r) a -> Sem r a
- decodeWith :: ConvertUtf8 Text s => (s -> Either String a) -> s -> Sem r (Either EntityError a)
- interpretEntityDecodeAeson :: FromJSON d => Sem (EntityDecode d ': r) a -> Sem r a
Documentation
interpretEntityEncodeAeson :: ToJSON d => Sem (EntityEncode d ': r) a -> Sem r a Source #
Interpreter for EntityEncode that uses Aeson.
decodeWith :: ConvertUtf8 Text s => (s -> Either String a) -> s -> Sem r (Either EntityError a) Source #
interpretEntityDecodeAeson :: FromJSON d => Sem (EntityDecode d ': r) a -> Sem r a Source #
Interpreter for EntityDecode that uses Aeson.