genvalidity-hspec-0.7.0.1: Standard spec's for GenValidity instances

Safe HaskellNone
LanguageHaskell2010

Test.Validity.Utils

Description

Utilities for defining your own validity Specs

You will need TypeApplications to use these.

Synopsis

Documentation

nameOf :: forall a. Typeable a => String Source #

genDescr :: forall a. Typeable a => String -> String Source #

binRelStr :: forall a. Typeable a => String -> String Source #

failsBecause :: String -> SpecWith () -> SpecWith () Source #

Asserts that a given Spec tree fails _somewhere_.

It also shows the given string when reporting that the tree unexpectedly succeeded.

newtype Anon a Source #

Constructors

Anon a 
Instances
Functor Anon Source # 
Instance details

Defined in Test.Validity.Utils

Methods

fmap :: (a -> b) -> Anon a -> Anon b #

(<$) :: a -> Anon b -> Anon a #

Show (Anon a) Source # 
Instance details

Defined in Test.Validity.Utils

Methods

showsPrec :: Int -> Anon a -> ShowS #

show :: Anon a -> String #

showList :: [Anon a] -> ShowS #