Reify run-time values into Haskell types and reflect them back
open sourceBSD-3-Clausefree
reflection is a Haskell library that reifies arbitrary terms into types that can be reflected back into terms. It solves the configuration problem: passing configuration known only at run time through code, with several configurations coexisting, without mutable global variables or unsafePerformIO. It implements Kiselyov and Shan's paper "Functional Pearl: Implicit Configurations" with a streamlined, faster API, and is maintained by Edward Kmett.
Problems it solves
- pass run-time configuration through Haskell code without a global variable
- use a value known at run time as a type-level parameter
- implicit configuration in Haskell type classes
Features
- reify values into types and reflect them back
- run-time configuration without global state
- implements the Implicit Configurations paper
