raskell 0.1.1

Haskell-style functional programming for Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
error[E0277]: refutable pattern without `throw` is only supported for `Option` in `hdo!`
  --> tests/ui/fail/result_pattern_without_throw.rs:9:33
   |
 9 |       let _: Result<i32, Error> = hdo! {
   |  _________________________________^
10 | |         Some(x) <- Ok::<_, Error>(Some(10));
11 | |
12 | |         pure x * 2
13 | |     };
   | |     ^
   | |     |
   | |_____this bind needs an explicit failure value
   |       required by a bound introduced by this call
   |
   = help: the trait `raskell::__private::HdoPatternBind<_>` is not implemented for `Result<Option<{integer}>, Error>`
   = note: for `Result`, use `pattern <- expression throw YourError;`