1 2 3 4 5 6 7 8 9 10 11 12 13 14
use raskell::hdo; #[derive(Debug)] enum Error { PatternMismatch, } fn main() { let _: Result<i32, Error> = hdo! { Some(x) <- Ok::<_, Error>(Some(10)); pure x * 2 }; }