moved S.Client.BaseUrl to S.Utils.BaseUrl

This commit is contained in:
Sönke Hahn 2014-11-07 11:58:41 +08:00
parent 93195abed6
commit 8e72c70767
12 changed files with 19 additions and 19 deletions

View file

@ -20,9 +20,9 @@ import Network.Wai.Handler.Warp
import Servant.API import Servant.API
import Servant.Client import Servant.Client
import Servant.Client.BaseUrl
import Servant.Docs import Servant.Docs
import Servant.Server import Servant.Server
import Servant.Utils.BaseUrl
-- * Example -- * Example

View file

@ -14,23 +14,23 @@ cabal-version: >=1.10
library library
exposed-modules: exposed-modules:
Servant Servant
Servant.Client
Servant.Client.BaseUrl
Servant.Docs
Servant.Server
Servant.API Servant.API
Servant.API.Alternative
Servant.API.Capture Servant.API.Capture
Servant.API.Delete Servant.API.Delete
Servant.API.Elem Servant.API.Elem
Servant.API.Get Servant.API.Get
Servant.API.Post Servant.API.Post
Servant.API.Put Servant.API.Put
Servant.API.QueryParam
Servant.API.ReqBody
Servant.API.QQ Servant.API.QQ
Servant.API.QueryParam
Servant.API.Raw Servant.API.Raw
Servant.API.ReqBody
Servant.API.Sub Servant.API.Sub
Servant.API.Alternative Servant.Client
Servant.Docs
Servant.Server
Servant.Utils.BaseUrl
Servant.Utils.Client Servant.Utils.Client
Servant.Utils.Text Servant.Utils.Text
build-depends: build-depends:

View file

@ -7,7 +7,7 @@ module Servant (
module Servant.Server, module Servant.Server,
-- | For accessing servant APIs as API clients. -- | For accessing servant APIs as API clients.
module Servant.Client, module Servant.Client,
module Servant.Client.BaseUrl, module Servant.Utils.BaseUrl,
-- | For generating documentation for servant APIs. -- | For generating documentation for servant APIs.
module Servant.Docs, module Servant.Docs,
-- | Helper module -- | Helper module
@ -16,7 +16,7 @@ module Servant (
import Servant.API import Servant.API
import Servant.Client import Servant.Client
import Servant.Client.BaseUrl
import Servant.Docs import Servant.Docs
import Servant.Server import Servant.Server
import Servant.Utils.BaseUrl
import Servant.Utils.Text import Servant.Utils.Text

View file

@ -11,9 +11,9 @@ import Data.Typeable
import Network.HTTP.Types import Network.HTTP.Types
import Network.Wai import Network.Wai
import Servant.Client import Servant.Client
import Servant.Client.BaseUrl
import Servant.Docs import Servant.Docs
import Servant.Server import Servant.Server
import Servant.Utils.BaseUrl
import Servant.Utils.Client import Servant.Utils.Client
-- | Endpoint for DELETE requests. -- | Endpoint for DELETE requests.

View file

@ -12,9 +12,9 @@ import Data.Typeable
import Network.HTTP.Types import Network.HTTP.Types
import Network.Wai import Network.Wai
import Servant.Client import Servant.Client
import Servant.Client.BaseUrl
import Servant.Docs import Servant.Docs
import Servant.Server import Servant.Server
import Servant.Utils.BaseUrl
import Servant.Utils.Client import Servant.Utils.Client
-- | Endpoint for simple GET requests. The server doesn't receive any arguments -- | Endpoint for simple GET requests. The server doesn't receive any arguments

View file

@ -12,9 +12,9 @@ import Data.Typeable
import Network.HTTP.Types import Network.HTTP.Types
import Network.Wai import Network.Wai
import Servant.Client import Servant.Client
import Servant.Client.BaseUrl
import Servant.Docs import Servant.Docs
import Servant.Server import Servant.Server
import Servant.Utils.BaseUrl
import Servant.Utils.Client import Servant.Utils.Client
-- | Endpoint for POST requests. The type variable represents the type of the -- | Endpoint for POST requests. The type variable represents the type of the

View file

@ -12,9 +12,9 @@ import Data.Typeable
import Network.HTTP.Types import Network.HTTP.Types
import Network.Wai import Network.Wai
import Servant.Client import Servant.Client
import Servant.Client.BaseUrl
import Servant.Docs import Servant.Docs
import Servant.Server import Servant.Server
import Servant.Utils.BaseUrl
import Servant.Utils.Client import Servant.Utils.Client
-- | Endpoint for PUT requests. -- | Endpoint for PUT requests.

View file

@ -12,7 +12,7 @@ import Network.HTTP.Types
import Network.URI import Network.URI
import System.IO.Unsafe import System.IO.Unsafe
import Servant.Client.BaseUrl import Servant.Utils.BaseUrl
-- * Accessing APIs as a Client -- * Accessing APIs as a Client

View file

@ -1,6 +1,6 @@
{-# LANGUAGE DeriveGeneric #-} {-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE ViewPatterns #-} {-# LANGUAGE ViewPatterns #-}
module Servant.Client.BaseUrl where module Servant.Utils.BaseUrl where
import Data.List import Data.List
import GHC.Generics import GHC.Generics

View file

@ -14,7 +14,7 @@ import Data.ByteString.Lazy
import Data.String.Conversions import Data.String.Conversions
import Network.HTTP.Types import Network.HTTP.Types
import Servant.Client import Servant.Client
import Servant.Client.BaseUrl import Servant.Utils.BaseUrl
import qualified Network.HTTP.Client as Client import qualified Network.HTTP.Client as Client

View file

@ -6,7 +6,7 @@ import Control.DeepSeq
import Test.Hspec import Test.Hspec
import Test.QuickCheck import Test.QuickCheck
import Servant.Client.BaseUrl import Servant.Utils.BaseUrl
spec :: Spec spec :: Spec
spec = do spec = do

View file

@ -21,8 +21,8 @@ import Test.QuickCheck
import Servant.API import Servant.API
import Servant.Client import Servant.Client
import Servant.Client.BaseUrl
import Servant.Server import Servant.Server
import Servant.Utils.BaseUrl
import Servant.ServerSpec import Servant.ServerSpec