@hackage singletons-th3.5.1
A framework for generating singleton types
Installation
Dependencies (10)
- base >=4.22 && <4.23
- containers >=0.5
- ghc-boot-th
- mtl >=2.2.1 && <2.4
- singletons >=3.0 && <3.1
- syb >=0.4 Show all…
Dependents (15)
@hackage/vinyl, @hackage/singletons-base, @hackage/fortran-src, @hackage/haskell-igraph, @hackage/inline-r, @hackage/heftia, Show all…
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. See also
the paper published at Haskell Symposium, 2014,
which describes how promotion works in greater detail.
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
singletonslibrary is a small, foundational library that defines basic singleton-related types and definitions. - The
singletons-baselibrary usessingletons-thto define promoted and singled functions from thebaselibrary, including thePrelude.