This repository was archived by the owner on Oct 4, 2020. It is now read-only.
This repository was archived by the owner on Oct 4, 2020. It is now read-only.
Arbitrary Instances would be nice to have #27
Open
Description
It would be really nice if the standard libs core data types all had arbitrary instances somewhere (not necessarily in the main repo, but maybe). I'm going to leave this one here, because I don't know where to put it.
instance arbStrMap :: (Arbitrary a) => Arbitrary (StrMap a) where
arbitrary = do
n <- arbitrary
ks <- arbitrary
return $ foldr (\k sm -> insert k n sm) empty (ks :: [String])
Metadata
Metadata
Assignees
Labels
No labels