th-extras-0.0.0.4: A grab bag of functions for use with Template Haskell
Safe HaskellNone
LanguageHaskell98

Language.Haskell.TH.Extras

Synopsis

Documentation

intIs64 :: Bool Source #

replace :: (a -> Maybe a) -> a -> a Source #

composeExprs :: [ExpQ] -> ExpQ Source #

nameOfCon :: Con -> Name Source #

argTypesOfCon :: Con -> [Type] Source #

WARNING: discards binders in GADTs and existentially-quantified constructors

nameOfBinder :: TyVarBndr -> Name Source #

varsBoundInCon :: Con -> [TyVarBndr] Source #

namesBoundInPat :: Pat -> [Name] Source #

namesBoundInDec :: Dec -> [Name] Source #

genericalizeName :: Name -> Name Source #

genericalizeDecs :: [Dec] -> [Dec] Source #

headOfType :: Type -> Name Source #

occursInType :: Name -> Type -> Bool Source #