Skip to content

Commit

Permalink
Merge pull request #1565 from haskell-servant/re-export
Browse files Browse the repository at this point in the history
Re-export Servant.API.Generic in Servant.API
  • Loading branch information
Gaël Deest authored Mar 21, 2022
2 parents de923fc + 9a99ef9 commit 3370b75
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 0 additions & 1 deletion servant-server/example/greet.hs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ import Network.Wai.Handler.Warp

import Servant
import Servant.Server.Generic ()
import Servant.API.Generic

-- * Example

Expand Down
4 changes: 4 additions & 0 deletions servant/src/Servant/API.hs
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ module Servant.API (

-- * Sub-APIs defined as records of routes
module Servant.API.NamedRoutes,
module Servant.API.Generic,

-- * Streaming endpoints, distinguished by HTTP method
module Servant.API.Stream,
Expand Down Expand Up @@ -102,6 +103,9 @@ import Servant.API.Fragment
(Fragment)
import Servant.API.Header
(Header, Header')
import Servant.API.Generic
(GenericMode ((:-)), AsApi, ToServant, ToServantApi, GServantProduct,
GenericServant, fromServant, toServant, genericApi)
import Servant.API.HttpVersion
(HttpVersion (..))
import Servant.API.IsSecure
Expand Down

0 comments on commit 3370b75

Please sign in to comment.