fp-core.rs icon indicating copy to clipboard operation
fp-core.rs copied to clipboard

do notation

Open JasonShin opened this issue 6 years ago • 1 comments

Based on the Monad implementation, we should be able to explain Haskell's do notation, potentially creating an emulation of it as well.

Take a look at an existing do notation crate https://github.com/TeXitoi/rust-mdo for an inspiration.

References:

  • https://en.wikibooks.org/wiki/Haskell/do_notation
  • https://docs.scala-lang.org/tour/for-comprehensions.html
  • http://learnyouahaskell.com/a-fistful-of-monads

JasonShin avatar Jul 07 '19 03:07 JasonShin

Yes, please impl Monad for more types and provide a do-notation like rust-mdo :) I'm really looking forward to this..

Boscop avatar Sep 26 '19 12:09 Boscop