servant-checked-exceptions-0.1.0.1: Checked exceptions for Servant APIs.

CopyrightDennis Gosnell 2017
LicenseBSD3
MaintainerDennis Gosnell (cdep.illabout@gmail.com)
Stabilityexperimental
Portabilityunknown
Safe HaskellNone
LanguageHaskell2010

Servant.Checked.Exceptions.Internal.Servant.Client

Contents

Description

This module only exports HasClient instances for Throws and Throwing.

Synopsis

Documentation

Orphan instances

HasClient * ((:>) k * (Throwing (Snoc * es e)) api) => HasClient * ((:>) * * (Throwing es) ((:>) k * (Throws e) api)) Source #

When a Throws e comes immediately after a Throwing es, Snoc the e onto the es.

Associated Types

type Client ((:>) * * (Throwing es) ((:>) k * (Throws e) api)) (api :: (:>) * * (Throwing es) ((:>) k * (Throws e) api)) :: * #

Methods

clientWithRoute :: Proxy ((* :> *) (Throwing es) ((k :> *) (Throws e) api)) api -> Req -> Client ((* :> *) (Throwing es) ((k :> *) (Throws e) api)) api #

HasClient * (Verb * k1 method status ctypes (Envelope es a)) => HasClient * ((:>) * * (Throwing es) (Verb * k1 method status ctypes a)) Source #

When Throwing es comes before a Verb, change it into the same Verb but returning an Envelope es.

Associated Types

type Client ((:>) * * (Throwing es) (Verb * k1 method status ctypes a)) (api :: (:>) * * (Throwing es) (Verb * k1 method status ctypes a)) :: * #

Methods

clientWithRoute :: Proxy ((* :> *) (Throwing es) (Verb * k1 method status ctypes a)) api -> Req -> Client ((* :> *) (Throwing es) (Verb * k1 method status ctypes a)) api #

HasClient * ((:>) k * (Throwing ((:) * e ([] *))) api) => HasClient * ((:>) k * (Throws e) api) Source #

Change a Throws into Throwing.

Associated Types

type Client ((:>) k * (Throws e) api) (api :: (:>) k * (Throws e) api) :: * #

Methods

clientWithRoute :: Proxy ((k :> *) (Throws e) api) api -> Req -> Client ((k :> *) (Throws e) api) api #