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 23:02:10 +0200

On 07/23/2015 10:45 PM, Éric Tanter wrote:
I found a very minimal example that makes my point (I’m in Coq 8.5beta2):

Test.v
--------
Require Import String ExtrOcamlString.
Extraction "append.ml" append.
Given that Coq also generates the .mli files, I do get the less general type as you wish:

$ coqtop
Welcome to Coq 8.4pl5 (February 2015)
Coq < Require Import String ExtrOcamlString.
Coq < Extraction "Append.ml" append;
Coq < ^\Quit
$ ocamlc Append.mli Append.ml
$ ocaml
OCaml version 4.01.0
# #load "Append.cmo";;
# open Append;;
# append;;
- : char list -> char list -> char list = <fun>



Archive powered by MHonArc 2.6.18.

Top of Page