true-name

Template Haskell hack to violate another module's abstractions

https://github.com/liyang/true-name

Version on this page:0.0.0.2
LTS Haskell 14.27:0.1.0.3@rev:1
Stackage Nightly 2019-09-21:0.1.0.3@rev:1
Latest on Hackage:0.1.0.3@rev:2

See all snapshots true-name appears in

BSD-3-Clause licensed by Liyang HU
Maintained by [email protected]
This version can be pinned in stack with:true-name-0.0.0.2@sha256:d9510f69d35c450abc1967d6a9351192fb0e93a5eed23f83c1eb3a12c38069ea,1432

Module documentation for 0.0.0.2

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.