Thomas M. DuBuisson  committed acda3f5

Test the version of template haskell, not GHC

This is more portable between compilers as well as between variants on GHC (ex: HaLVM is building off of head so GHC appears as 7.8.3 while TH is 2.10).

  • Participants
  • Parent commits 0191e86

Comments (0)

Files changed (1)

File Data/Aeson/TH.hs

 applyCon :: Name -> [Name] -> Q [Pred]
 applyCon con typeNames = return (map apply typeNames)
   where apply t =
-#if __GLASGOW_HASKELL__ >= 709
+#if MIN_VERSION_template_haskell(2,10,0)
           AppT (ConT con) (VarT t)
           ClassP con [VarT t]