Safe Haskell | None |
---|---|
Language | Haskell2010 |
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.
- deriveMutable :: Name -> DecsQ
- deriveMutableE :: [Name] -> Name -> DecsQ
- module FitSpec.Mutable
- module FitSpec.ShowMutable
- module Test.LeanCheck
Documentation
deriveMutableE :: [Name] -> Name -> DecsQ Source #
Derives a Mutable instance for a given type (Name
) using a given context
for all type variables.
module FitSpec.Mutable
module FitSpec.ShowMutable
module Test.LeanCheck