git.iko.soy/typeable/servant
on master help sign in
module renaming: S.API.Elem -> S.Utils.Links
commit1cd35034e973ddca2626492dee722fd1a806cff0 authorSönke Hahn <soenke.hahn@zalora.com> dateFri 7 Nov 2014, 16:58 (12 years ago) parentaf00035
4 files changed+8−8
servant.cabal+1−1 src/Servant/API.hs+4−4 src/Servant/API/Elem.hs → src/Servant/Utils/Links.hs+1−1 test/Servant/API/ElemSpec.hs → test/Servant/Utils/LinksSpec.hs+2−2
servant.cabal+1−1
@@ -18,7 +18,6 @@ library
1818 Servant.API.Alternative
1919 Servant.API.Capture
2020 Servant.API.Delete
21− Servant.API.Elem
2221 Servant.API.Get
2322 Servant.API.Post
2423 Servant.API.Put
@@ -31,6 +30,7 @@ library
3130 Servant.Server
3231 Servant.Utils.ApiQuasiQuoting
3332 Servant.Utils.BaseUrl
33+ Servant.Utils.Links
3434 Servant.Utils.Req
3535 Servant.Utils.Text
3636 build-depends:
src/Servant/API.hs+4−4
@@ -28,17 +28,17 @@ module Servant.API (
2828 -- | QuasiQuotes for endpoints
2929 module Servant.Utils.ApiQuasiQuoting,
3030 -- | Type-safe internal URLs
31− module Servant.API.Elem,
31+ module Servant.Utils.Links,
3232 ) where
3333
34+import Servant.API.Alternative
3435import Servant.API.Capture
3536import Servant.API.Delete
36−import Servant.API.Elem (mkLink)
3737import Servant.API.Get
3838import Servant.API.Post
3939import Servant.API.Put
4040import Servant.API.QueryParam
41−import Servant.Utils.ApiQuasiQuoting (sitemap)
4241import Servant.API.ReqBody
4342import Servant.API.Sub
44−import Servant.API.Alternative
43+import Servant.Utils.ApiQuasiQuoting (sitemap)
44+import Servant.Utils.Links (mkLink)
src/Servant/API/Elem.hs → src/Servant/Utils/Links.hsrenamed+1−1
@@ -6,7 +6,7 @@
66{-# LANGUAGE FunctionalDependencies #-}
77{-# LANGUAGE ScopedTypeVariables #-}
88{-# LANGUAGE UndecidableInstances #-}
9−module Servant.API.Elem where
9+module Servant.Utils.Links where
1010
1111import Data.Proxy
1212import GHC.TypeLits
test/Servant/API/ElemSpec.hs → test/Servant/Utils/LinksSpec.hsrenamed+2−2
@@ -1,13 +1,13 @@
11{-# LANGUAGE DataKinds #-}
22{-# LANGUAGE PolyKinds #-}
33{-# LANGUAGE TypeOperators #-}
4−module Servant.API.ElemSpec where
4+module Servant.Utils.LinksSpec where
55
66import Test.Hspec
77
88import Servant.API
9−import Servant.API.Elem (IsElem, IsLink)
109import Servant.Utils.ApiQuasiQuotingSpec ( (~>) )
10+import Servant.Utils.Links (IsElem, IsLink)
1111
1212type TestApi =
1313 "hello" :> Capture "name" String :> QueryParam "capital" Bool :> Get Bool