kleisli: Kleisli-like newtypes with different type parameter orderings
Three newtype wrappers around p a (f b) with different type parameter
orderings, enabling different type class instances depending on which
parameter is last:
Kleisli p a f b— functor inb(Functor, Applicative, Monad, etc.)ProKleisli p f a b— profunctor in(a, b)(Profunctor, Category, Arrow, etc.)ContraKleisli p b f a— contravariant ina(Contravariant, Divisible, Decidable)
All three are representationally identical and connected by isomorphisms.
When p is specialised to (->), extensive instances are derived via
Star, ReaderT, Arrow.Kleisli, and Op.
[Skip to Readme]
Flags
Manual Flags
| Name | Description | Default |
|---|---|---|
| dev | Enable development warnings (-Werror, -O2 for benchmarks) | Disabled |
Use -f <flag> to enable a flag, or -f -<flag> to disable that flag. More info
Downloads
- kleisli-0.0.1.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.0.1 |
|---|---|
| Change log | changelog.md |
| Dependencies | adjunctions (>=4.3 && <5), base (>=4.8 && <6), comonad (>=5 && <6), contravariant (>=1 && <2), deepseq (>=1.4 && <2), distributive (>=0.5 && <1), lens (>=4 && <6), mtl (>=2.2 && <3), profunctors (>=5 && <6), selective (>=0.5 && <1), semigroupoids (>=5.2 && <7), transformers (>=0.5 && <1) [details] |
| Tested with | ghc ==9.6.7 |
| License | BSD-3-Clause |
| Author | Tony Morris <tmorris@tmorris.net> |
| Maintainer | Tony Morris <tmorris@tmorris.net> |
| Uploaded | by TonyMorris at 2026-05-26T08:42:15Z |
| Category | Data |
| Home page | https://gitlab.com/tonymorris/kleisli |
| Bug tracker | https://gitlab.com/tonymorris/kleisli/-/issues |
| Source repo | head: git clone https://gitlab.com/tonymorris/kleisli.git |
| Distributions | |
| Downloads | 0 total (0 in the last 30 days) |
| Rating | (no votes yet) [estimated by Bayesian average] |
| Your Rating | |
| Status | Docs available [build log] Last success reported on 2026-05-26 [all 1 reports] |