singleraeh

raehik's singletons

Version on this page:0.2.0
LTS Haskell 24.2:0.4.0
Stackage Nightly 2025-08-04:0.4.0
Latest on Hackage:0.4.0

See all snapshots singleraeh appears in

MIT licensed by Ben Orchard
Maintained by Ben Orchard
This version can be pinned in stack with:singleraeh-0.2.0@sha256:a0bb235a71dd07da0012c0644a7a328755fde7c6d96eca8a9239d3603eedaead,1172
Depends on 1 package(full list with versions):
Used by 2 packages in nightly-2024-05-26(full list with versions):

singleraeh

Explicit singletons. More manual than singletons, but potentially easier to use because you can give GHC more explicit information (compared to singletons which often threads things through the Sing type family and SingI type class).

Uses phadej’s defun package for defunctionalizing type families. (Edit, actually doesn’t require defun just yet. But I think that’s just because I haven’t bothered defunctionalizing things.)

Requires GHC >= 9.6 for the builtin SNat, SSymbol etc. singletons.

License

Provided under the MIT license. See LICENSE for license text.

Changes

0.2.0 (2024-05-25)

  • add more singled Natural operations
  • add Sing for automatic singling
  • add Demotable for automatic demoting
  • add SUnit

0.1.0 (2024-05-21)

Initial release.

  • new home for my assorted singletons