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 14 April 2010 08:50, Roel van Dijk <vandijk.r...@gmail.com> wrote:

> On Wed, Apr 14, 2010 at 2:32 AM, Ivan Miljenovic
> <ivan.miljeno...@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?
>
> In which case there is already the 'safe' package:
> http://hackage.haskell.org/package/safe
>



-- 
Ozgur Akgun
_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to