true-name: Template Haskell hack to violate another module's abstractions

[ bsd3, data, library, unsafe ] [ Propose Tags ]
Dependencies base (>=4.5 && <5), template‑haskell (>=2.7) [details]
License BSD-3-Clause
Copyright © 2014 Liyang HU
Author Liyang HU
Category Data, Unsafe
Home page
Source repo head: git clone
Uploaded by LiyangHu at Tue Oct 14 05:36:02 UTC 2014
Distributions LTSHaskell:, NixOS:, openSUSE:
Downloads 1750 total (26 in the last 30 days)
Rating (no votes yet) [estimated by rule of succession]
Your Rating
  • λ
  • λ
  • λ
Status Docs uploaded by user
Build status unknown [no reports yet]
Hackage Matrix CI

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.




Maintainer's Corner

For package maintainers and hackage trustees