Re: [Haskell-cafe] wanted: haskell one-liners (in the perl sense of one-liners)

2007-03-04 Thread Yitzchak Gale
Thomas Hartman wrote: Is there a way to do perl one-liner gibberish as a shell command that idiomatically uses haskell? I used to do those in Perl, too, years ago. I switched to the readable step-by-step style of the Python shell when I moved from Perl to Python. It is a whole different

[Haskell-cafe] wanted: haskell one-liners (in the perl sense of one-liners)

2007-03-02 Thread Thomas Hartman
Okay, I am aware of http://haskell.org/haskellwiki/Simple_unix_tools which gives some implementation of simple unix utilities in haskell. But I couldn't figure out how to use them directly from the shell, and of course that's what most readers will probably wnat. Or let me put it another way.

Re: [Haskell-cafe] wanted: haskell one-liners (in the perl sense of one-liners)

2007-03-02 Thread Bas van Dijk
On Friday 02 March 2007 14:48, Thomas Hartman wrote: ... But I couldn't figure out how to use them directly from the shell, and of course that's what most readers will probably wnat. ... From Dons wiki article http://haskell.org/haskellwiki/Blog_articles I noticed this blog with a nice tip

Re: [Haskell-cafe] wanted: haskell one-liners (in the perl sense of one-liners)

2007-03-02 Thread David Roundy
On Fri, Mar 02, 2007 at 08:12:19PM +0100, Thomas Hartman wrote: Great tip! One question though. What condition is if which ghc /dev/null checking? What bad thing will happen if you don't do this check? Sorry this is more a bash question than a haskell question. It just checks