Module Over.To_monad

Parameters

Signature

type ('a, 'b) handle = ('a -> 'b Monad.t) -> 'a f -> 'b Monad.t
type 'a handler = {
  1. handler : 'b. ('b, 'a) handle;
}

The handler type. Which is a Natural transformation from the Freer Monad to the given Monad.

val run : 'a handler -> 'a t -> 'a Monad.t

Run the natural transformation over the Free monad.