th-utilities: Collection of useful functions for use with Template Haskell

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

Downloads

Note: This package has metadata revisions in the cabal description newer than included in the tarball. To unpack the package including the revisions, use 'cabal get'.

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.1.0, 0.1.1.1, 0.2.0.0, 0.2.0.1, 0.2.1.0, 0.2.2.0, 0.2.3.0, 0.2.3.1, 0.2.4.0, 0.2.4.1, 0.2.4.2, 0.2.4.3, 0.2.5.0
Change log ChangeLog.md
Dependencies base (>=4.7 && <5), bytestring, containers, directory, filepath, primitive, syb, template-haskell (>=2.7 && <2.17), text, th-orphans [details]
License MIT
Copyright 2016 FP Complete
Author
Maintainer Michael Sloan <sloan@fpcomplete.com>
Revised Revision 1 made by Bodigrim at 2023-01-23T22:19:56Z
Category Template Haskell
Home page https://github.com/fpco/th-utilities#readme
Bug tracker https://github.com/fpco/th-utilities/issues
Source repo head: git clone https://github.com/fpco/th-utilities
Uploaded by MichaelSloan at 2016-05-24T07:40:55Z
Distributions Arch:0.2.5.0, Debian:0.2.4.0, LTSHaskell:0.2.5.0, NixOS:0.2.5.0, Stackage:0.2.5.0
Reverse Dependencies 9 direct, 75 indirect [details]
Downloads 40241 total (199 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2016-05-24 [all 1 reports]

Readme for th-utilities-0.1.1.0

[back to package description]

th-utilities

Build Status Build Status

The 'th-utilities' package provides a number of useful utilities for Template Haskell. In particular:

  • TH.Derive provides a convenient system for using TH to derive typeclass instances. It allows for open registration of TH derivers, and reuses instance syntax for invoking them.

  • TH.ReifyDataType provides utilities for reifying simplified datatype info. It omits details that you don't usually want to handle, making it much more straightforward to generate code based on datatype structure.

  • TH.RelativePaths provides utilities for loading files based on paths relative to the cabal file. This is particularly handy for loading code into ghci even when its current dir isn't the package dir. Ideally, this module would be used by everyone who currently uses qAddDependentFile.

  • TH.Utilities provides a miscellaneous set of utilities that are useful within this package and elsewhere.