Skip to content
This repository was archived by the owner on Oct 4, 2020. It is now read-only.

make type Pure use an empty row instead of rank-2 types #7

Merged
merged 2 commits into from
Sep 12, 2015

Conversation

jbrownson
Copy link

Per discussion with paf31 in #purescript. When this was originally written there wasn't syntax for an empty row, now there is so let's use it.

I believe it's also correct then to remove the note about rank-2 types from runPure so I've done that, correct me if I'm wrong.

I can't say I have a completely solid grasp on rank-n types or Eff/row types so I'm not certifying the correctness of this, just pushing the buttons based on my understanding of what was discussed in #purescript.

@paf31
Copy link
Contributor

paf31 commented Sep 4, 2015

👍 from me. @garyb Any thoughts?

This can be a minor bump I think, since forall e. Eff e a subsumes Eff () a, so any code using runPure before will still be valid.

@garyb
Copy link
Member

garyb commented Sep 5, 2015

Looks good to me, I think it better expresses the intent. Are we sure it won't break things though? 😉

@paf31
Copy link
Contributor

paf31 commented Sep 5, 2015

Pretty sure. I mean, yes code can break, but the subsumption relation definitely holds, so unless users are explicitly asserting type equalities rather than unification, it'll be fine.

@jbrownson
Copy link
Author

It seems like there is consensus that this won't break stuff, and it makes pureST work in combination w/ the pull req on purescript-st. I'm new to this process, do you guys need anything else from me?

@paf31
Copy link
Contributor

paf31 commented Sep 12, 2015

Looks good, sorry, I'm just being slow.

Could you please run pulp docs?

@jbrownson
Copy link
Author

Ahh yes, my bad

paf31 added a commit that referenced this pull request Sep 12, 2015
make type Pure use an empty row instead of rank-2 types
@paf31 paf31 merged commit 972d5fb into purescript-deprecated:master Sep 12, 2015
@paf31
Copy link
Contributor

paf31 commented Sep 12, 2015

👍 Thank you!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants