template-haskell

Support library for Template Haskell

Version on this page:2.10.0.0
LTS Haskell 22.14:2.20.0.0
Stackage Nightly 2024-03-28:2.21.0.0
Latest on Hackage:2.21.0.0

See all snapshots template-haskell appears in

BSD-3-Clause licensed
Maintained by [email protected]
This version can be pinned in stack with:template-haskell-2.10.0.0@sha256:43c9c16890a1dc86f38fe654d90fed6fd97f88bd07f1c3957ba16ee309bfc694,1598

This package provides modules containing facilities for manipulating Haskell source code using Template Haskell.

See http://www.haskell.org/haskellwiki/Template_Haskell for more information.

Changes

Changelog for template-haskell package

2.10.0.0 Mar 2015

  • Bundled with GHC 7.10.1
  • Remove build-dependency on containers package
  • Make Pred a type synonym of Type, and deprecate classP/equalP (#7021)
  • Add support for LINE pragma via prageLineD and LineP
  • Replace Int# with !Int in NameFlavour constructors
  • Derive Generic for TH types (#9527)
  • Add standaloneDerivD (#8100)
  • Add support for generic default signatures via defaultSigD (#9064)
  • Add Lift instances for () and Rational
  • Derive new Show and Data instances for Loc
  • Derive Eq instances for Loc, Info, and ModuleInfo
  • Make calling conventions available in template haskell consistent with those from GHC (#9703)
  • Add support for -XStaticValues via staticE
  • Add Ord instances to TH types
  • Merge some instances from th-orphans (Ppr instances for Lit and Loc as well as Lift instances for numeric types
  • Put parens around (ty :: kind) when pretty-printing TH syntax