derive-2.0.1: A program and library to derive instances for data typesSource codeContentsIndex
Language.Haskell.TH.Data
Description
The core module of the Data.Derive system. This module contains the data types used for communication between the extractors and the derivors.
Documentation
type DataDef = DecSource
type CtorDef = ConSource
dataName :: DataDef -> StringSource
qualifiedDataName :: DataDef -> NameSource
dataArity :: DataDef -> IntSource
dataArgs :: DataDef -> [Name]Source
dataCtors :: DataDef -> [CtorDef]Source
ctorName :: CtorDef -> StringSource
qualifiedCtorName :: CtorDef -> NameSource
ctorArity :: CtorDef -> IntSource
ctorStrictTypes :: CtorDef -> [StrictType]Source
ctorTypes :: CtorDef -> [Type]Source
ctorFields :: CtorDef -> [String]Source
dropModule :: String -> StringSource
dropNumber :: String -> StringSource
normData :: DataDef -> DataDefSource
unqualifiedName :: Name -> StringSource
typeApp :: Type -> (Type, [Type])Source
eqConT :: String -> Type -> BoolSource
isTupleT :: Type -> BoolSource
Produced by Haddock version 2.4.2