git.iko.soy/typeable/servant
on master help sign in
Fix doctests failure when testpack or checkers are installed

Test fails as: Test suite doctests: RUNNING... test/Servant/API/ContentTypesSpec.hs:31:18: Ambiguous module name `Test.QuickCheck.Instances': it was found in multiple packages: checkers-0.4.4@check_A5bAKHstANbBRqwFoOaIKx testpack-2.1.3.0@testp_BjTqfpWNTOG5Lwlc3iqqG9 quickcheck-instances-0.3.12@quick_3Tkh09kYN8p78zxMKFPcZI Test suite doctests: FAIL Fixed by importing 'Test.QuickCheck.Instances' from "quickcheck-instances". Signed-off-by: Sergei Trofimovich <siarheit@google.com>

commitc064f94fd6e3c9c7ef7d241a5c81d300ee4b1595 authorSergei Trofimovich <siarheit@google.com> dateSat 16 Apr 2016, 16:13 (11 years ago) parentabce119
1 file changed+2−1
servant/test/Servant/API/ContentTypesSpec.hs+2−1
servant/test/Servant/API/ContentTypesSpec.hs+2−1
@@ -3,6 +3,7 @@
33{-# LANGUAGE DeriveGeneric #-}
44{-# LANGUAGE MultiParamTypeClasses #-}
55{-# LANGUAGE OverloadedStrings #-}
6+{-# LANGUAGE PackageImports #-}
67{-# LANGUAGE PolyKinds #-}
78{-# OPTIONS_GHC -fno-warn-orphans #-}
89module Servant.API.ContentTypesSpec where
@@ -28,7 +29,7 @@ import GHC.Generics
2829import Network.URL (exportParams, importParams)
2930import Test.Hspec
3031import Test.QuickCheck
31−import Test.QuickCheck.Instances ()
32+import "quickcheck-instances" Test.QuickCheck.Instances ()
3233
3334import Servant.API.ContentTypes
3435