Skip to content

Commit c064f94

Browse files
committed
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 <[email protected]>
1 parent abce119 commit c064f94

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

servant/test/Servant/API/ContentTypesSpec.hs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -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 #-}
89
module Servant.API.ContentTypesSpec where
@@ -28,7 +29,7 @@ import GHC.Generics
2829
import Network.URL (exportParams, importParams)
2930
import Test.Hspec
3031
import Test.QuickCheck
31-
import Test.QuickCheck.Instances ()
32+
import "quickcheck-instances" Test.QuickCheck.Instances ()
3233

3334
import Servant.API.ContentTypes
3435

0 commit comments

Comments
 (0)