Language.Haskell.DTC.Class
Description
Class definition from a data declaration.
- dataToClassWith :: String -> HsDecl -> HsDecl
- dataToClass :: HsDecl -> HsDecl
Documentation
dataToClassWith :: String -> HsDecl -> HsDeclSource
Transform a data declaration to a class definition.
The String
argument will be the name of the type variable of the class definition.
dataToClass :: HsDecl -> HsDeclSource
Transform a data declaration to a class definition.
Equivalent to dataToClassWith "t"
.