true-name: Template Haskell hack to violate module abstractions

[ bsd3, data, library, unsafe ] [ Propose Tags ]

Knowing a true name gives one power over its owner.

A Template Haskell hack to get unexported Names―be they types, data constructors, record fields or class methods―a slightly less unsafe way to violate another module's abstractions than unsafeCoerce.

A few quick examples.

I'm too lazy to keep a changelog, but I do write detailed commit messages.

Versions [faq],,,,,,
Dependencies base (>=4.5 && <5), template-haskell (>=2.7 && <2.15) [details]
License BSD-3-Clause
Copyright © 2014−2017 Liyang HU
Author Liyang HU
Revised Revision 2 made by phadej at 2020-07-21T16:11:59Z
Category Data, Unsafe
Home page
Source repo head: git clone
Uploaded by LiyangHu at 2017-08-24T08:53:57Z
Distributions NixOS:, Stackage:
Downloads 6622 total (103 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Hackage Matrix CI
Docs available [build log]
Last success reported on 2017-08-24 [all 1 reports]




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

For package maintainers and hackage trustees