-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
…n of primitive projections in functors Reviewed-by: ppedrot Co-authored-by: ppedrot <[email protected]>
- Loading branch information
Showing
4 changed files
with
110 additions
and
93 deletions.
There are no files selected for viewing
7 changes: 7 additions & 0 deletions
7
doc/changelog/13-misc/17321-master+fix16288-extraction-prim-field-functor.rst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
- **Fixed:** | ||
Wrongly self-referencing extraction of primitive projections to OCaml in functors | ||
(`#17321 <https://github.com/coq/coq/pull/17321>`_, | ||
fixes `#16288 <https://github.com/coq/coq/issues/16288>`_, | ||
by Hugo Herbelin). Note that OCaml wrappers assuming that the | ||
applicative syntax of projections is provided may have | ||
to use the dot notation instead. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
(* Extraction of primitive projections within a functor were | ||
incorrectly referencing themselves *) | ||
Module Type Nop. End Nop. | ||
Module Empty. End Empty. | ||
Module M (N : Nop). | ||
Local Set Primitive Projections. | ||
Record M_t_NonEmpty elt := { M_m :> list elt }. | ||
Record M_t_NonEmpty' X Y := { a : X ; b : Y }. | ||
End M. | ||
Module M' := M Empty. | ||
Require Import Coq.extraction.Extraction. | ||
Require Import Coq.extraction.ExtrOcamlBasic. | ||
Extraction Language OCaml. | ||
Recursive Extraction M'. | ||
Extraction TestCompile M'. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters