DTC-1.0.1: Data To Class transformation.

Language.Haskell.DTC.Mod

Description

Some useful functions.

Synopsis

Documentation

modifyHsDecls :: ([HsDecl] -> [HsDecl]) -> HsModule -> HsModuleSource

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

unBangType :: HsBangType -> HsTypeSource

Skip a bang in a type.

modifyHsName :: (String -> String) -> HsName -> HsNameSource

Lift a function over String to a function over HsName.