Yep. change one line to: entry <- if isdir && name /= "." && name /= ".."
and it does in fact work. Jared. On 2/17/06, Jon Fairbairn <[EMAIL PROTECTED]> 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 > [email protected] > http://www.haskell.org/mailman/listinfo/haskell-cafe > -- http://www.updike.org/~jared/ reverse ")-:" _______________________________________________ Haskell-Cafe mailing list [email protected] http://www.haskell.org/mailman/listinfo/haskell-cafe
