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

Safe Haskell | None

Language.Haskell

# Documentation

(?) :: Bool -> a -> a -> aSource

foralls :: Type -> Type Source

tyApps :: Type -> [Type] -> Type Source

fromTyApps :: Type -> (Type, [Type])Source

fromTyTuple :: Type -> [Type]Source

fromTyParen :: Type -> Type Source

fromTyParens :: Type -> Type Source

tyRoot :: Type -> String Source

isTyFun :: Type -> Bool Source

isTyParen :: Type -> Bool Source

fromTyList :: Type -> Maybe Type Source

(~=) :: Pretty a => a -> String -> Bool Source

appP :: Exp -> Exp -> Exp Source

simplify :: Data a => a -> aSource

isGuardFalse :: Match -> Bool Source

rename :: QName -> QName Source

isAtom :: Exp -> Bool Source

paren :: Exp -> Exp Source

sl :: SrcLoc Source

noSl :: Data from => from -> fromSource

title :: [Char] -> [Char]Source

qname :: String -> QName Source

var :: String -> Exp Source

con :: String -> Exp Source

tyVar :: String -> Type Source

tyVarBind :: String -> TyVarBind Source

tyCon :: String -> Type Source

pVar :: String -> Pat Source

qvop :: String -> QOp Source

dataDeclType :: DataDecl -> Type Source

dataDeclFields :: DataDecl -> [String]Source

type DataDecl = Decl Source

type CtorDecl = Either QualConDecl GadtDecl Source

type FieldDecl = [(String, BangType)]Source

type FullDataDecl = (ModuleName, DataDecl)Source

moduleName :: Module -> ModuleName Source

moduleDecls :: Module -> [Decl]Source

moduleImports :: Module -> [ImportDecl]Source

modulePragmas :: Module -> [ModulePragma]Source

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

tyApp :: Type -> [Type] -> Type Source

tyFun :: [Type] -> Type Source

apps :: Exp -> [Exp] -> Exp Source

bind :: String -> [Pat] -> Exp -> Decl Source

binds :: String -> [([Pat], Exp)] -> Decl Source

fromBangType :: BangType -> Type Source

isDataDecl :: Decl -> Bool Source

dataDeclSrcLoc :: DataDecl -> SrcLoc Source

dataDeclContext :: DataDecl -> Context Source

dataDeclName :: DataDecl -> String Source

dataDeclVars :: DataDecl -> [String]Source

dataDeclArity :: DataDecl -> Int Source

dataDeclCtors :: DataDecl -> [CtorDecl]Source

ctorDeclName :: CtorDecl -> String Source

ctorDeclName' :: CtorDecl -> Name Source

ctorDeclFields :: CtorDecl -> FieldDecl Source

ctorDeclArity :: CtorDecl -> Int Source

declName :: Decl -> String Source

module Language.Haskell.Exts