| Copyright | Dennis Gosnell 2017 |
|---|---|
| License | BSD3 |
| Maintainer | Dennis Gosnell (cdep.illabout@gmail.com) |
| Safe Haskell | Safe |
| Language | Haskell2010 |
Servant.RawM.Internal.API
Description
- type RawM = RawM' FileServer
- data RawM' serverType
- data FileServer
Documentation
type RawM = RawM' FileServer Source #
Specialization of RawM' to FileServer. This can be used if you are
using serveDirectoryWebApp,
serveDirectoryFileServer, etc.
data RawM' serverType Source #
This is a type to use to define a Servant API. It signifies a route that
allows embedding of a WAI Application. It is similar to
Raw, but it has a HasServer instance that
allows embedding of monadic effects. This should be more convenient than
Raw.
The phantom type serverType is used for defining the HasDocs
instance. There are instances for HasClient and
HasServer for RawM' with a polymorphic phantom type, but
there is only a HasDocs instance specified for . This allows the end-user to easily create a
RawM'
FileServerHasDocs instance for a custom Application.
data FileServer Source #
Used by RawM as a phantom type.