RE: Debugging Haskell

2002-03-13 Thread Simon Marlow
[ redirected to [EMAIL PROTECTED] ] Good day everyone, I was fiddling around with this tiny echo client/server haskell program from 'The Great Language Shootout' site (http://www.bagley.org/~doug/shootout/) and got stuck. The code (attached) has been reformatted with minimal API tweak

how to specify gcc location on ghc command line?

2002-03-13 Thread Johannes Waldmann
ghc-5.02.2 seems to need gcc-2.95.3, but here we have gcc-3.0.* per default. There IS a gcc-2.95.3 tree around, but how do I tell ghc about it? -- -- Johannes Waldmann http://www.informatik.uni-leipzig.de/~joe/ -- -- [EMAIL PROTECTED] -- phone/fax (+49) 341 9732 204/252 --

RE: how to specify gcc location on ghc command line?

2002-03-13 Thread Simon Marlow
ghc-5.02.2 seems to need gcc-2.95.3, but here we have gcc-3.0.* per default. There IS a gcc-2.95.3 tree around, but how do I tell ghc about it? You can use 'ghc -pgmcgcc-2.95.3' (unfortunately you can't leave a space between -pgmc and gcc-2.95.3 because of a bug in the command-line handling

RE: HGL ang GHC on Win32

2002-03-13 Thread Simon Marlow
I'm hoping that a GHC honcho will say Well of course that happens with 5.02.2 - you should upgrade to 5.03 right away. or some such. I'm afraid not :-) But there *is* a bug in the native code generator in 5.02.2, namly in the FFI support for passing floating point arguments to

RE: HGL ang GHC on Win32

2002-03-13 Thread Simon Marlow
I'm hoping that a GHC honcho will say Well of course that happens with 5.02.2 - you should upgrade to 5.03 right away. or some such. I'm afraid not :-) But there *is* a bug in the native code generator in 5.02.2, namly in the FFI support for passing floating point arguments to

Hugs plugin, Haskell Browser

2002-03-13 Thread Robert Giegerich
Teachers in Haskell, I often use Haskell demos in teaching algorithms. The problem is that this does not integrate well with the rest of the material, e.g. lecture notes or slides in PDF or HTML. I'd like to integrate explanations and demos and explorative changes to algorithms. This needs

Re: Hugs plugin, Haskell Browser

2002-03-13 Thread Abraham Egnor
Vim can produce HTML from any source code it has highlighting rules for, which includes Haskell. Dunno about the browser plugin, though. Abe On Wed, 13 Mar 2002, Robert Giegerich wrote: Teachers in Haskell, I often use Haskell demos in teaching algorithms. The problem is that this does

RE: HGL ang GHC on Win32

2002-03-13 Thread Hal Daume III
That is a shame. I tried both suggestions (specifying position explicitly and recompiling with fvia-c -- i had been using O all along) and neither worked :(. I also tried using 5.03, and got the following warnings: ghc.exe: chasing modules from: HelloWorld.hs Compiling GraphicsFlag (

Re: Hugs plugin, Haskell Browser

2002-03-13 Thread Alastair David Reid
Is there something like a Hugs plugin for Netscape? We used to have one at Yale. Can't remember what happened to it so I'm adding John Peterson to the address list in case he can remember. -- Alastair ReidReid Consulting (UK) Ltd ___

un-layout program

2002-03-13 Thread Hal Daume III
does there exist a program that'll take a layed out haskell program and output one that uses braces and semis to delimit? - hal -- Hal Daume III Computer science is no more about computers| [EMAIL PROTECTED] than astronomy is about telescopes. -Dijkstra | www.isi.edu/~hdaume

Re: Hugs plugin, Haskell Browser

2002-03-13 Thread Manuel M. T. Chakravarty
Robert Giegerich [EMAIL PROTECTED] wrote, I often use Haskell demos in teaching algorithms. The problem is that this does not integrate well with the rest of the material, e.g. lecture notes or slides in PDF or HTML. I'd like to integrate explanations and demos and explorative changes to

Strictness (was: Is this tail recursive?)

2002-03-13 Thread Jay Cox
On Wed, 13 Mar 2002, Bjorn Lisper wrote: Hal Daume III: Here's the basic idea. Suppose we have the function: sum [] acc = acc sum (x:xs) acc = sum xs (acc+x) This is tail recursive, but not strict in the accumulator argument. ... Just a nitpick here. sum is indeed strict in its

Re: Hugs plugin, Haskell Browser

2002-03-13 Thread Ketil Z. Malde
Manuel M. T. Chakravarty [EMAIL PROTECTED] writes: The detailed choice of colours is, of course, adjustable. At least on a Unix machine, I am quite sure you can use XEmacs also in batch mode to generate the HTML Sure. Have a look at -batch, -f and -eval options. Be prepared for a bit of