Re: [Haskell-cafe] walking a directory tree efficiently

2009-01-17 Thread wren ng thornton
Manlio Perillo wrote: By the way, I have managed to have a working program: http://hpaste.org/13919 I would like to receive some advices: 1) I have avoided the do notation, As Paolo Losi says, there's nothing wrong with do-notation. You should use whichever style makes your code the easiest t

Re: Re: [Haskell-cafe] walking a directory tree efficiently

2009-01-15 Thread Massimiliano Gubinelli
Hi, what about avoid the use of the unfold over the tree and construct it directly (e.g. see http://hpaste.org/13919#a3)? I wonder if there is (an easy) possibility to construct the tree lazily so that output start immediately for large trees. best, Massimiliano Gubinelli -- View this message

Re: [Haskell-cafe] walking a directory tree efficiently

2009-01-14 Thread Manlio Perillo
Don Stewart ha scritto: manlio_perillo: Hi. During a tentative (quite unsuccessfull) to convert a simple Python script that prints on stdout a directory and all its subdirectory [1] in a good Haskell (mostly to start to do real practice with the language), I came across this blog post: http

Re: [Haskell-cafe] walking a directory tree efficiently

2009-01-13 Thread Thomas Hartman
> There's no iteratee/fold-based IO system yet. What about http://sites.google.com/site/haskell/notes/lazy-io-considered-harmful-way-to-go-left-fold-enumerator ? It's not on hackage, but at least it's public domain. Oleg, of course. 2009/1/13 Don Stewart : > manlio_perillo: >> Hi. >> >> Duri

Re: [Haskell-cafe] walking a directory tree efficiently

2009-01-13 Thread Don Stewart
manlio_perillo: > Hi. > > During a tentative (quite unsuccessfull) to convert a simple Python > script that prints on stdout a directory and all its subdirectory [1] in > a good Haskell (mostly to start to do real practice with the language), > I came across this blog post: > http://blog.moerte

[Haskell-cafe] walking a directory tree efficiently

2009-01-13 Thread Manlio Perillo
Hi. During a tentative (quite unsuccessfull) to convert a simple Python script that prints on stdout a directory and all its subdirectory [1] in a good Haskell (mostly to start to do real practice with the language), I came across this blog post: http://blog.moertel.com/articles/2007/03/28/di