defun-core: Defunctionalization helpers: core definitions

[ bsd3, data, library ] [ Propose Tags ] [ Report a vulnerability ]

The package defun provides defunctionalization helpers, most importantly type family DeFun.Core.App allowing to write higher-order type families. The singletons package also has its own type family Apply, but the machinery is tied to the Sing / singletons.

In particular, the Lam counterpart SLambda is specialized to Sing arguments. The defun's Lam is however fully general, so you can use your own singletons or (importantly) singleton-like arguments.

The package provides few defunctionalized functions, and their term-level variants can be found in defun-bool and defun-sop packages, which use SBool and NP data types from singletons-bool and sop-core packages respectively.

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

  • No Candidates
Versions [RSS] 0.1
Change log CHANGELOG.md
Dependencies base (>=4.16.3.0 && <4.17 || >=4.17.2.0 && <4.18 || >=4.18.0.0 && <4.19 || >=4.19.0.0 && <4.20) [details]
Tested with ghc ==9.2.8 || ==9.4.8 || ==9.6.3 || ==9.8.1
License BSD-3-Clause
Author Oleg Grenrus <oleg.grenrus@iki.fi>
Maintainer Oleg Grenrus <oleg.grenrus@iki.fi>
Category Data
Source repo head: git clone https://github.com/phadej/defun.git(defun-core)
Uploaded by phadej at 2023-12-10T16:55:29Z
Distributions LTSHaskell:0.1, NixOS:0.1
Reverse Dependencies 10 direct, 4 indirect [details]
Downloads 107 total (10 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2023-12-10 [all 1 reports]