sanctuary
tag on Stack Overflow. You may like to subscribe to it. Also, I posted a question: Custom equality semantics for Immutable.js data structures. I'd love to be able to use maps and sets when working with Sanctuary, but for various reasons neither the native types nor the Immutable.js equivalents are currently suitable.
generate
script which builds the Sanctuary website is one example of handling errors with the Either type, @btbvoy. For DB interactions one could use a library such as Fluture. The only large project I'm aware of that makes heavy use of Sanctuary is not open source, but reading this blog post will give you an idea of how I used Ramda and Sanctuary in that project.
sequence
to traverse
. I think I'll .skip
those tests and ask @scott-christopher for assistance. One question is whether Maybe#fantasy-land/map
should replace Maybe#map
or whether we should have both. What's your opinion on this, Brad?
map
as name of it's property where we are storing some Map object and it's not a function. but as FL methods are namespaced we could have the Map object live in ['map']
and Functor map
in ['fantasy-land/map']
. so libs which require FL Functor will not care about our Map object. or for example if we want to create more user friendly object maybe we want to call transform
to map
and andThen
to chain
. so basically i see FL namespaced methods as the way for libs to interact with each other. but for user who is using some specific implementation of maybe I think there should also be normal non namespaced methods
Integer -> String -> Maybe Integer
are fine; it's functions with types such as a -> a
which are problematic. This means S.I
is one of the slow functions when type checking is enabled!