Skip to content
Snippets Groups Projects
Commit a0a506dd authored by Douglas Wilson's avatar Douglas Wilson
Browse files

Refine "doingTH" check to include checking for QuasiQuotes

In several places we need to know whether any modules in the component being
built use template haskell, because if they do we need to make sure the object
files that will be needed are built.
Previously, we checked whether TemplateHaskell was present in the extensions
declared in the cabal file. Now we also check for QuasiQuotes.

This patch adds usesTemplateHaskellOrQQ to Distribution.Types.BuildInfo and
Distribution.PackageDescription. The checks "doingTH" checks in
Distribuion.Simple.GHC, Distribution.Simple.GHCJS, and Distribution.Simple.LHC
now delegate to usesTemplateHaskellOrQQ rather than each having identical checks
inline.
parent 871feaeb
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment