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

Safe HaskellNone
LanguageHaskell98

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]) -> Derivation Source

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

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

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