[Haskell-beginners] Re: Empty list Exception

Chicão Fernandes Junior xykaumjunior at gmail.com
Sun May 24 15:17:16 EDT 2009


Sorry, I send it accidently. I did't finish my question.

Anyway, when I run in GHCi:

userRegistration  ("Joao Claudino","1240",2) users
>


It gives me the exception:

*** Exception: Prelude.head: empty list
>

Can anyone explain to me why the exception is thown and what should I do to
fix it?

Thanks

-- 
____________________________________________________________________________
Francisco Borges "Chicão" Junior
..........................................................................................
http://pedepinico.blogspot.com
..........................................................................................
"Quem de boa vontade carrega o difícil, também carrega o menos difícil..."
Lao Tsé - Tao Te Ching
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/beginners/attachments/20090524/c82826b2/attachment.html


More information about the Beginners mailing list