[Haskell] Haskell I/O inside: down the rabbit's hole

2006-07-04 Thread Bulat Ziganshin
Hello haskell, Haskell I/O has always been a source of confusion and surprises for new Haskellers. While simple I/O code in Haskell looks very similar to its equivalents in imperative languages, attempts to write somewhat more complex code often end with a total mess. This is because Haskell I/O i

Re: [Haskell] Haskell I/O inside: down the rabbit's hole

2006-07-04 Thread Joel Reymont
Bulat, I couldn't find a way to reach your tutorial from the Wiki homepage. There's http://www.haskell.org/haskellwiki/Introduction_to_IO under Idioms but there's no tutorials section that I can see. Thanks, Joel -- http://wagerlabs.com/ ___

[Haskell] system command

2006-07-04 Thread J. E. Palomar
Hi, I am newbie in Haskell programing and need to launch a shell command through a Haskell code. In other programing languages like C or Java I know how carry out this task; for instance the code system("ls -l ") in C or exec("ls -l") in Java work fine and lists the working directory. I kn

Re[2]: [Haskell] Haskell I/O inside: down the rabbit's hole

2006-07-04 Thread Bulat Ziganshin
Hello Joel, Tuesday, July 4, 2006, 11:41:04 AM, you wrote: > Bulat, > I couldn't find a way to reach your tutorial from the Wiki homepage. > There's http://www.haskell.org/haskellwiki/Introduction_to_IO under > Idioms but there's no tutorials section that I can see. This page already contai

Re: [Haskell] system command

2006-07-04 Thread Duncan Coutts
On Tue, 2006-07-04 at 11:22 +0200, J. E. Palomar wrote: > Hi, > > I am newbie in Haskell programing and need to launch > a shell command through a Haskell code. > In other programing languages like C or Java I know how > carry out this task; for instance the code > > system("ls -l ") > > in C

Re: [Haskell] system command

2006-07-04 Thread Pepe Iborra
You had the solution in the topic of your post! Look at System.Cmd Or maybe you prefer to use System.Process The GHC documentation includes extensive docs about libraries: http://www.haskell.org/ghc/docs/latest/html/libraries/index.html Cheers Pepe On 7/4/06, J. E. Palomar <[EMAIL PROTECTED]> w

Re: [Haskell] system command

2006-07-04 Thread Krasimir Angelov
System.Cmd.rawSystem provides more portable interface than System.Cmd.system. The behaviour of System.Cmd.system depends on the installed system shell. rawSystem directly creates a new process without interaction with the shell. System.Process module provides even more advanced API. Cheers, Kra

Re[2]: [Haskell] Haskell I/O inside: down the rabbit's hole

2006-07-04 Thread Bulat Ziganshin
Hello Joel, Tuesday, July 4, 2006, 11:41:04 AM, you wrote: > I couldn't find a way to reach your tutorial from the Wiki homepage. > There's http://www.haskell.org/haskellwiki/Introduction_to_IO under > Idioms but there's no tutorials section that I can see. at the second attempt i've understoo

Re: [Haskell] GADTs are not nice to me ;-)

2006-07-04 Thread Wolfgang Jeltsch
Am Montag, 3. Juli 2006 18:46 schrieb Simon Peyton-Jones: > Thanks. Can you confirm that it's fixed in 6.4.2? And if so, can you > record that too? No point in us haring after fixed bugs! > > S As Chris Kuklewicz pointed out, this bug doesn't seem to be completely fixed in 6.4.2. Currently, I

[Haskell] problem building syb-generics

2006-07-04 Thread Matthew Pocock
Hi, I had some trouble getting syb-generics 2.9 to compile with ghc 6.5 (don't ask - I should probably be waiting for a stable release). I fixed the first problem by replacing a definition with in-line type info by splitting the type out, although I am not sure that I have done it right. Can an

[Haskell] ANNOUNCE: Haskell XML Toolbox Version 6.0

2006-07-04 Thread Uwe Schmidt
Haskell XML Toolbox 6.0 I would like to announce a new version of the Haskell XML Toolbox for processing XML. main new features: * works with ghc 6.4.2 * better XPath integration * separate documentation for filter API and arrow API * arrow API slightly simplified More information and downlo

[Haskell] Re: ANNOUNCE: Haskell XML Toolbox Version 6.0

2006-07-04 Thread John Goerzen
On 2006-07-04, Uwe Schmidt <[EMAIL PROTECTED]> wrote: > More information and download: > > http://www.fh-wedel.de/~si/HXmlToolbox/index.html > > Please email comments, bugs, etc. to [EMAIL PROTECTED] Hi Uwe, I'm wondering if there are any tutorials or (simple) example code anywhere? I don't wa

[Haskell] rawSystem unpredictable with signals

2006-07-04 Thread John Goerzen
Hi, I'm using System.Cmd.rawSystem in a program and have noticed a mysterious flaw: When I hit Ctrl-C while the child process is running, sometimes: 1) rawSystem returns ExitSuccess or 2) rawSystem raises an IOError saying the child terminated with a signal I am totally at a loss as to

[Haskell] building c2hs on winows

2006-07-04 Thread Anatoly Yakovenko
I can't get c2hs to build on windows with ghc-6.4.2 $ runhaskell.exe Setup.hs configure Setup.hs:11:57: Couldn't match `LocalBuildInfo' against `Distribution.PackageDescription.PackageDescription' Expected type: Args -> InstallFlags -> Di

Re: [Haskell] GADTs are not nice to me ;-)

2006-07-04 Thread Chris Kuklewicz
Wolfgang Jeltsch wrote: > Am Montag, 3. Juli 2006 18:46 schrieb Simon Peyton-Jones: >> Thanks. Can you confirm that it's fixed in 6.4.2? And if so, can you >> record that too? No point in us haring after fixed bugs! >> >> S > > As Chris Kuklewicz pointed out, this bug doesn't seem to be complet

Re: [Haskell] GADTs are not nice to me ;-)

2006-07-04 Thread Wolfgang Jeltsch
Am Dienstag, 4. Juli 2006 19:54 schrieb Chris Kuklewicz: > I am using ghc-6.4.2 from darwinports on OS X 10.4.7 > > Can I help confirm / test this with something test cases? Sorry, I don't really understand what you mean. You already told us the following: > I cut and pasted your code [i.e., th

[Haskell] ICFP contest registration open!

2006-07-04 Thread Big Chris
Hi all, Registration for the 2006 ICFP contest is now open. As you're probably aware, teams using haskell have won for the last two years. I'm one of the organizers, and as a haskell hacker myself, I'd love to see us win it again :). I can promise you that this year's competition is going to b

Re: [Haskell] building c2hs on winows

2006-07-04 Thread Arjan Oosting
Op di, 04-07-2006 te 09:09 -0700, schreef Anatoly Yakovenko: > I can't get c2hs to build on windows with ghc-6.4.2 > > $ runhaskell.exe Setup.hs configure > > Setup.hs:11:57: > Couldn't match `LocalBuildInfo' >against `Distribution.PackageDescription.PackageDescription' > Ex