File: recent_impl.ml

package info (click to toggle)
ocaml-odoc 2.1.1%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 6,744 kB
  • sloc: ml: 37,049; makefile: 124; sh: 79
file content (38 lines) | stat: -rw-r--r-- 461 bytes parent folder | download | duplicates (2)
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
module Foo = struct
  module A = struct
    type t = A
  end

  module B = struct
    type t = B
  end
end

open (Foo : module type of Foo with module A := Foo.A)

module B = B

open Set.Make (struct
  type t = Foo.A.t

  let compare = compare
end)

type u = t

module type S = sig
  module F (_ : sig end) : sig
    type t
  end

  module X : sig end

  open F(X)

  val f : t
end

open Foo

(* Check that regular open still works as expected *)
module B' = B