true-name: Template Haskell hack to violate another module's 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 data constructors, record fields or class methods―a slightly less unsafe way to violate another module's abstractions than unsafeCoerce.

A few quick examples.

Versions [faq],,,,,,
Dependencies base (>=4.5 && <5), template-haskell (>=2.7) [details]
License BSD-3-Clause
Copyright © 2014−2015 Liyang HU
Author Liyang HU
Category Data, Unsafe
Home page
Source repo head: git clone
Uploaded by LiyangHu at Tue Oct 13 07:17:15 UTC 2015
Distributions NixOS:, Stackage:
Downloads 4710 total (331 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 2015-10-13 [all 1 reports]




Maintainer's Corner

For package maintainers and hackage trustees