From 9a99ef9a0b4f991ca693e4dba3e7c2aff079e142 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C3=ABl=20Deest?= Date: Mon, 21 Mar 2022 12:59:03 +0100 Subject: [PATCH] Re-export Servant.API.Generic in Servant.API --- servant-server/example/greet.hs | 1 - servant/src/Servant/API.hs | 4 ++++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/servant-server/example/greet.hs b/servant-server/example/greet.hs index 5d95ddca..0b994cd3 100644 --- a/servant-server/example/greet.hs +++ b/servant-server/example/greet.hs @@ -18,7 +18,6 @@ import Network.Wai.Handler.Warp import Servant import Servant.Server.Generic () -import Servant.API.Generic -- * Example diff --git a/servant/src/Servant/API.hs b/servant/src/Servant/API.hs index de4b805c..22309dce 100644 --- a/servant/src/Servant/API.hs +++ b/servant/src/Servant/API.hs @@ -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, @@ -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