tasty-laws-0.2: Test common laws

Safe HaskellNone
LanguageHaskell2010

Test.Tasty.Laws.Applicative

Synopsis

Documentation

testApplicative :: forall f a. (Applicative f, Show a, Eq a, Show (f a), Eq (f a), Eq (f (f a)), Show (f (a -> a)), Serial IO a, Serial IO (f a), Serial IO (a -> a), Serial IO (f (a -> a)), Serial Identity a, Serial Identity (f a)) => Proxy (f a) -> TestTree Source

tasty TestTree for Applicative laws. You need to provide the type wrapped in a Proxy and make sure a is an instance of Serial.