coapplicative: Dualizes Applicative: covariant functors which can split and extract.
Provides Splittable and Coapplicative classes. Splittable functors are oplax monoidal functors over Either/Void and support pattern-matching that preserves the context. Coapplicatives support this while also having extraction/ cocartesian costrength. Unlike the situation with cartesian strength, not all functors support this natively.
Every Comonad can define an instance of Coapplicative, but these need not agree with duplication, and need not be unique due to the non-uniqueness of the costrength.
Instances are provided when they are compatible with the existing Comonad instance.
Credit to Chris McKinlay's profunctor-optics for informing the typeclass structure
Downloads
- coapplicative-0.2.0.0.tar.gz [browse] (Cabal source package)
- Package description (as included in the package)
Maintainer's Corner
For package maintainers and hackage trustees
Candidates
- No Candidates
| Versions [RSS] | 0.1.0.0, 0.2.0.0 |
|---|---|
| Change log | CHANGELOG.md |
| Dependencies | base (>=4.20.2.0 && <4.21), comonad (>=5.0.0 && <5.1) [details] |
| License | MIT |
| Author | J. Carr |
| Maintainer | jcarr250@protonmail.com |
| Uploaded | by jcarr at 2026-10-02T18:56:23Z |
| Category | Control |
| Distributions | |
| Reverse Dependencies | 1 direct, 0 indirect [details] |
| Downloads | 8 total (8 in the last 30 days) |
| Rating | (no votes yet) [estimated by Bayesian average] |
| Your Rating | |
| Status | Docs uploaded by user Build status unknown [no reports yet] |