Skip to content

Commit

Permalink
reviews + manual
Browse files Browse the repository at this point in the history
  • Loading branch information
garrigue committed Jun 15, 2020
1 parent 4ff52ec commit be9ec2a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions Changes
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ Working version
parameters. Since all parameters of record and sum types are by definition
injective, this only makes sense for type abbreviations:
type !'a t = 'a list
(Jacques Garrigue, review by Jeremy Yallop and Leo White)

### Runtime system:

Expand Down
4 changes: 2 additions & 2 deletions manual/manual/refman/typedecl.etex
Original file line number Diff line number Diff line change
Expand Up @@ -208,8 +208,8 @@ constraints, the variance properties of the type constructor
are inferred from its definition, and the variance annotations are
only checked for conformance with the definition.

Injectivity annotations only make sense for abstract types and private
row types, since they can otherwise be deduced from the type
Injectivity annotations are only necessary for abstract types and
private row types, since they can otherwise be deduced from the type
declaration: all parameters are injective for record and variant type
declarations (including extensible types); for type abbreviations a
parameter is injective if it has an injective occurrence in its
Expand Down

0 comments on commit be9ec2a

Please sign in to comment.