summaryrefslogtreecommitdiff
path: root/compiler/GHC/Core/Opt/ConstantFold.hs
diff options
context:
space:
mode:
Diffstat (limited to 'compiler/GHC/Core/Opt/ConstantFold.hs')
-rw-r--r--compiler/GHC/Core/Opt/ConstantFold.hs4
1 files changed, 1 insertions, 3 deletions
diff --git a/compiler/GHC/Core/Opt/ConstantFold.hs b/compiler/GHC/Core/Opt/ConstantFold.hs
index 1402a021f7..68ac1379e8 100644
--- a/compiler/GHC/Core/Opt/ConstantFold.hs
+++ b/compiler/GHC/Core/Opt/ConstantFold.hs
@@ -31,8 +31,6 @@ module GHC.Core.Opt.ConstantFold
)
where
-#include "HsVersions.h"
-
import GHC.Prelude
import GHC.Driver.Ppr
@@ -1541,7 +1539,7 @@ tagToEnumRule = do
return $ mkTyApps (Var (dataConWorkId dc)) tc_args
-- See Note [tagToEnum#]
- _ -> WARN( True, text "tagToEnum# on non-enumeration type" <+> ppr ty )
+ _ -> warnPprTrace True (text "tagToEnum# on non-enumeration type" <+> ppr ty) $
return $ mkRuntimeErrorApp rUNTIME_ERROR_ID ty "tagToEnum# on non-enumeration type"
------------------------------