Skip to content

Commit

Permalink
Arbitrary instances for MapIgnoreUnknownKeys
Browse files Browse the repository at this point in the history
  • Loading branch information
dfordivam committed Nov 3, 2024
1 parent d1f92d4 commit a1facfa
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion test/ghcup-test/GHCup/ArbitraryTypes.hs
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,11 @@ instance {-# OVERLAPS #-} Arbitrary v => Arbitrary (M.Map (Maybe Version) v) whe
instance {-# OVERLAPS #-} Arbitrary v => Arbitrary (M.Map Platform v) where
arbitrary = resize 8 $ M.fromList <$> arbitrary

instance {-# OVERLAPS #-} Arbitrary v => Arbitrary (MapIgnoreUnknownKeys Platform v) where
arbitrary = resize 8 $ MapIgnoreUnknownKeys . M.fromList <$> arbitrary

instance {-# OVERLAPS #-} Arbitrary v => Arbitrary (MapIgnoreUnknownKeys Architecture v) where
arbitrary = resize 8 $ MapIgnoreUnknownKeys . M.fromList <$> arbitrary

instance {-# OVERLAPS #-} Arbitrary v => Arbitrary (M.Map (Maybe Versioning) v) where
arbitrary = resize 8 $ M.fromList <$> arbitrary

0 comments on commit a1facfa

Please sign in to comment.