Add roles declarations to allow safe coercions by kl0tl · Pull Request #20 · purescript/purescript-effect
Navigation Menu
{{ message }}
purescript / purescript-effect Public
- Notifications You must be signed in to change notification settings
- Fork 20
Merged
hdgarrood merged 1 commit intopurescript:masterfrom
Oct 3, 2020Merged
Add roles declarations to allow safe coercions#20
hdgarrood merged 1 commit intopurescript:masterfrom
Add roles declarations to allow safe coercions#20
hdgarrood merged 1 commit intopurescript:masterfrom
Conversation
Copy link
Member
kl0tl
commented
Sep 12, 2020
kl0tl
commented
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 approved these changes Oct 3, 2020
hdgarrood
merged commit
584b304
into
purescript:master
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment