tonatona-servant-0.1.0.2: tonatona plugin for servant.

Safe HaskellNone
LanguageHaskell2010

Tonatona.Servant

Synopsis

Documentation

run :: forall (api :: *) env. (HasServer api '[], HasConfig env Config, HasConfig env Config) => ServerT api (RIO env) -> RIO env () Source #

Main function.

data Config Source #

Constructors

Config 

Fields

Instances
Show Config Source # 
Instance details

Defined in Tonatona.Servant

HasParser Config Source # 
Instance details

Defined in Tonatona.Servant

Methods

parser :: Parser Config #

newtype Host Source #

This defines the host part of a URL.

For example, in the URL https://some.url.com:8090/, the host is some.url.com.

Constructors

Host 

Fields

Instances
Eq Host Source # 
Instance details

Defined in Tonatona.Servant

Methods

(==) :: Host -> Host -> Bool #

(/=) :: Host -> Host -> Bool #

Read Host Source # 
Instance details

Defined in Tonatona.Servant

Show Host Source # 
Instance details

Defined in Tonatona.Servant

Methods

showsPrec :: Int -> Host -> ShowS #

show :: Host -> String #

showList :: [Host] -> ShowS #

IsString Host Source # 
Instance details

Defined in Tonatona.Servant

Methods

fromString :: String -> Host #

HasParser Host Source # 
Instance details

Defined in Tonatona.Servant

Methods

parser :: Parser Host #

type Port = Int #

TCP port number.

newtype Protocol Source #

This defines the protocol part of a URL.

For example, in the URL https://some.url.com:8090/, the protocol is https.

Constructors

Protocol 

Fields

Instances
Eq Protocol Source # 
Instance details

Defined in Tonatona.Servant

Read Protocol Source # 
Instance details

Defined in Tonatona.Servant

Show Protocol Source # 
Instance details

Defined in Tonatona.Servant

IsString Protocol Source # 
Instance details

Defined in Tonatona.Servant

HasParser Protocol Source # 
Instance details

Defined in Tonatona.Servant