samhh / fp-ts-std

The missing pseudo-standard library for fp-ts.
https://samhh.github.io/fp-ts-std/
MIT License
207 stars 27 forks source link

fp-ts backports #182

Closed samhh closed 1 year ago

samhh commented 1 year ago

Some stuff that can potentially be dropped here:

Additionally some new aliases:

stefanoCrmg commented 1 year ago

https://github.com/samhh/fp-ts-std/pull/185 should partially solve this issue. I did not remove any of the mapBoth as they were not released with fp-ts@2.15.0.

Is there any of function that you think would be a good fit for being made dual? https://github.com/gcanti/fp-ts/blob/master/src/function.ts#L773

Ideally I guess it would be great to have everything as dual but I'd say that maybe converting all of the unsafeUnwrap functions could be a good starting point?

samhh commented 1 year ago

I'm not personally interested in supporting data-first. It's not how I'd advise anyone to write functional code and it harms maintainability here. Open to other perspectives.