-
-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Labels
enhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomers
Description
Right now, using instances from yaya-unsafe is very dangerous. They’re imported transitively, so once you include them, they’re available everywhere downstream.
Instead, all the instance from that package should be part of yaya proper as negative instances (using TypeError1). Then, yaya-unsafe should define newtype Unsafe and wrap all its existing instances in that newtype. Then, users can access them by wrapping the fixed-point in Unsafe without worrying about inflicting them on users further downstream.
Footnotes
-
The error message should recommend
yaya-unsafe’sUnsafewrapper as a last resort after considering if you really need that operation. ↩
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomers