Haskell package with dynamic library only

Andreas Voellmy andreas.voellmy
Fri Oct 4 22:35:24 UTC 2013

Hi all,

Is it possible to have a Haskell package that only includes a dynamic
library and .dyn_hi files? I.e. it would omit the .o and .a files? I tried
building a library using cabal and --enable-shared. It still includes the
.o and .a files.

Will builds with "-dynamic" and loading modules in ghci work correctly if I
just delete the .o and .a files?  I did a few experiments and it seems to
work OK, although it seems that things break if I delete the .hi files,
even though I'd expect only the .dyn_hi files would be used.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/ghc-devs/attachments/20131004/5e889ad1/attachment.html>

More information about the ghc-devs mailing list