+ -- although GHCi compiles with -prof, it is not usable: the byte-code
+ -- compiler and interpreter don't work with profiling. So we check for
+ -- this up front and emit a helpful error message (#2197)
+ m <- liftIO $ lookupSymbol "PushCostCentre"
+ when (isJust m) $
+ ghcError (InstallationError "GHCi cannot be used when compiled with -prof")
+