using ghci with compiled code

I want to use ghci to interpret parts of my program, and I would like it to pick up pre-compiled object files to speed things up in other parts. Right now whenever I launch ghci it seems to "compile" everything (I think to byte code).. what can I do? D

On 2017-02-02 07:50 PM, Dennis Raddle wrote:
I want to use ghci to interpret parts of my program, and I would like it to pick up pre-compiled object files to speed things up in other parts. Right now whenever I launch ghci it seems to "compile" everything (I think to byte code).. what can I do?
Read the GHC Users Guide section 5.3 "loading compiled code". The GHC Users Guide comes with GHC and is somewhere on your hard disk.

I suspect I need to try the -dynamic flag to ghc when compiling-- that may
be my problem. I'll try it.
On Fri, Feb 3, 2017 at 1:50 PM, Albert Y. C. Lai
On 2017-02-02 07:50 PM, Dennis Raddle wrote:
I want to use ghci to interpret parts of my program, and I would like it to pick up pre-compiled object files to speed things up in other parts. Right now whenever I launch ghci it seems to "compile" everything (I think to byte code).. what can I do?
Read the GHC Users Guide section 5.3 "loading compiled code". The GHC Users Guide comes with GHC and is somewhere on your hard disk.
_______________________________________________ Haskell-Cafe mailing list To (un)subscribe, modify options or view archives go to: http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe Only members subscribed via the mailman list are allowed to post.
participants (2)
-
Albert Y. C. Lai
-
Dennis Raddle