RE: Linking with object files

2003-01-08 Thread Simon Marlow
I seem to be having some trouble doing this and have a couple of questions.. The first question is how do you use --make option when doing this? Section 4.5 of the users guide seems to contradictory to me. It states.. The command line must contain one source file or module name This

RE: ghc more aggressive with Ints?

2003-01-08 Thread Simon Peyton-Jones
| sumMinusOnce l = foldr sumMinus (0,0) l | where sumMinus c (a,b) = (a+c, c-b) | | sumMinusTwice l = (foldr (+) 0 l, foldr (-) 0 l) | Here, we see that for everything but INT, the ONCE version is about two | times slower. For the other versions | (say DOUBLE), the ONCE version is

emacs haskell-ghci mode hook

2003-01-08 Thread Christian Maeder
Hi, running ghci (instead of hugs) in (GNU-) emacs is quite fun. But a few improvements could even increase the fun: a) adding arguments to the ghci was not well documented. So I appended the following (and a few more paths) to my .gnu-emacs: ;(add-hook 'haskell-mode-hook

Re: emacs haskell-ghci mode hook

2003-01-08 Thread Hal Daume III
a) adding arguments to the ghci was not well documented. So I appended the following (and a few more paths) to my .gnu-emacs: ;(add-hook 'haskell-mode-hook 'turn-on-haskell-hugs) (add-hook 'haskell-mode-hook 'turn-on-haskell-ghci) (setq haskell-ghci-program-args (append

RE: Linking with object files

2003-01-08 Thread Simon Marlow
On Wednesday 08 January 2003 10:04 am, Simon Marlow wrote: I get the error.. can't find module 'foo.o' while processing foo.o I think you must be using a version of GHC prior to 5.04.2. This functionality was fixed in 5.04.2. I just checked, it really is (or claims to be:-)

Re: emacs haskell-ghci mode hook

2003-01-08 Thread Christian Maeder
Thanks for the ~/.ghci hint. In emacs, I've set F12 to save this file and compile and I use buffer local variables at the very end of my file for one-button testing: C-c C-l is fine to me. Local Variables: compile-command: ./quickcheck +names ProtoQuickCheck.lhs End: I'm using .hs files.

Two Questions: 'memory consumption' and '-pgmL'

2003-01-08 Thread Peter Simons
Hi everybody, first of all, let me thank you for writing and maintaining this excellent compiler! I am using it a lot recently and I couldn't be more happy with it. Thanks! :-) I wouldn't be posting here, though, if hadn't had a questions ... So here I go: (1) Using the DtdToHaskell tool, I

Re: emacs haskell-ghci mode hook

2003-01-08 Thread Glynn Clements
Christian Maeder wrote: C-x ` is jump to next compile error which can be used to navigate through errors produced from tests (depending on the error format). This looks like some work or am I missing some .el files? I'm no ELisp programmer. This functionality is provided by compile.el:

Re: Linking with object files

2003-01-08 Thread Adrian Hey
On Wednesday 08 January 2003 5:00 pm, Simon Marlow wrote: What command line are you using? Here's what I did: ~/scratch cat foo.c ~/scratch gcc -c foo.c ~/scratch ghc --make hello.hs foo.o ghc-5.04.2: chasing modules from: hello.hs Skipping Main ( hello.hs, ./hello.o )