-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
23 changed files
with
657 additions
and
513 deletions.
There are no files selected for viewing
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
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 |
---|---|---|
@@ -1,3 +1,8 @@ | ||
* Support mutually inductive types | ||
* Documentation | ||
* Clean up code | ||
* Ensure equality and order operations are simplified properly | ||
* Check why it is not possible to derive the mixin directly in the instance | ||
E.g. this does not work: | ||
HB.instance Definition _ := [derive eqMixin for foo]. | ||
* Find a better way of writing packing functions (cf. infer.v and the derive notation in eqtype.v) | ||
* By default, [derive nored eqMixin for ...] does not simplify the type of the mixin |
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
opam-version: "2.0" | ||
name: "coq-deriving" | ||
version: "0.1.1" | ||
version: "dev" | ||
maintainer: "Arthur Azevedo de Amorim <[email protected]>" | ||
|
||
homepage: "https://github.com/arthuraa/deriving" | ||
|
@@ -11,8 +11,8 @@ license: "MIT" | |
build: [ make "-j" "%{jobs}%" "test" {with-test} ] | ||
install: [ make "install" ] | ||
depends: [ | ||
"coq" { (>= "8.11" & < "8.18~") | (= "dev") } | ||
"coq-mathcomp-ssreflect" {>= "1.11" | (= "dev")} | ||
"coq" { (>= "8.17" & < "8.19~") | (= "dev") } | ||
"coq-mathcomp-ssreflect" {>= "2.0" | (= "dev")} | ||
] | ||
|
||
tags: [ | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,33 @@ | ||
{ | ||
description = '' | ||
Deriving provides generic instances of MathComp classes for | ||
inductive data types. It includes native support for eqType, | ||
choiceType, countType and finType instances, and it allows users to | ||
define their own instances for other classes. | ||
''; | ||
|
||
inputs.flake-utils.url = "github:numtide/flake-utils"; | ||
|
||
outputs = { self, nixpkgs, flake-utils }: | ||
flake-utils.lib.eachDefaultSystem (system: | ||
let pkgs = nixpkgs.legacyPackages.${system}; in rec { | ||
packages = rec { | ||
coq = pkgs.coq_8_17; | ||
coqPackages = pkgs.coqPackages_8_17.overrideScope' (self: super: | ||
{ mathcomp = super.mathcomp.override { | ||
version = "2.0.0"; | ||
}; | ||
deriving = super.deriving.overrideAttrs { | ||
version = "0.2.0"; | ||
src = ./.; | ||
}; | ||
}); | ||
ocaml = pkgs.ocaml; | ||
}; | ||
|
||
devShell = pkgs.mkShell { | ||
packages = with packages; [ coq coqPackages.mathcomp.ssreflect ocaml ]; | ||
}; | ||
} | ||
); | ||
} |
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
Oops, something went wrong.