'Travesty' is a library for defining containers with applicative or monadic traversals, inspired by Haskell's Traversable typeclass; it also contains various helpers for monadic code, such as state transformers and extension functions for common monads and containers. It sits on top of Jane Street's Base library and ecosystem.
Published: 25 May 2022
Travesty also contains several other bits of Haskell-style applicative functor and monad functionality:
state monads (
state transformers (
miscellaneous extensions on monads (
Travesty.Monad_exts) and containers (
extensions and implementations of Travesty signatures for
extra function combinators (
Travesty_base_exts modules form a separate subpackage (
Travesty is licenced under the MIT licence, and is a spin-off from the c4f project.
NOTE: I (@MattWindsor91) am no longer actively working on
travesty. As such, it will receive infrequent updates to keep it aligned with
Base and OCaml, but not many more new features. Please feel free to file issues and pull requests, but be patient when waiting for responses!
See the API documentation.
Travesty tries not to shadow existing modules except in the various
Any and all contributions (pull requests, issues, etc.) are welcome.