Oh well, thanks for all the response.
I have a module with lots of one line function definitons, and they just *look* ugly when I wrap the return type with Maybe. This is a straightforward, and trivial job (the conversion) and I really don't care about other problems (such as non-termination plus some other conditions) for the time being.
I am not attampting to remove Maybe completely, don't worry :)
I quite like it, and use it in most places. But now always apparently.
Best,
On Wed, Apr 14, 2010 at 2:32 AM, Ivan MiljenovicIn which case there is already the 'safe' package:
<ivan.miljenovic@gmail.com> wrote:
> Why not use Maybe for func1 in the first place? Or are you wanting to
> automagically make all uses of head, tail, etc. safe?
http://hackage.haskell.org/package/safe