Derive Lift

The DeriveLiftGHC documentation for DeriveLift. extension allows you to derive instances of the LiftDocumentation for the Lift class typeclass. In contrast to most derivable typeclasses, the Lift class does not live in base; rather, it is part of the Template Haskell ecosystem and thus comes from the template-haskellThe template-haskell package package.

Briefly, deriving Lift for a datatype allows its values to be “lifted” into Template Haskell expressions. Such expressions may then be spliced into Haskell source code. This is useful when one wants to effect compile-time evaluation as well as when writing quasi-quoters.

DeriveLift has been in GHC since 7.2.1.

Join Type Classes for courses and projects to get you started and make you an expert in FP with Haskell.