An open API service providing package, version and dependency metadata of many open source software ecosystems and registries.

singletons-th

singletons-th defines Template Haskell functionality that allows promotion of term-level functions to type-level equivalents and singling functions to dependently typed equivalents. This library was originally presented in Dependently Typed Programming with Singletons, published at the Haskell Symposium, 2012. (https://richarde.dev/papers/2012/singletons/paper.pdf) See also the paper published at Haskell Symposium, 2014, which describes how promotion works in greater detail: https://richarde.dev/papers/2014/promotion/promotion.pdf. singletons-th generates code that relies on bleeding-edge GHC language extensions. As such, singletons-th only supports the latest major version of GHC (currently GHC 9.14). For more information, consult the singletons README. You may also be interested in the following related libraries: The singletons library is a small, foundational library that defines basic singleton-related types and definitions. The singletons-base library uses singletons-th to define promoted and singled functions from the base library, including the Prelude.

Ecosystem
hackage.haskell.org
Latest Release
3.5.1
about 2 months ago
Versions
8
Downloads
4,570 total
Dependent Packages
7
Dependent Repos
19
Links
Registry hackage.haskell.org
Source Repository
Homepage Homepage
JSON API View JSON
CodeMeta codemeta.json
Package Details
PURL pkg:hackage/singletons-th
spec
License BSD-3-Clause
First Release almost 5 years ago
Last Synced 16 days ago
Repository
Stars 286 on GitHub
Forks 36 on GitHub
Commits 814
Committers 22
Avg per Author 37.0
DDS 0.569
Rankings on hackage.haskell.org
Dependent packages Top 2.1%
Forks Top 6.3%