MIT licensed by Ben Orchard
Maintained by Ben Orchard
This version can be pinned in stack with:singleraeh-0.4.0@sha256:63235132f68ae1d36637ed7eae1cae103550f2e19dece0a99d1cfbed235c6460,1195
Depends on 1 package(full list with versions):
Used by 2 packages in nightly-2024-08-02(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.4.0 (2024-06-01)

  • oops, remove unused temporary singletons dependency

0.3.0 (2024-06-01)

  • remove Sing, provide SingI instead
  • add SBool (singled booleans)
  • add STuple3

0.2.1 (2024-05-27)

  • add Reverse for lists

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