[Haskell-cafe] Are there standard idioms for lazy, pure error handling?

Malcolm Wallace malcolm.wallace at cs.york.ac.uk
Thu Dec 3 06:45:09 EST 2009


>  data TerminatedList a e = Then a (TerminatedList a e)
>                          | Finally e

Nice.

> (So you could do e.g:  4 `Then` 5 `Then` 1 `Finally` "success!".

Errm, you mean:         4 `Then` 5 `Then` 1 `Then` Finally "success!"


Regards,
     Malcolm



More information about the Haskell-Cafe mailing list