Move BaseUrlSpec

This commit is contained in:
Julian K. Arni 2017-09-07 16:17:53 -07:00
parent f44ab3d083
commit 6995e39427
3 changed files with 12 additions and 5 deletions

View file

@ -56,6 +56,14 @@ test-suite spec
default-language: Haskell2010
hs-source-dirs: test
main-is: Spec.hs
build-depends:
base
, base-compat
, deepseq
, servant-client-core
, hspec == 2.*
, QuickCheck >= 2.7 && < 2.10
other-modules:
Servant.Client.Core.Internal.BaseUrlSpec
build-depends:
base == 4.*

View file

@ -1,5 +1,6 @@
{-# OPTIONS_GHC -fno-warn-orphans #-}
module Servant.Common.BaseUrlSpec where
module Servant.Client.Core.Internal.BaseUrlSpec (spec) where
import Control.DeepSeq
import Prelude ()
@ -7,7 +8,7 @@ import Prelude.Compat
import Test.Hspec
import Test.QuickCheck
import Servant.Common.BaseUrl
import Servant.Client.Core.Internal.BaseUrl
spec :: Spec
spec = do
@ -78,6 +79,3 @@ instance Arbitrary BaseUrl where
(1, choose (1, 20000)) :
[]
pathGen = listOf1 . elements $ letters
isLeft :: Either a b -> Bool
isLeft = either (const True) (const False)

View file

@ -0,0 +1 @@
{-# OPTIONS_GHC -F -pgmF hspec-discover #-}