Skip to content

Finish robustness improvements on make/elim#391

Merged
tbagrel1 merged 1 commit intomasterfrom
tbagrel1/more-robust-elim-make-2
Feb 25, 2022
Merged

Finish robustness improvements on make/elim#391
tbagrel1 merged 1 commit intomasterfrom
tbagrel1/more-robust-elim-make-2

Conversation

@tbagrel1
Copy link
Copy Markdown
Member

  • Rework V.{make,elim} to use the same type-level machinery as
    the new Replicator.elim implementation introduced by @aspiwack in A more robust implementation of Replicator.elim #390
  • Improve documentation of V.{make,elim}, Replicator.elim and Arity module
  • Expose the type-level helpers from the internal Arity module as Data.Arity.Linear

@tbagrel1 tbagrel1 added this to the v0.2.0 milestone Feb 21, 2022
@tbagrel1 tbagrel1 requested a review from aspiwack February 21, 2022 15:27
@tbagrel1 tbagrel1 force-pushed the tbagrel1/more-robust-elim-make-2 branch 2 times, most recently from 228c646 to 722abdc Compare February 22, 2022 07:53
@tbagrel1 tbagrel1 requested a review from aspiwack February 22, 2022 07:59
@tbagrel1 tbagrel1 force-pushed the tbagrel1/more-robust-elim-make-2 branch from 722abdc to 9a1d692 Compare February 22, 2022 08:01
Comment on lines +137 to +140
-- About the constraints of this function (they won't get in your way):
--
-- * @'Elim' ('NatToPeano' n) a b@ provides the actual implementation of 'elim'; there is an instance of this class for any @(n, a, b)@
-- * @'IsFunN' a b f, f ~ 'FunN' ('NatToPeano' n) a b, n ~ 'Arity' b f@ indicate the shape of @f@ to the typechecker (see documentation of 'IsFunN').
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

+ Rework `V.{make,elim}` to use the same type-level machinery as
  `Replicator.elim`
+ Improve documentation of `V.{make,elim}`, `Replicator.elim` and `Arity` module
+ Expose the type-level helpers from the internal `Arity` module as `Data.Arity.Linear`
+ Add explicit comments in docstrings of make/elim about constraints

Co-authored-by: Arnaud Spiwack <arnaud@spiwack.net>
@tbagrel1 tbagrel1 force-pushed the tbagrel1/more-robust-elim-make-2 branch from 1ef1fd4 to 97d8e98 Compare February 25, 2022 10:07
@tbagrel1 tbagrel1 merged commit ad5c2f4 into master Feb 25, 2022
@tbagrel1 tbagrel1 deleted the tbagrel1/more-robust-elim-make-2 branch February 25, 2022 10:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants