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

Safe HaskellNone

Data.Derive.Internal.Derivation

Documentation

data Derivation Source

Constructors

Derivation 

Fields

derivationName :: String
 
derivationOp :: Type -> (String -> Decl) -> FullDataDecl -> Either String [Decl]
 

derivationParams :: String -> ([Type] -> (String -> Decl) -> FullDataDecl -> Either String [Decl]) -> DerivationSource

derivationCustomDSL :: String -> (FullDataDecl -> [Decl] -> [Decl]) -> DSL -> DerivationSource

customSplice :: (FullDataDecl -> Exp -> Exp) -> FullDataDecl -> [Decl] -> [Decl]Source

customContext :: (FullDataDecl -> Context -> Context) -> FullDataDecl -> [Decl] -> [Decl]Source