[Haskell-cafe] Re: a way to convert partial functions to functions with Maybe's

Ashley Yakeley ashley at semantic.org
Tue Apr 13 20:29:14 EDT 2010


On 2010-04-13 03:02, Ozgur Akgun wrote:

> I want a function to generate func1Fixed, given func1.

Don't do that, it's unHaskellish. Bottom is for non-termination (which 
you absolutely cannot catch) plus some other conditions to be treated 
similarly.

If the implementer of func1 decided to return pseudo-non-termination, 
that's what you get.

-- 
Ashley Yakeley


More information about the Haskell-Cafe mailing list