package preface

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Source file monad_plus.ml

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
module type LAWS_MONOID = sig
  type 'a t

  include Indexed_monad_plus.LAWS_MONOID with type ('a, _) t := 'a t
end

module type LAWS_LEFT_ABSORPTION = sig
  type 'a t

  include Indexed_monad_plus.LAWS_LEFT_ABSORPTION with type ('a, _) t := 'a t
end

module type LAWS_LEFT_DISTRIBUTIVITY = sig
  type 'a t

  include
    Indexed_monad_plus.LAWS_LEFT_DISTRIBUTIVITY with type ('a, _) t := 'a t
end

module type LAWS_LEFT_CATCH = sig
  type 'a t

  include Indexed_monad_plus.LAWS_LEFT_CATCH with type ('a, _) t := 'a t
end

module For_monoidal (M : Preface_specs.MONAD_PLUS) :
  LAWS_MONOID with type 'a t := 'a M.t = struct
  include Indexed_monad_plus.For_monoidal (Preface_make.Monad_plus.Index (M))
end

module For_left_absorption (M : Preface_specs.MONAD_PLUS) :
  LAWS_LEFT_ABSORPTION with type 'a t := 'a M.t = struct
  include
    Indexed_monad_plus.For_left_absorption (Preface_make.Monad_plus.Index (M))
end

module For_left_distributivity (M : Preface_specs.MONAD_PLUS) :
  LAWS_LEFT_DISTRIBUTIVITY with type 'a t := 'a M.t = struct
  include
    Indexed_monad_plus.For_left_distributivity (Preface_make.Monad_plus.Index (M))
end

module For_left_catch (M : Preface_specs.MONAD_PLUS) :
  LAWS_LEFT_CATCH with type 'a t := 'a M.t = struct
  include Indexed_monad_plus.For_left_catch (Preface_make.Monad_plus.Index (M))
end
OCaml

Innovation. Community. Security.