fitspec-0.3.0: refining property sets for testing Haskell programs

Safe HaskellNone
LanguageHaskell2010

Test.FitSpec.Derive

Description

Experimental module for deriving Mutable instances

Needs GHC and Template Haskell (tested on GHC 7.4, 7.6, 7.8, 7.10 and 8.0)

Despite Mutable instances being actually very simple, this module can be used to derive those. However, it will not work on all cases: when that happens, you should write your instances manually.

Synopsis

Documentation

deriveMutable :: Name -> DecsQ Source #

Derives a Mutable instance for a given type Name.

deriveMutableE :: [Name] -> Name -> DecsQ Source #

Derives a Mutable instance for a given type Name using a given context for all type variables.