@hackage value-supply0.6

A library for generating values without having to thread state.

  • Categories

    • License

      BSD-3-Clause

    • Maintainer

      iavor.diatchki@gmail.com

    • Versions

      • 0.6 Fri, 18 Mar 2011
      • 0.5 Wed, 24 Dec 2008
      • 0.4 Tue, 23 Dec 2008
      • 0.3 Mon, 22 Dec 2008
      • 0.2 Sun, 21 Dec 2008
      • 0.1 Sun, 27 Jan 2008

    This library can be used to generate values (for example, new names) without the need to thread state. This means that functions that need to generate new values only need a supply object as an argument, and they do not need to return a new supply object as a result. This decreases the number of data-dependencies in a program, which makes it easier to exploit parallelism. The technique for generating new values is based on the paper ''On Generating Unique Names'' by Lennart Augustsson, Mikael Rittri, and Dan Synek.