git.iko.soy/typeable/servant
on master help sign in
Re-export Servant.API.Generic in Servant.API
commit9a99ef9a0b4f991ca693e4dba3e7c2aff079e142 authorGaël Deest <gael.deest@tweag.io> dateMon 21 Mar 2022, 12:59 (5 years ago) parentde923fc
2 files changed+4−1
servant-server/example/greet.hs−1 servant/src/Servant/API.hs+4
servant-server/example/greet.hs−1
@@ -18,7 +18,6 @@ import Network.Wai.Handler.Warp
1818
1919import Servant
2020import Servant.Server.Generic ()
21−import Servant.API.Generic
2221
2322-- * Example
2423
servant/src/Servant/API.hs+4
@@ -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)
103104import Servant.API.Header
104105 (Header, Header')
106+import Servant.API.Generic
107+ (GenericMode ((:-)), AsApi, ToServant, ToServantApi, GServantProduct,
108+ GenericServant, fromServant, toServant, genericApi)
105109import Servant.API.HttpVersion
106110 (HttpVersion (..))
107111import Servant.API.IsSecure