target-0.1.3.0: Generate test-suites from refinement types.

Safe HaskellNone
LanguageHaskell2010

Test.Target.TH

Synopsis

Documentation

type Error = forall a. String -> a Source

monomorphic :: Name -> ExpQ Source

Monomorphise an arbitrary property by defaulting all type variables to Integer.

For example, if f has type Ord a => [a] -> [a] then $(monomorphic 'f) has type [Integer] -> [Integer].

If you want to use monomorphic in the same file where you defined the property, the same scoping problems pop up as in quickCheckAll: see the note there about return [].