git.iko.soy/typeable/servant
on master help sign in
Re-export Servant.API.Generic in Servant.API
9a99ef9Gaël Deest
servant-server/example/greet.hs−1
@@ -18,7 +18,6 @@ import Network.Wai.Handler.Warp
18
18
19import Servant
19import Servant
20import Servant.Server.Generic ()
20import Servant.Server.Generic ()
21−import Servant.API.Generic
22
21
23-- * Example
22-- * Example
24
23
servant/src/Servant/API.hs+4
@@ -38,6 +38,7 @@ module Servant.API (
38
38
39 -- * Sub-APIs defined as records of routes
39 -- * Sub-APIs defined as records of routes
40 module Servant.API.NamedRoutes,
40 module Servant.API.NamedRoutes,
41+ module Servant.API.Generic,
41
42
42 -- * Streaming endpoints, distinguished by HTTP method
43 -- * Streaming endpoints, distinguished by HTTP method
43 module Servant.API.Stream,
44 module Servant.API.Stream,
@@ -102,6 +103,9 @@ import Servant.API.Fragment
102 (Fragment)
103 (Fragment)
103import Servant.API.Header
104import Servant.API.Header
104 (Header, Header')
105 (Header, Header')
106+import Servant.API.Generic
107+ (GenericMode ((:-)), AsApi, ToServant, ToServantApi, GServantProduct,
108+ GenericServant, fromServant, toServant, genericApi)
105import Servant.API.HttpVersion
109import Servant.API.HttpVersion
106 (HttpVersion (..))
110 (HttpVersion (..))
107import Servant.API.IsSecure
111import Servant.API.IsSecure