derive-2.6.5: A program and library to derive instances for data types

Safe HaskellNone
LanguageHaskell2010

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 = Dec Source #

type CtorDef = Con Source #

dataName :: DataDef -> String Source #

dataArgs :: DataDef -> [Name] Source #

ctorName :: CtorDef -> String Source #

ctorStrictTypes :: CtorDef -> [StrictType] Source #

ctorTypes :: CtorDef -> [Type] Source #

ctorFields :: CtorDef -> [String] Source #

dropModule :: String -> String Source #

dropNumber :: String -> String Source #

unqualifiedName :: Name -> String Source #

typeApp :: Type -> (Type, [Type]) Source #

eqConT :: String -> Type -> Bool Source #

isTupleT :: Type -> Bool Source #