GHC silently turns off dynamic output, should this be an error?

John Lato jwlato at gmail.com
Tue Jun 24 21:16:01 UTC 2014


On Jun 24, 2014 1:36 PM, "Ian Lynagh" <igloo at earth.li> wrote:
>
> On Mon, Jun 23, 2014 at 12:58:16PM -0500, Christopher Rodrigues wrote:
> >
> > Additionally, is it ever valid to have a pair of .hi and .dyn_hi files
with
> > different interface hashes?
>
> You can, for example, compile package foo the vanilla way with -O, and
> the dynamic way without -O. You'll then get mismatched hashes.

Also, any file that uses Template Haskell could potentially generate
different code at each compilation.  But IMHO this isn't something ghc
should try to support.

John L.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/ghc-devs/attachments/20140625/4c0d9d99/attachment.html>


More information about the ghc-devs mailing list