[Haskell-cafe] exists . a psuedo-standard non-empty list module

Alfonso Acosta alfonso.acosta at gmail.com
Wed Feb 21 13:06:20 EST 2007

Hi Nick,

On 2/16/07, Nicolas Frisby <nicolas.frisby at gmail.com> wrote:
> I don't particularly like using fromJust or head, and there's been

IMHO I think that isJust/fromJust could simply be removed. Using
'maybe' is a much better practice, it is safe and much even more

head on the other hand might be considered more necessary but right
now I cannot think of a situation in which it's use shows any
advantage over simple pattern matching.

It's anyway worth to check Neil's Safe library

More information about the Haskell-Cafe mailing list