summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Gamari <ben@smart-cactus.org>2020-05-28 18:02:43 -0400
committerBen Gamari <ben@smart-cactus.org>2020-05-28 18:03:20 -0400
commitc818a7837367a1a6182ba06006085a1d213d8ef4 (patch)
tree8f628dc91f0cfb5ee52f27778b1ca119e861993f
parentd6203f24cf421749616a247c047a9b44192f963a (diff)
downloadhaskell-wip/T18254.tar.gz
GHC.Hs.Instances: Compile with -O0wip/T18254
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.