Re: ghci 7.4.1 no longer loading .o files?

2012-03-02 Thread Simon Marlow
On 02/03/2012 04:21, Evan Laforge wrote: On Tue, Feb 28, 2012 at 1:53 AM, Simon Marlowmarlo...@gmail.com wrote: I don't see how we could avoid including -D, since it might really affect the source of the module that GHC eventually sees. We've never taken -D into account before, and that was

Re: ghci 7.4.1 no longer loading .o files?

2012-03-02 Thread Evan Laforge
There is a way around it: create a .h file containing #define MY_SETTING, and have the Haskell code #include the .h file.  The recompilation checker does track .h files: http://hackage.haskell.org/trac/ghc/ticket/3589 When you want to change the setting, just modify the .h file.  Make sure

Re: ghci 7.4.1 no longer loading .o files?

2012-03-01 Thread Simon Marlow
On 21/02/2012 04:33, Evan Laforge wrote: On Mon, Feb 20, 2012 at 1:14 AM, Eugene Crossercros...@average.org wrote: On 02/20/2012 10:46 AM, Evan Laforge wrote: Is there something that changed in 7.4.1 that would cause it to decide to interpret .hs files instead of loading their .o files?

Re: ghci 7.4.1 no longer loading .o files?

2012-03-01 Thread Evan Laforge
On Tue, Feb 28, 2012 at 1:53 AM, Simon Marlow marlo...@gmail.com wrote: I don't see how we could avoid including -D, since it might really affect the source of the module that GHC eventually sees.  We've never taken -D into account before, and that was incorrect.  I can't explain the behaviour

Re: ghci 7.4.1 no longer loading .o files?

2012-03-01 Thread Evan Laforge
I just committed a fix for this: http://hackage.haskell.org/trac/ghc/ticket/3217#comment:28 What do people think about getting this into 7.4.2?  Strictly speaking it's more than a bug fix, because it adds a new GHCi command (:seti) and some extra functions to the GHC API, although I believe

Re: ghci 7.4.1 no longer loading .o files?

2012-02-28 Thread Simon Marlow
On 21/02/2012 04:57, Evan Laforge wrote: On Mon, Feb 20, 2012 at 8:33 PM, Evan Laforgeqdun...@gmail.com wrote: On Mon, Feb 20, 2012 at 1:14 AM, Eugene Crossercros...@average.org wrote: On 02/20/2012 10:46 AM, Evan Laforge wrote: Is there something that changed in 7.4.1 that would cause it

Re: ghci 7.4.1 no longer loading .o files?

2012-02-28 Thread Simon Marlow
On 27/02/2012 05:08, Evan Laforge wrote: Indeed it was, I initially thought it wasn't because I wasn't using flags for either, but then I remember ghci also picks up flags from ~/.ghci. Turns out I was using -fno-monomorphism-restriction because that's convenient for ghci, but not compiling

Re: ghci 7.4.1 no longer loading .o files?

2012-02-27 Thread Yitzchak Gale
Evan Laforge wrote: Is there something that changed in 7.4.1 that would cause it to decide to interpret .hs files instead of loading their .o files?  E.g.: Brandon Allbery wrote: I thought this was deliberate because the debugger won't work with object files? Oh I hope not.  I almost never

Re: ghci 7.4.1 no longer loading .o files?

2012-02-27 Thread Evan Laforge
On Mon, Feb 27, 2012 at 9:56 AM, Yitzchak Gale g...@sefer.org wrote: Evan Laforge wrote: Is there something that changed in 7.4.1 that would cause it to decide to interpret .hs files instead of loading their .o files?  E.g.: Brandon Allbery wrote: I thought this was deliberate because the

Re: ghci 7.4.1 no longer loading .o files?

2012-02-27 Thread Daniel Fischer
On Monday 27 February 2012, 18:56:47, Yitzchak Gale wrote: It's nice if there is a way for experts to load .o files in GHCi, e.g., for the rare case where the performance difference for some specific module is so great that you can't work effectively interactively in some other module that

Re: ghci 7.4.1 no longer loading .o files?

2012-02-26 Thread Evan Laforge
Indeed it was, I initially thought it wasn't because I wasn't using flags for either, but then I remember ghci also picks up flags from ~/.ghci.  Turns out I was using -fno-monomorphism-restriction because that's convenient for ghci, but not compiling with that. I guess in the case where an

Re: ghci 7.4.1 no longer loading .o files?

2012-02-20 Thread Eugene Crosser
On 02/20/2012 10:46 AM, Evan Laforge wrote: Is there something that changed in 7.4.1 that would cause it to decide to interpret .hs files instead of loading their .o files? E.g.: I don't *know* but could this have anything to do with this? http://hackage.haskell.org/trac/ghc/ticket/5878

Re: ghci 7.4.1 no longer loading .o files?

2012-02-20 Thread Evan Laforge
On Mon, Feb 20, 2012 at 1:14 AM, Eugene Crosser cros...@average.org wrote: On 02/20/2012 10:46 AM, Evan Laforge wrote: Is there something that changed in 7.4.1 that would cause it to decide to interpret .hs files instead of loading their .o files?  E.g.: I don't *know* but could this have

ghci 7.4.1 no longer loading .o files?

2012-02-19 Thread Evan Laforge
Is there something that changed in 7.4.1 that would cause it to decide to interpret .hs files instead of loading their .o files? E.g.: % ghc -c T.hs % ghci GHCi, version 7.4.1: http://www.haskell.org/ghc/ :? for help Loading package ghc-prim ... linking ... done. Loading package integer-gmp ...

Re: ghci 7.4.1 no longer loading .o files?

2012-02-19 Thread Evan Laforge
On Sun, Feb 19, 2012 at 10:52 PM, Brandon Allbery allber...@gmail.com wrote: On Mon, Feb 20, 2012 at 01:46, Evan Laforge qdun...@gmail.com wrote: Is there something that changed in 7.4.1 that would cause it to decide to interpret .hs files instead of loading their .o files?  E.g.: I thought