smsaero-0.1.1: SMSAero API and HTTP client based on servant library.

Safe HaskellSafe-Inferred
LanguageHaskell2010

SMSAero.Utils

Synopsis

Documentation

class DistributiveClient client client' where Source

Distribute a client looking like

a -> (b :| ... :| c)

into

(a -> b) :| ...  :| (a -> c)

This is useful to bring authentication credentials to individual client endpoint queries.

Methods

distributeClient :: client -> client' Source

Instances

(DistributiveClient (a -> b) b', DistributiveClient (a -> c) c') => DistributiveClient (a -> (:<|>) b c) ((:<|>) b' c') 
DistributiveClient (a -> b) (a -> b)