derive-0.1: A program and library to derive instances for data typesContentsIndex
Data.DeriveTH
Contents
Convienience re-exports
Internal
Description

The main TH driver module. It is intended that this need be the only module imported by user code; it takes care of all data threading issues such that all one needs to do is:

   data Foo = Foo ; $( derive eq ''Foo )
 
Synopsis
derive :: Derivation -> Name -> Q [Dec]
data Derivation
_derive_string_instance :: Derivation -> Name -> Q Exp
Documentation
derive :: Derivation -> Name -> Q [Dec]
Derive an instance of some class. derive only derives instances for the type of the argument.
Convienience re-exports
data Derivation
The type of ways to derive classes. Should not really be in this module!
Internal
_derive_string_instance :: Derivation -> Name -> Q Exp
Derive for a type and print the code to standard output. This is a internal hook for the use of the Derive executable.
Produced by Haddock version 0.8