Fwd: how to get ghci to load compiled modules in 7.8?

2014-07-14 Thread Evan Laforge
I sent this to haskell-cafe, but there was no response. On stackoverflow there was no response either. I'm trying one last time, but adding ghc-users (which I should have done at the beginning!). Surely it can't be that no one knows how to load modules in ghci? I know a lot of work was done to

Re: how to get ghci to load compiled modules in 7.8?

2014-07-14 Thread Reid Barton
On Mon, Jul 14, 2014 at 1:08 PM, Evan Laforge qdun...@gmail.com wrote: I sent this to haskell-cafe, but there was no response. On stackoverflow there was no response either. I'm trying one last time, but adding ghc-users (which I should have done at the beginning!). Surely it can't be that

Re: how to get ghci to load compiled modules in 7.8?

2014-07-14 Thread Evan Laforge
On Mon, Jul 14, 2014 at 10:36 AM, Reid Barton rwbar...@gmail.com wrote: See https://ghc.haskell.org/trac/ghc/ticket/8736. The current workaround for GHC 7.8 is to compile with -dynamic, not -dynamic-too. That was it! Thanks so much. As an aside, I was kind of expecting a faster link time due

Re: how to get ghci to load compiled modules in 7.8?

2014-07-14 Thread Evan Laforge
On Mon, Jul 14, 2014 at 11:13 AM, Evan Laforge qdun...@gmail.com wrote: As an aside, I was kind of expecting a faster link time due to -dynamic, but apparently not. Oh well, I'm happy enough ghci is back. Aha, I needed to pass -dynamic when linking too. Sorry for the noise.

Re: how to get ghci to load compiled modules in 7.8?

2014-07-14 Thread Evan Laforge
On Mon, Jul 14, 2014 at 11:13 AM, Evan Laforge qdun...@gmail.com wrote: On Mon, Jul 14, 2014 at 10:36 AM, Reid Barton rwbar...@gmail.com wrote: See https://ghc.haskell.org/trac/ghc/ticket/8736. The current workaround for GHC 7.8 is to compile with -dynamic, not -dynamic-too. That was it!

Re: how to get ghci to load compiled modules in 7.8?

2014-07-14 Thread Evan Laforge
On Mon, Jul 14, 2014 at 12:35 PM, Evan Laforge qdun...@gmail.com wrote: Actually... not quite. -dynamic seems let ghci load, but when I load with the GHCI API, I get this: compile error: interactive session: cannot find normal object file ‘build/debug/obj/Util/Contro.o’ while