Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- run :: forall (api :: Type) env. (HasServer api '[], HasConfig env Config, HasConfig env Config) => ServerT api (RIO env) -> RIO env ()
- runWithHandlers :: forall (api :: Type) env. (HasServer api '[], HasConfig env Config, HasConfig env Config) => (forall a. [Handler (RIO env) a]) -> ServerT api (RIO env) -> RIO env ()
- redirect :: ByteString -> RIO env a
- data Config = Config {}
- newtype Host = Host {}
- type Port = Int
- newtype Protocol = Protocol {
- unProtocol :: Text
Documentation
run :: forall (api :: Type) env. (HasServer api '[], HasConfig env Config, HasConfig env Config) => ServerT api (RIO env) -> RIO env () Source #
Main function.
runWithHandlers :: forall (api :: Type) env. (HasServer api '[], HasConfig env Config, HasConfig env Config) => (forall a. [Handler (RIO env) a]) -> ServerT api (RIO env) -> RIO env () Source #
Main function which allows you to pass error handlers.
redirect :: ByteString -> RIO env a 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
.
This defines the protocol part of a URL.
For example, in the URL https://some.url.com:8090/, the protocol is
https
.