Skip to Content.
Sympa Menu

coq-club - Re: [Coq-Club] ML extraction: annotated functions

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

Re: [Coq-Club] ML extraction: annotated functions


Chronological Thread 
  • From: Robbert Krebbers <mailinglists AT robbertkrebbers.nl>
  • To: coq-club AT inria.fr
  • Subject: Re: [Coq-Club] ML extraction: annotated functions
  • Date: Thu, 23 Jul 2015 21:47:20 +0200

The command "Extraction "file.ml" foo" (and variants thereof) also generates "file.mli" which contains the function signatures.

On 07/23/2015 07:37 PM, Éric Tanter wrote:
Hi,

Is it possible to instruct the extraction to ML to include type annotations
in function signatures?

For instance, instead of producing this:

(** val foo : int -> int **)

let foo n = n + 1

I would like the following:

let foo (n:int) : int = n

If not, how easy/hard/possible would it be to support it?

Thanks!

— Éric

PS: yes, it *does* matter for the cases I’m considering ;-)




Archive powered by MHonArc 2.6.18.

Top of Page