Add roles declarations to allow safe coercions by kl0tl · Pull Request #20 · purescript/purescript-effect

Skip to content

Navigation Menu

Sign in

Appearance settings

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

Conversation

@kl0tl

Copy link

Member

@kl0tl kl0tl commented

Sep 12, 2020

This allows terms of type Effect a to be coerced to type Effect b when Coercible a b holds, hence allowing the zero cost coerce instead of map wrap and map unwrap to introduce and eliminate newtypes under effects for instance. Ditto for all the uncurried effectful functions types.

@hdgarrood hdgarrood merged commit 584b304 into purescript:master

Oct 3, 2020

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

1 more reviewer

@hdgarrood hdgarrood hdgarrood approved these changes

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@kl0tl @hdgarrood