문제

I added require "sexplib.syntax";; and core etc in utop.

If I type

module type Printer = sig 
  type t with sexp
end

in utop, it says

module type Printer = sig type t val t_of_sexp : Sexp.t -> t val sexp_of_t : t -> Sexp.t end

ok, this is no problem.

But if I save the above code into a ml file and use it in utop, it gives error:

Error: Unbound type constructor _no_unused_value_warning_

Why? Is this a bug in utop? How can I report?

도움이 되었습니까?

해결책

It is also representable on my system, with

Core 111.11.01
Utop 1.12

It is a bug, for sure. You should report it to Jérémie Dimino, as he is responsible for both core and utop.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top