Skip to content

Commit 3370b75

Browse files
author
Gaël Deest
authored
Merge pull request #1565 from haskell-servant/re-export
Re-export Servant.API.Generic in Servant.API
2 parents de923fc + 9a99ef9 commit 3370b75

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

servant-server/example/greet.hs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ import Network.Wai.Handler.Warp
1818

1919
import Servant
2020
import Servant.Server.Generic ()
21-
import Servant.API.Generic
2221

2322
-- * Example
2423

servant/src/Servant/API.hs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ module Servant.API (
3838

3939
-- * Sub-APIs defined as records of routes
4040
module Servant.API.NamedRoutes,
41+
module Servant.API.Generic,
4142

4243
-- * Streaming endpoints, distinguished by HTTP method
4344
module Servant.API.Stream,
@@ -102,6 +103,9 @@ import Servant.API.Fragment
102103
(Fragment)
103104
import Servant.API.Header
104105
(Header, Header')
106+
import Servant.API.Generic
107+
(GenericMode ((:-)), AsApi, ToServant, ToServantApi, GServantProduct,
108+
GenericServant, fromServant, toServant, genericApi)
105109
import Servant.API.HttpVersion
106110
(HttpVersion (..))
107111
import Servant.API.IsSecure

0 commit comments

Comments
 (0)