Nathan Faubion
Nathan Faubion
I think the reason I never added it is I didn’t have a good use case to showcase it. Records are pretty easy and nice, because if you map over...
Thanks for the use case.
I wouldn't recommend writing code this way as it's completely unnecessary (I personally think some kind of syntax error is appropriate), but if the main compiler supports it, we probably...
Can you clarify what your use case is? Related https://github.com/natefaubion/purescript-language-cst-parser/pull/30 As I stated there, it’s not something I’m necessarily opposed to, but whatever you are going to use it for...
See the FunctorWithIndex instance https://github.com/purescript/purescript-ordered-collections/blob/313ec0c3556854cd4e4752a77a86b102fc41ad05/src/Data/Map/Internal.purs#L150
Just to be clear, `Aff` is only `Alt` and `Plus`. There is no `Alternative` instance because of distributivity. We left it in for `ParAff` because otherwise even `Aff` doesn't work...
That law does not necessarily hold for Aff.
In fact it doesn't hold for anything that supports synchronicity on platforms without multithreading.
The suggested instance is implemented via the FFI, such that a platform that has true multithreading could have a better implementation.
But yes, for the JS platform, that's what it would be.