About

Metadata

  • Last updated , by MartijnVanSteenbergen
  • License BSD-3-Clause
  • Categories Data Structures
  • Maintained by: Martijn van Steenbergen <martijn@van.steenbergen.nl>

  • Lottery factor: 0

Links

Installation

Readme

The HoleyMonoid allows building monoidal values of which certain components are to be filled in later. For example:

> let holey :: (Show a, Show b) => HoleyMonoid String r (a -> b -> r)
      holey = now "x = " . later show . now ", y = " . later show

> run holey 3 5
"x = 3, y = 5"