polysemy-http-0.13.0.1: Polysemy effects for HTTP clients
Safe HaskellSafe-Inferred
LanguageGHC2021

Polysemy.Http.Interpreter.AesonEntity

Description

 
Synopsis

Documentation

interpretEntityEncodeAesonAs :: ToJSON j => (d -> j) -> Sem (EntityEncode d : r) a -> Sem r a Source #

Interpreter for EntityEncode that uses Aeson and a different codec type. The first parameter is the conversion function.

interpretEntityEncodeAeson :: ToJSON d => Sem (EntityEncode d : r) a -> Sem r a Source #

Interpreter for EntityEncode that uses Aeson.

interpretEntityDecodeAesonWith :: FromJSON j => (j -> Sem r (Either Text d)) -> Sem (EntityDecode d : r) a -> Sem r a Source #

Interpreter for EntityDecode that uses Aeson and a different codec type. The first parameter is the effectful conversion function.

interpretEntityDecodeAesonAs :: FromJSON j => (j -> d) -> Sem (EntityDecode d : r) a -> Sem r a Source #

Interpreter for EntityDecode that uses Aeson and a different codec type. The first parameter is the conversion function.

interpretEntityDecodeAeson :: FromJSON d => Sem (EntityDecode d : r) a -> Sem r a Source #

Interpreter for EntityDecode that uses Aeson.