https://github.com/robrix/continuations
Continuations, CPS, co-functions, and combinators for working with them
https://github.com/robrix/continuations
Last synced: 2 months ago
JSON representation
Continuations, CPS, co-functions, and combinators for working with them
- Host: GitHub
- URL: https://github.com/robrix/continuations
- Owner: robrix
- License: bsd-3-clause
- Created: 2021-08-13T19:41:26.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2021-08-14T17:57:07.000Z (almost 5 years ago)
- Last Synced: 2025-02-26T04:15:41.044Z (over 1 year ago)
- Language: Haskell
- Size: 262 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# `continuations`
This is a Haskell package defining continuations modelled as functions. A variety of related functionality is provided, applying continuations to eliminators for conjunctions and disjunctions, contravariant mapping of functions in CPS, a contravariant applicative class taking apart sums in the same manner as `Applicative` builds products, co-functions (the dual of functions, consisting of an argument and a continuation from the return), and more.
Contravariance is a major theme here; most of the functionality of the package is designed for arbitrary contravariant functors. (Think continuations, predicates, relations, pretty-printers, or the left type parameter of profunctors.)