package olmi

  1. Overview
  2. Docs
Olmi provide functor to generate monadic combinators with a minimal interface

Install

dune-project
 Dependency

Authors

Maintainers

Sources

olmi.tar.gz
sha256=f77661fab4f36ef2f439cbd93a722d2d21d88e94815baf79b509636169174a0e
md5=d82dae00b83488d93e7138831c2bc351

doc/src/olmiExamples/olmiList.ml.html

Source file olmiList.ml

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
open Olmi

include List

module Requirement = Make.WithJoin(struct
    type 'a t = 'a list
    let return x = [x]
    let fmap = map
    let join = flatten
  end)

include Make.Plus (Requirement)
    (struct
      type 'a t = 'a list
      let mempty = []
      let mplus = append
    end)

OCaml

Innovation. Community. Security.