Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion examples/Tour.v
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,9 @@ For example, here's an implementation of a simple mutable counter that follows b
|*)

Camltac Module Counter := ocaml:{{
let value = Summary.ref ~stage:Interp ~name:"counter" 0
let value: int ref =
(* FIXME: Rocq 9.3 recently made this type abstract. *)
Obj.magic (Summary.ref ~stage:Interp ~name:"counter" 0)

let inc () =
value := !value + 1
Expand Down
4 changes: 4 additions & 0 deletions src/module_manager.ml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ type state =
packing_module: string option;
}

[%%if rocq >= (9, 3)]
open Summary.Ref
[%%endif]

let state =
Summary.ref
~stage:Synterp
Expand Down
Loading