purescript-arrays
purescript-arrays copied to clipboard
Use Natural Transformations wherever possible
This change makes the type signatures of NonEmptyArray
functions more consistent with the other container types.
Here's an example of the previous inconsistencies: https://pursuit.purescript.org/search?q=toUnfoldable
FWIW this is something that we explicitly decided against previously. There will be discussion on a closed issue or PR in this repo or potentially one of the other core library repos.
I wasn't aware that the lists library uses the ~>
type synonym. I agree that these should be consistent, but I think we should change the lists library to remove uses of ~>
rather than adding them here.
I agree that these should be consistent, but I think we should change the lists library to remove uses of ~> rather than adding them here.
I agree with this, too. It avoids the issue of confusion that can arise if someone doesn't know what ~>
is.