Skip to content

Commit 56a3c0d

Browse files
committed
Exclude empty Dependency from tests
1 parent be94cff commit 56a3c0d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cabal-install/tests/UnitTests/Distribution/Client/ArbitraryInstances.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ instance Arbitrary PackageName where
121121
packageChars = filter isAlphaNum ['\0'..'\127']
122122

123123
instance Arbitrary Dependency where
124-
arbitrary = Dependency <$> arbitrary <*> arbitrary <*> arbitrary
124+
arbitrary = Dependency <$> arbitrary <*> arbitrary <*> fmap getNonMEmpty arbitrary
125125

126126
instance Arbitrary UnqualComponentName where
127127
-- same rules as package names

0 commit comments

Comments
 (0)