template-haskell-util: Some utilities for template Haskell.

[ library, mit, template-haskell ] [ Propose Tags ]

Some functions that might be useful when you use template haskell.


[Skip to Readme]

Modules

[Last Documentation]

  • Language
    • Haskell
      • TH
        • Language.Haskell.TH.Utils

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

  • No Candidates
Versions [RSS] 0.1.0.0, 0.1.0.1, 0.1.0.2, 0.1.0.3, 0.1.0.4, 0.1.1.0
Dependencies base (>=4 && <5), GenericPretty (>=1.2.1), template-haskell (>=2.9) [details]
License MIT
Author songzh
Maintainer Haskell.Zhang.Song@hotmail.com
Category Language
Home page https://github.com/HaskellZhangSong/TemplateHaskellUtils
Uploaded by songzh at 2015-02-26T10:16:06Z
Distributions
Reverse Dependencies 2 direct, 0 indirect [details]
Downloads 3717 total (16 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs not available [build log]
All reported builds failed as of 2016-12-11 [all 6 reports]

Readme for template-haskell-util-0.1.0.3

[back to package description]

TemplateHaskellUtils

useful functions for you to write template Haskell code

some examples

-- | Apply a list of expression [(+), 1, 2] to (+) 1 2
appExp :: [ExpQ] -> ExpQ

-- | Apply a type constructor, convert [a, b, c] to a b c
appConT :: [TypeQ] -> TypeQ

-- | convert [a, b, c] to a -> b -> c
curryType :: [TypeQ] -> TypeQ