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

Safe Haskell | None
Language | Haskell98

Data.Derive.DSL.HSE

# Documentation

sample :: Input Source

outEq :: Out -> Out -> Bool Source

showOut :: Pretty a => [a] -> String Source

type Input = DataDecl Source

type Ctor = CtorDecl Source

dataName :: DataDecl -> String Source

dataVars :: DataDecl -> Int Source

dataCtors :: DataDecl -> [CtorDecl] Source

ctorName :: CtorDecl -> String Source

ctorArity :: CtorDecl -> Integer Source

ctorIndex :: Input -> Ctor -> Integer Source

toInput :: DataDecl -> Input Source

type Out = [Decl] Source

data Output Source

Constructors

OString String |
OInt Integer |
OApp String [Output] |
OList [Output] |
OIgnore |
OCustom String |

Instances

Eq Output Source |
Data Output Source |
Show Output Source |

toOutput :: Data a => a -> Output Source

fromOutput :: Data a => Output -> a Source

coerce :: (Typeable * a, Typeable * a1) => a1 -> a Source

readCon :: DataType -> [Char] -> Constr Source

out :: Data a => a -> Output Source

fromState :: State a x -> x Source

module Language.Haskell