Merge pull request #1565 from haskell-servant/re-export

Re-export Servant.API.Generic in Servant.API
This commit is contained in:
Gaël Deest 2022-03-21 13:57:40 +01:00 committed by GitHub
commit 3370b75622
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 1 deletions

View file

@ -18,7 +18,6 @@ import Network.Wai.Handler.Warp
import Servant import Servant
import Servant.Server.Generic () import Servant.Server.Generic ()
import Servant.API.Generic
-- * Example -- * Example

View file

@ -38,6 +38,7 @@ module Servant.API (
-- * Sub-APIs defined as records of routes -- * Sub-APIs defined as records of routes
module Servant.API.NamedRoutes, module Servant.API.NamedRoutes,
module Servant.API.Generic,
-- * Streaming endpoints, distinguished by HTTP method -- * Streaming endpoints, distinguished by HTTP method
module Servant.API.Stream, module Servant.API.Stream,
@ -102,6 +103,9 @@ import Servant.API.Fragment
(Fragment) (Fragment)
import Servant.API.Header import Servant.API.Header
(Header, Header') (Header, Header')
import Servant.API.Generic
(GenericMode ((:-)), AsApi, ToServant, ToServantApi, GServantProduct,
GenericServant, fromServant, toServant, genericApi)
import Servant.API.HttpVersion import Servant.API.HttpVersion
(HttpVersion (..)) (HttpVersion (..))
import Servant.API.IsSecure import Servant.API.IsSecure