Template Haskell and linking

Jonas Almström Duregård jonas.duregard at chalmers.se
Fri Sep 17 16:47:52 EDT 2010


Hi GHC users!

Does anyone know if an import that is only used by Template Haskell (i.e.
not in "actual" code) is reflected in the produced executable?

Example:

import LargeModule(thFunction)

$thfunction

...

Is LargeModule linked in the executable file? (Assume thFunction is not
referenced by the code it generates or elsewhere in the example)

Best regards
Jonas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/glasgow-haskell-users/attachments/20100917/aab6244a/attachment.html


More information about the Glasgow-haskell-users mailing list