[Haskell] modern language design, stone age tools

2004-06-22 Thread Fergus Henderson
\begin{gripe} Seeing as Haskell is apparently such a popular language these days, I don't suppose a working debugger would be too much to ask for, would it? Or even just a decent call stack trace when a program terminates with an exception? In case you're wondering, yes I have already tried using

Re: [Haskell] Reading a directory tree

2004-06-22 Thread Glynn Clements
Duncan Coutts wrote: > > > BTW, one other caveat (which applies to all of the examples so far): > > > doesDirectoryExist doesn't distinguish between directories and > > > symlinks to directories. Consequently, any directory-traversal > > > algorithm which uses doesDirectoryExist to identify direc

Re: [Haskell] Reading a directory tree

2004-06-22 Thread Duncan Coutts
On Tue, 2004-06-22 at 21:02, Keith Wansbrough wrote: > > BTW, one other caveat (which applies to all of the examples so far): > > doesDirectoryExist doesn't distinguish between directories and > > symlinks to directories. Consequently, any directory-traversal > > algorithm which uses doesDirectoryE

Re: [Haskell] Reading a directory tree

2004-06-22 Thread Keith Wansbrough
> BTW, one other caveat (which applies to all of the examples so far): > doesDirectoryExist doesn't distinguish between directories and > symlinks to directories. Consequently, any directory-traversal > algorithm which uses doesDirectoryExist to identify directories will > behave incorrectly in th

Re: [Haskell] Reading a directory tree

2004-06-22 Thread Glynn Clements
Tom Hofte wrote: > I'm looking for a way to iteratively read all the files in a directory > and > its subdirectories, given the filepath of the top-level dir. > For example, I want to find a file, corresponding to a given filename, > in a directory and its subdirectories. > > Is there a way to i

Re: [Haskell] Reading a directory tree

2004-06-22 Thread Glynn Clements
Tom Hofte wrote: > I'm looking for a way to iteratively read all the files in a directory > and > its subdirectories, given the filepath of the top-level dir. > For example, I want to find a file, corresponding to a given filename, > in a directory and its subdirectories. > > Is there a way to i

Re: [Haskell] Reading a directory tree

2004-06-22 Thread Gregory Wright
Hi Tom, Attached is a haskell file I wrote when I was learning how to use the directory functions. It builds a tree structure corresponding to the directory tree and finds the files that end in ".txt". It then sorted the files in order of modification time. As you can guess from the program, it w

[Haskell] (no subject)

2004-06-22 Thread Alfonso
Hello dear haskellers:   My name is Alfonso Meléndez I work in Computer Science in  a Colombian University. Right now, I am developing an application for discrete mathematics and I need to comunicate Java with Haskell, more precisely  I use Java for the interface of the application an

[Haskell] Call for Participation: FMCO 2004

2004-06-22 Thread M.M. Bonsangue
* CALL FOR PARTICIPATION Third International Symposium on Formal Methods for Components and Objects (FMCO 2004) The objective of this symposium is to bring together top researchers in the are

Re: [Haskell] State Transformers and Control.Monad.ST.Lazy

2004-06-22 Thread Tom Pledger
Vivian McPhail wrote: Hi, From the very helpful posts of John Hughes and others concerning "Monadic Loops", I've been advised to re-implement my neural net simulator using lazy state threads to avoid crashes to which recursive (and tail-recursive) monads lead. I had been using monad transforme

[Haskell] Re: Reading a directory tree

2004-06-22 Thread Peter Simons
Tom Hofte writes: > I'm looking for a way to iteratively read all the files > in a directory and its subdirectories, given the filepath > of the top-level dir. Hope this helps: \begin{code} module ReadDirHier ( Entry(..) , name , readDirHier ) where import System.Directory (g

[Haskell] Re: HsDNS -- asynchronous DNS resolver

2004-06-22 Thread Peter Simons
Tomasz Zielonka writes: > Maybe we could have two implementations behind one > interface? It sure sounds nice, but the problem is that the API is basically nothing more than the data types used to represent DNS queries and answers. My API has just one single function: query. So having the same

Re: [Haskell] Reading a directory tree

2004-06-22 Thread John Hughes
> Hi, > > I'm looking for a way to iteratively read all the files in a directory and > its subdirectories, given the filepath of the top-level dir. > For example, I want to find a file, corresponding to a given filename, in > a directory and its subdirectories. > > Is there a way to implement this

Re: [Haskell] Reading a directory tree

2004-06-22 Thread John Hughes
> Hi, > > I'm looking for a way to iteratively read all the files in a directory and > its subdirectories, given the filepath of the top-level dir. > For example, I want to find a file, corresponding to a given filename, in > a directory and its subdirectories. > getDirectoryContents is your frien

[Haskell] Reading a directory tree

2004-06-22 Thread Tom Hofte
Hi,   I'm looking for a way to iteratively read all the files in a directory and its subdirectories, given the filepath of the top-level dir. For example, I want to find a file, corresponding to a given filename, in a directory and its subdirectories.   Is there a way to implement this in H