summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Gamari <ben@smart-cactus.org>2020-05-28 18:02:43 -0400
committerMarge Bot <ben+marge-bot@smart-cactus.org>2020-06-04 04:37:21 -0400
commit6735b9d94605b4c7f75e70339bfaa4207f23e52b (patch)
treee000aa67bc53015d9c5f6c71ec6213fc7543ccff
parent2bd3929ad1b06b01c1d22d513902507eefadc131 (diff)
downloadhaskell-6735b9d94605b4c7f75e70339bfaa4207f23e52b.tar.gz
GHC.Hs.Instances: Compile with -O0
This module contains exclusively Data instances, which are going to be slow no matter what we do. Furthermore, they are incredibly slow to compile with optimisation (see #9557). Consequently we compile this with -O0. See #18254.
-rw-r--r--compiler/GHC/Hs/Instances.hs7
1 files changed, 7 insertions, 0 deletions
diff --git a/compiler/GHC/Hs/Instances.hs b/compiler/GHC/Hs/Instances.hs
index a5588f31d2..61cb81006b 100644
--- a/compiler/GHC/Hs/Instances.hs
+++ b/compiler/GHC/Hs/Instances.hs
@@ -5,6 +5,13 @@
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE UndecidableInstances #-}
{-# OPTIONS_GHC -fno-warn-orphans #-}
+
+-- This module contains exclusively Data instances, which are going to be slow
+-- no matter what we do. Furthermore, they are incredibly slow to compile with
+-- optimisation (see #9557). Consequently we compile this with -O0.
+-- See #18254.
+{-# OPTIONS_GHC -O0 #-}
+
module GHC.Hs.Instances where
-- This module defines the Data instances for the hsSyn AST.