Algae v1.1.0 API Reference

Modules

Builder DSL to handle common ADT definition use cases

Represent branching conditions. These could be different return types, error vs nominal value, and so on

A “free” structure that converts functors into monads by embedding them in a special structure with all of the monadic heavy lifting done for you

The simplest ADT: a simple wrapper for some data

The sum of Algae.Maybe.Just and Algae.Maybe.Nothing. Maybe represents the presence or absence of something

Algae.Reader allows you to pass some readable context around through actions

Algae.State describes a wrapped function that can be used to pass around some “hidden” pure state

Represent a BinarySearch tree

A tree with any number of nodes at each level

Algae.Writer helps capture the pattern of writing to a pure log or accumulated value, handling the bookkeeping for you

Exceptions