Skip to Content.
Sympa Menu

coq-club - [Coq-Club] modules unfolding in extraction

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

[Coq-Club] modules unfolding in extraction


Chronological Thread 
  • From: Kirill Taran <kirill.t256 AT gmail.com>
  • To: coq-club AT inria.fr
  • Subject: [Coq-Club] modules unfolding in extraction
  • Date: Fri, 21 Feb 2014 16:56:31 +0400

Hello.

Is it possible to configure extraction such way that all modules will be eliminated from extracted code and parameters of them will be replaced with explicit extra arguments to functions?

E.g. this:
Module Type T.
Parameter P : Set.
End M.

(* In one file: *)
Module N := T nat. Import N.
Definition f : P := 1.
(* In other file: *)
Module B := T bool. Import N.
Definition f : P := true.
must become this:
(* In one file: *)
Definition f : nat := 1.
(* In other file: *)
Definition f : bool := true.

Sincerely,
Kirill Taran



Archive powered by MHonArc 2.6.18.

Top of Page