Skip to content

Commit 24c8a14

Browse files
committed
only add HasGenRequest instance for Fragment on >=0.18.2
1 parent fec941a commit 24c8a14

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

servant-quickcheck/src/Servant/QuickCheck/Internal/HasGenRequest.hs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,5 +196,7 @@ instance (HasGenRequest a) => HasGenRequest (WithNamedContext x y a) where
196196
instance (HasGenRequest a) => HasGenRequest (BasicAuth x y :> a) where
197197
genRequest _ = genRequest (Proxy :: Proxy a)
198198

199+
#if MIN_VERSION_servant(0,18,2)
199200
instance (HasGenRequest a) => HasGenRequest (Fragment v :> a) where
200201
genRequest _ = genRequest (Proxy :: Proxy a)
202+
#endif

0 commit comments

Comments
 (0)