derive-2.0.1: A program and library to derive instances for data typesSource codeContentsIndex
Data.DeriveTH
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 makeEq ''Foo )
Synopsis
derive :: Derivation -> Name -> Q [Dec]
derives :: [Derivation] -> [Name] -> Q [Dec]
deriveFromDec :: Derivation -> Dec -> Q [Dec]
module Data.Derive.All
Documentation
derive :: Derivation -> Name -> Q [Dec]Source
Derive an instance of some class. derive only derives instances for the type of the argument.
derives :: [Derivation] -> [Name] -> Q [Dec]Source
deriveFromDec :: Derivation -> Dec -> Q [Dec]Source
Derive an instance of some class. deriveFromDec only derives instances for the type of the argument.
module Data.Derive.All
Produced by Haddock version 2.4.2