DTC-1.1.0: Data To Class transformation.

Language.Haskell.DTC.Mod

Description

Some useful functions.

Synopsis

Documentation

modifyHsDecls :: ([Decl] -> [Decl]) -> Module -> ModuleSource

Lift a function over [HsDecl] to a function over HsModule.

unBangType :: BangType -> TypeSource

Skip a bang in a type.

tyVarName :: TyVarBind -> NameSource

Extract the Name of a TyVarBind.

modifyHsName :: (String -> String) -> Name -> NameSource

Lift a function over String to a function over HsName.