Skip to content

2.0.0

Compare
Choose a tag to compare
@favonia favonia released this 31 Oct 21:12
· 3 commits to main since this release
2.0.0
61338ed

This major release has two breaking changes:

  1. Algaeff.{Reader,Sequencer,State,UniqueID} are now taking a module with a type t. Previously, the type is named elt, env, or state depending on the component. Now, it is always named t. The benefit is that one can write succinct code for built-in types:
    module R = Algaeff.Reader.Make (Bool)
    module Sq = Algaeff.Sequencer.Make (Int)
    module St = Algaeff.State.Make (Int)
    module St = Algaeff.UniqueID.Make (String)
    To upgrade from the older version of this library, please change the type name (env, elt, or state) in
    module R = Algaeff.Reader.Make (struct type env = ... end)
    module Sq = Algaeff.Sequencer.Make (struct type elt = ... end)
    module St = Algaeff.State.Make (struct type state = ... end)
    module U = Algaeff.UniqueID.Make (struct type elt = ... end)
    to t as follows:
    module R = Algaeff.Reader.Make (struct type t = ... end)
    module Sq = Algaeff.Sequencer.Make (struct type t = ... end)
    module St = Algaeff.State.Make (struct type t = ... end)
    module U = Algaeff.UniqueID.Make (struct type t = ... end)
  2. Algaeff.Unmonad is removed.