Derive Lift

The DeriveLift GHC documentation for DeriveLift. extension allows you to derive instances of the Lift Documentation 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-haskell The template-haskell package package.

Briefly, deriving Lift for a data type 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.

Type Classes offers courses and projects to get you started and make you an expert in FP with Haskell. For $29/month, you get access to the complete archive and all the latest content.