DTC-1.0.1: Data To Class transformation.

Language.Haskell.DTC.Class

Description

Class definition from a data declaration.

Synopsis

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".