Template Haskell does not work in a profiled compiler.
Template Haskell does not work if the compiler itself is built profiles. Because of this we cannot debug GHC compile time performance problems when compiling Data.Vector and DPH as they use Template Haskell. #4172 (closed) is related.
Trying to use Template Haskell in a profiled compiler currently triggers the assertion at
Supporting this would also mean that we can run GHCi with profiled code!