-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use record types for signature declarations (#249)
* Remove unused function `Support.List.for_each` * Use record type for `Syn{ext,int}.Sgn.decl.Comp{Const,Dest}` and add documentation * Use record type for `Syn{ext,int}.Sgn.decl.Comp{Typ,Cotyp}` and add documentation * Use record type for `Syn{ext,int}.Sgn.decl.Query` and add documentation * Fix some documentation references * Use record type for `Syn{ext,int}.Sgn.decl.MRecTyp` and add documentation * Implement `Support.Nonempty.destructure` This allows for operations that act simultaneously on the head and tail of a non-empty list. * Implement `Support.Nonempty.map2` This is analogous to `Stdlib.List.map2`. * Use `Nonempty.t` type for declarations in `MRecType` The parser internally uses the `Nonempty.t` type for representing these mutually recursive LF type family declarations because at least one such declaration is required. This also solves the non-exhaustive pattern-matching in `Prettyext.fmt_ppr_mrecs`. * Use record type for `Syn{ext,int}.Sgn.decl.Val` and add documentation * Use record type for `Syn{ext,int}.Sgn.decl.Module` and add documentation * Use record type for `Syn{ext,int}.Sgn.decl.CompTypAbbrev` and add documentation * Use record type for `Syn{ext,int}.Sgn.decl.Pragma` and add documentation * Use record type for `Synext.Sgn.decl.GlobalPragma` and add documentation * Remove unused constructor `Synint.decl.Proof` * Add spacing and documentation * Add changes lost in cherry-picking * Use record labels in patterns * Use `List.filter_map` instead of `Option.filter_map` * Implement `List.split` tail-recursively * implement `List.combine` tail-recursively * Add missing documentation for raised exception `Invalid_argument` for `List.ap` * Implement `Nonempty.singleton` * Implement `Nonempty.filter_map` * Implement `Nonempty.split` * Implement `Nonempty.combine` * Implement `Nonempty.partition` * Implement `Nonempty.{ap,ap_one}` * Use non-empty list type for theorem declarations * Fix typo `"fucntion" -> "function"` * Enforce in-order evalution of `f` in `Nonempty.map f l` The evaluation order of tuple expressions is apparently unspecified. `Nonempty.map f l` is being used with an effectful `f` that relies on its evaluation order on the list.
- Loading branch information
Showing
35 changed files
with
856 additions
and
549 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
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.