Standard test spec for properties of Applicative instances for values
generated by given generators (and names for those generator).
Unless you are building a specific regression test, you probably want
to use the other
applicativeSpec functions.
Example usage:
applicativeSpecOnGens
@Maybe
@String
(pure "ABC")
"ABC"
(Just <$> pure "ABC")
"Just an ABC"
(pure Nothing)
"purely Nothing"
((++) <$> genValid)
"prepends"
(pure <$> ((++) <$> genValid))
"prepends in a Just"
(pure <$> (flip (++) <$> genValid))
"appends in a Just"