partition package:utility-ht

partition of GHC 6.2.1 fails on infinite lists. But this one does not.
Partition a list into elements which evaluate to Just or Nothing by f.
forAllMaybeFn $ \f xs -> partitionMaybe f xs == (mapMaybe f xs, filter (isNothing . f) xs)
forAllPredicates $ \p xs -> partition p xs == partitionMaybe (\x -> toMaybe (p x) x) xs