[Haskell-cafe] Infinite loop?

Jared Updike jupdike at gmail.com
Fri Feb 17 12:22:10 EST 2006


Yep. change one line to:

   entry <- if isdir && name /= "." && name /= ".."

and it does in fact work.

  Jared.

On 2/17/06, Jon Fairbairn <jon.fairbairn at cl.cam.ac.uk> wrote:
> On 2006-02-17 at 20:12GMT rgo wrote:
> > Hi all,
> > my program probably goes into infinite loop... But i cannot understand where and why.
>
> getDirectoryContents will include "." and "..", so if you
> follow those, you're bound to loop.
>
> --
> Jón Fairbairn                              Jon.Fairbairn at cl.cam.ac.uk
>
>
> _______________________________________________
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
> http://www.haskell.org/mailman/listinfo/haskell-cafe
>


--
http://www.updike.org/~jared/
reverse ")-:"


More information about the Haskell-Cafe mailing list