[Haskell-cafe] ANN: HSH 1.2.0

2007-03-03 Thread John Goerzen
Hi, I'm pleased to announce HSH 1.2.0. Since version 1.0.0 was announced a few days ago, there have been some improvements: * run is now a function with a polymorphic return type. Depending on the value expected, it can return to you a String representing all output, an exit code, a list

Re: [Haskell-cafe] ANN: HSH 1.2.0

2007-03-03 Thread David Roundy
On Sat, Mar 03, 2007 at 08:38:57AM -0600, John Goerzen wrote: I'm pleased to announce HSH 1.2.0. Since version 1.0.0 was announced a few days ago, there have been some improvements: How about -||- as an alias for something like `catch` $ \_ - ? Or I'm not sure the best design, in the sense of

Re: [Haskell-cafe] ANN: HSH 1.2.0

2007-03-03 Thread Paul Moore
On 03/03/07, John Goerzen [EMAIL PROTECTED] wrote: I'm pleased to announce HSH 1.2.0. Since version 1.0.0 was announced a few days ago, there have been some improvements: I've had a little look, and it looks nice. However, as a mainly Windows user, I'd be interested to know - does it work on

Re[2]: [Haskell-cafe] ANN: HSH 1.2.0

2007-03-03 Thread Bulat Ziganshin
Hello Paul, Saturday, March 3, 2007, 8:06:16 PM, you wrote: I've had a little look, and it looks nice. However, as a mainly Windows user, I'd be interested to know - does it work on Windows (alternatively, is portability to Windows a goal)? It might be worth mentioning up front, if it's

Re: [Haskell-cafe] ANN: HSH 1.2.0

2007-03-03 Thread John Goerzen
On Sat, Mar 03, 2007 at 05:06:16PM +, Paul Moore wrote: On 03/03/07, John Goerzen [EMAIL PROTECTED] wrote: I'm pleased to announce HSH 1.2.0. Since version 1.0.0 was announced a few days ago, there have been some improvements: I've had a little look, and it looks nice. However, as a

Re: [Haskell-cafe] ANN: HSH 1.2.0

2007-03-03 Thread John Goerzen
On Sat, Mar 03, 2007 at 11:58:42PM +0300, Bulat Ziganshin wrote: path-handling functions are not windows aware, at least i always thought that Haskell (probably, hugs) is a great shell scripting tool but it lacks filename/file processing libraries. with help of Filepath library by Neil and

Re: [Haskell-cafe] ANN: HSH 1.2.0

2007-03-03 Thread Neil Mitchell
Hi FilePath is indeed quite nice. You might also want to look at System.Path and its submodules in MissingH (API docs at [1]). I've got some stuff that FilePath doesn't, namely making paths absolute, wildcard matching/globbing, and also a function that converts a POSIX wildcard into a regexp.

Re: [Haskell-cafe] ANN: HSH 1.2.0

2007-03-03 Thread John Goerzen
On Sat, Mar 03, 2007 at 10:19:38PM +, Neil Mitchell wrote: I've got some stuff that FilePath doesn't, namely making paths absolute, wildcard matching/globbing, and also a function that converts a POSIX wildcard into a regexp. FilePath did have a function that made paths absolute, but it

Re: [Haskell-cafe] ANN: HSH 1.2.0

2007-03-03 Thread Neil Mitchell
Hi There are a couple of things about that function... First, I did see it, but its description is rather vague on what it does. From the description, it sounds like it is possible that it would not return an absolute path; I read it more as expanding symlinks. If it does indeed return an