[Haskell-beginners] University project - weird problem
Renato dos Santos Leal
renatodossantosleal at gmail.com
Wed Apr 21 20:18:57 EDT 2010
Oh, much better, thanks.
2010/4/21 Daniel Fischer <daniel.is.fischer at web.de>
> Am Donnerstag 22 April 2010 02:09:35 schrieb Renato dos Santos Leal:
> > I've seen that there is something like hIsEOF that I can use to find EOF
> >
> > to do so I need something like eof <- hIsEOF hdl
> > (hdl: the file that i'm reading)
> >
> > how can I put it as a guard in le_bloco?
>
> No, that's not what you want.
> What you need is
>
> le_bloco (x:xs) ... (what you have)
> le_bloco "" = return ()
> -- when the end of the string is reached, we're done.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/beginners/attachments/20100421/b5e63eef/attachment.html
More information about the Beginners
mailing list