Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

classes from @doolse's purescript-records: #7

Closed
wants to merge 2 commits into from

Conversation

athanclark
Copy link

This is in regards to the following two issues:

doolse/purescript-records#2 (comment)
doolse/purescript-records#1

) where

-- | Proof that row `r` is a subset of row `s`
class Subrow (r :: # Type) (s :: # Type)
Copy link
Contributor

Choose a reason for hiding this comment

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

We should just use Union directly here.

-- | Proof of row `i` being the intersection of rows `ri` and `si`,
-- | `r` is `i` subtracted from `ri` and
-- | `s` is `i` subtracted from `si`
class IntersectRow (ri :: # Type) (si :: # Type) (i :: # Type) (r :: # Type) (s :: # Type)
Copy link
Contributor

Choose a reason for hiding this comment

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

This really belongs in typelevel-prelude since it's not record specific.

@paf31
Copy link
Contributor

paf31 commented Sep 2, 2017

Thanks! Could you please update the LICENSE file to refer to the original as well?

@athanclark
Copy link
Author

athanclark commented Sep 3, 2017

@paf31 oh hm.. I don't think @doolse included a LICENSE in his original repo - https://github.com/doolse/purescript-records

However, if there was a license to be included - should it be inserted in the top of the Class.purs source file? I'm not sure what the usual routine would be for something like that.

@paf31
Copy link
Contributor

paf31 commented Sep 3, 2017

We would usually add it to the LICENSE file in this repo (see the compiler license file as an example). This shouldn't apply for code which is PR'd by the owner of the original, though.

@athanclark
Copy link
Author

@doolse could you sign off on this? @paf31 is hesitant on pulling this code, because it's unlicensed.

@paf31
Copy link
Contributor

paf31 commented Sep 21, 2017

To be clear, I'd prefer if the original repo had a LICENSE file.

I'd like to discuss the content of the PR a bit as well though. It's not obvious to me that this does the right thing in the presence of duplicate labels. I wonder if something using RowList would be conceptually simpler, with possibly similar inference properties too.

@hdgarrood hdgarrood closed this Mar 2, 2019
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.

3 participants