[Haskell-cafe] Exceptions

John Goerzen jgoerzen at complete.org
Fri Oct 1 12:13:34 EDT 2004


On Friday 01 October 2004 10:57 am, MR K P SCHUPKE wrote:
> >1. Can exceptions be used in "pure" functions (outside of monads?)
>
> Exceptions can be thrown from pure functions, and can be used exactly
> like in the OCaml example (but in Haskell syntax)

Can you give me a quick example of how exactly I would do that?  I'm 
trying to understand the ghc docs and not quite making it.

Thanks!

-- John


More information about the Haskell-Cafe mailing list