[Haskell-cafe] Compiled code

Erik de Castro Lopo mle+hs at mega-nerd.com
Sat Mar 23 03:00:43 CET 2013


Erik de Castro Lopo wrote:

> MigMit wrote:
> 
> > Suppose I compiled some module and kept it's .hi and .o files. Is it
> > possible to use this module in my program if the source code was deleted for some reason?
> > 
> > Seems like the answer is "yes"
> 
> The answer is yes as long as the compiler version and the versions of
> all libraries your orignal .hs file used remain the same. As soon as
> any of these versions change, you need the full original .hs file.

If you change the compiler flags (eg optimisation levels) you will also
need the full original .hs file.

Erik
-- 
----------------------------------------------------------------------
Erik de Castro Lopo
http://www.mega-nerd.com/



More information about the Haskell-Cafe mailing list