forked from coq/coq
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge PR coq#19144: Include module type with definition
Reviewed-by: proux01 Co-authored-by: proux01 <[email protected]>
- Loading branch information
Showing
6 changed files
with
23 additions
and
4 deletions.
There are no files selected for viewing
5 changes: 5 additions & 0 deletions
5
...og/08-vernac-commands-and-options/19144-include-module-type-with-definition.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,5 @@ | ||
- **Changed:** | ||
The :cmd:`Include` command can now include module types with a `with` clause (:n:`@with_declaration`) | ||
to instantiate some parameters | ||
(`#19144 <https://github.com/coq/coq/pull/19144>`_, | ||
by Pierre Rousselin). |
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
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,14 @@ | ||
Module Type type1. | ||
Parameter A : Prop. | ||
End type1. | ||
|
||
Module Type type2. | ||
Parameter B : Prop. | ||
End type2. | ||
|
||
Module Type type3 := type1 <+ type2 with Definition B := True. | ||
Print type3. | ||
|
||
Module Type type3''. | ||
Include type1 <+ type2 with Definition B := True. | ||
End type3''. |
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