ghci changes in 6.8 that are not improvements

1. just using : at the prompt caused a reload. Now you have to type :r. 2. reload now reloads all modules rather than just the modules that changed (faster but not as fast as not reloading them at all). -Alex-

Alex Jacobson wrote:
1. just using : at the prompt caused a reload. Now you have to type :r.
Interesting, I was not aware of that behaviour, so probably fixed it by accident :)
2. reload now reloads all modules rather than just the modules that changed (faster but not as fast as not reloading them at all).
That is certainly not intentional, and I don't see that behaviour here. Can you give us code and steps to reproduce? Cheers, Simon

Simon Marlow wrote:
Alex Jacobson wrote:
1. just using : at the prompt caused a reload. Now you have to type :r.
Interesting, I was not aware of that behaviour, so probably fixed it by accident :)
Yeah, Igloo said the same thing. Everyone I talked to about the feature didn't know about it until I pointed it out. If it was an accident, it was still a really useful feature and would love to have it back.
2. reload now reloads all modules rather than just the modules that changed (faster but not as fast as not reloading them at all).
That is certainly not intentional, and I don't see that behaviour here. Can you give us code and steps to reproduce?
$ darcs get http://happs.org/HAppS-Begin $ cd HAppS-Begin $ curl http://searchpath.org/searchpath/SearchPath.hs > SearchPath.hs $ ghc --make SearchPath.hs -o sp $ sp ghci -ihaskell haskell/Main.hs Prelude> :r Also, HAppS.Server.Facebook takes forever to compile. I don't understand why. -Alex-

On Wed, 21 Nov 2007, Alex Jacobson wrote:
Simon Marlow wrote:
Alex Jacobson wrote:
1. just using : at the prompt caused a reload. Now you have to type :r.
Interesting, I was not aware of that behaviour, so probably fixed it by accident :)
Yeah, Igloo said the same thing. Everyone I talked to about the feature didn't know about it until I pointed it out. If it was an accident, it was still a really useful feature and would love to have it back.
I knew about it too, though I'd assumed that it repeated the previous : command. It's just that ':r' is the only command I ever repeat. I'd quite like it back too, in either form. Cheers, Ganesh

Alex Jacobson wrote:
$ darcs get http://happs.org/HAppS-Begin $ cd HAppS-Begin $ curl http://searchpath.org/searchpath/SearchPath.hs > SearchPath.hs $ ghc --make SearchPath.hs -o sp $ sp ghci -ihaskell haskell/Main.hs Prelude> :r
I don't see any unnecessary reloading here: Ok, modules loaded: [snip]. *Main> :r Ok, modules loaded: [snip]. Tried this on both x86_64/Linux (Fedora 6) and x86/Linux (RedHat 7). Any idea what might be different about your setup?
Also, HAppS.Server.Facebook takes forever to compile. I don't understand why.
That module did take about 15 seconds to load up in GHCi. It looks like it contains quite a few datatypes and a lot of derived instances (derived using TH), so my guess is it's just large. Does it take significantly longer to compile with 6.8.1, or has it always been slow? Cheers, Simon

On Nov 30, 2007 12:36 PM, Simon Marlow
Alex Jacobson wrote:
$ darcs get http://happs.org/HAppS-Begin $ cd HAppS-Begin $ curl http://searchpath.org/searchpath/SearchPath.hs > SearchPath.hs $ ghc --make SearchPath.hs -o sp $ sp ghci -ihaskell haskell/Main.hs Prelude> :r
I don't see any unnecessary reloading here:
Ok, modules loaded: [snip]. *Main> :r Ok, modules loaded: [snip].
Tried this on both x86_64/Linux (Fedora 6) and x86/Linux (RedHat 7). Any idea what might be different about your setup?
It reloads all modules after an error has occurred. -- Cheers, Lemmih

Lemmih wrote:
On Nov 30, 2007 12:36 PM, Simon Marlow
wrote: Alex Jacobson wrote:
$ darcs get http://happs.org/HAppS-Begin $ cd HAppS-Begin $ curl http://searchpath.org/searchpath/SearchPath.hs > SearchPath.hs $ ghc --make SearchPath.hs -o sp $ sp ghci -ihaskell haskell/Main.hs Prelude> :r
I don't see any unnecessary reloading here:
Ok, modules loaded: [snip]. *Main> :r Ok, modules loaded: [snip].
Tried this on both x86_64/Linux (Fedora 6) and x86/Linux (RedHat 7). Any idea what might be different about your setup?
It reloads all modules after an error has occurred.
Wow! You're right. Thanks for the tip, I'm investigating. Simon
participants (4)
-
Alex Jacobson
-
Ganesh Sittampalam
-
Lemmih
-
Simon Marlow