Hacker News new | ask | show | jobs
by yakshaving_jgt 1617 days ago
Maybe both of those examples aren't great? Maybe you want something like this?

  case result of
    Error e -> -- some error handling code
    Ok a    -> -- the happy path