sweet-fantasies icon indicating copy to clipboard operation
sweet-fantasies copied to clipboard

sweet.js macros for Fantasy Land compatible structures.

Results 4 sweet-fantasies issues
Sort by recently updated
recently updated
newest added

This addresses (https://github.com/puffnfresh/sweet-fantasies/issues/8), it's mainly a complete rewrite of the `do` notation macro. Other macros should probably be dropped now and rewritten using Sweet.js's custom operators (http://sweetjs.org/doc/main/sweet.html#custom-operators), as they make...

Anyway, variable bindings in `$do` don't work with Sweet.js 0.5.x+ and Kleisli `(...) > ...` also breaks. The latter is probably easy to fix, `$do` might require some refactoring. I...

This allows Sweet.js to use the macros without having to concatenate things, and works with Sweet.js from 0.2.x onwards.

I'd like to use do-notation for Async monad (the thing in my [blog](http://nullzzz.blogspot.fi/2013/12/mocha-on-monads.html)). I did some experimenting and found a couple of issues with the `do` macro. So firstly, I...