th-lift-instances-0.1: Lift instances for template-hasell for common data types.

Safe HaskellNone

Instances.TH.Lift

Contents

Synopsis

Documentation

This module provides orphan instances for the Lift class from template-haskell. Following is a list of the provided instances.

Lift instances are useful to precompute values at compile time using template haskell. For example, if you write the following code, you can make sure that 3 * 10 is really computed at compile time:

 {-# LANGUAGE TemplateHaskell #-}

 import Language.Haskell.TH.Syntax

 expensiveComputation :: Word32
 expensiveComputation = $(lift $ 3 * 10) -- This will computed at compile time

This uses the Lift instance for Word32.

Base

Containers (both strict/lazy)

ByteString (both strict/lazy)

Text (both strict/lazy)