module Unix.hs

1999-08-21 Thread Koen Claessen
Hi all, I am just sending this because there were some people who thought it could be useful. It works for Hugs98, but some hacks I use might be specific to our local system. I think a built-in module with the same function signatures would be extremely useful! Regards, Koen. -

Re: A Haskell-Shell

1999-08-21 Thread Will Partain
Jim Mattson's "Haskell shell" may still be distributed as misc/examples/hsh/Hsh.hs in GHC. I include what I believe to be a reasonably current (1997) version below. Will Peter Hancock <[EMAIL PROTECTED]> wrote: I found an old (and stale) URL http://www.dcs.gla.ac.uk/~mattson/Hsh.html">Unix sh

Re: A Haskell-Shell

1999-08-21 Thread Heribert Schuetz
Hi, The appended patch to Hugs98 (to be applied in the src subdirectory) might be of some help for those who want to do shell scripting in Haskell. It modifies IO.openFile as follows: - If the name of a file opened in ReadMode ends in "|", then the part before the "|" is considered a program a

Re: A Haskell-Shell

1999-08-21 Thread Friedrich Dominicus
Koen Claessen wrote: > > Hello, > > | Just wondering if someone uses Hugs for writing Unix-Shell Scripts. Or > | what would you think about a Haskell-Shell. > > These are two quite separate issues of course. I can comment on the first > one. > Of course you're rigth, and I better had just ask