package mnd
A small monads library
Install
Dune Dependency
Authors
Maintainers
Sources
1.0.0.tar.gz
md5=cd3e2d05a385700b6072c81123c44292
sha512=6e979beecc8968c194bc3c92403fcefdabb96108a06f08ff1c60a51be936c3078174df96efcbfa5f45a25cd7e406dd7420254502c3420bcb876f637a85cd9ede
doc/index.html
Mnd 1.0.0
A small library for programming with monads. It aims to be comprehensible instead of comprehensive Everything is standard and already exists in various places, this is simply a selection for easy re-use:
- An interface to define monads with one or two type parameters
- A small selection of monadic functions such as
(>>=)
ormapM
- Support for
let*
andlet+
syntax - A few standard instances of monads
The details can be found in the documentation. Feedback is welcome on the GitHub repository.
Functions
The individual functions are documented in the MONAD
interface.
Syntax
OCaml 4.08.0 added support for user-defined binding operators to facilitate working with monads and similar structures. Monads defined with this library automatically have access to the let*
and let+
syntax.