Skip to content

Commit

Permalink
v0.17~preview.128.37+01
Browse files Browse the repository at this point in the history
  • Loading branch information
public-release committed Aug 29, 2023
1 parent 57dc5f7 commit e3c05d3
Show file tree
Hide file tree
Showing 34 changed files with 2,092 additions and 270 deletions.
12 changes: 12 additions & 0 deletions src/applicative.ml
Original file line number Diff line number Diff line change
Expand Up @@ -258,3 +258,15 @@ module Pair (F : S) (G : S) : S with type 'a t = 'a F.t * 'a G.t = struct
let map = `Custom custom_map
end)
end

module Ident = struct
type 'a t = 'a

include Make_using_map2_local (struct
type nonrec 'a t = 'a t

let return = Fn.id
let map2 a b ~f = f a b
let map = `Custom (fun a ~f -> f a)
end)
end
1 change: 1 addition & 0 deletions src/applicative_intf.ml
Original file line number Diff line number Diff line change
Expand Up @@ -476,6 +476,7 @@ module type Applicative = sig
module type S_local = S_local
module type S2_local = S2_local

module Ident : S_local with type 'a t = 'a
module S2_to_S (T : T.T) (X : S2) : S with type 'a t = ('a, T.t) X.t
module S_to_S2 (X : S) : S2 with type ('a, 'e) t = 'a X.t
module S3_to_S2 (T : T.T) (X : S3) : S2 with type ('a, 'd) t = ('a, 'd, T.t) X.t
Expand Down
2 changes: 2 additions & 0 deletions src/base.ml
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,8 @@ module Int64 = Int64
module Intable = Intable
module Int_math = Int_math
module Invariant = Invariant
module Dictionary_immutable = Dictionary_immutable
module Dictionary_mutable = Dictionary_mutable
module Lazy = Lazy
module List = List
module Map = Map
Expand Down
1 change: 1 addition & 0 deletions src/dictionary_immutable.ml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
include Dictionary_immutable_intf.Definitions
1 change: 1 addition & 0 deletions src/dictionary_immutable.mli
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
include Dictionary_immutable_intf.Dictionary_immutable (** @inline *)
Loading

0 comments on commit e3c05d3

Please sign in to comment.