From c818a7837367a1a6182ba06006085a1d213d8ef4 Mon Sep 17 00:00:00 2001 From: Ben Gamari Date: Thu, 28 May 2020 18:02:43 -0400 Subject: 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. --- compiler/GHC/Hs/Instances.hs | 7 +++++++ 1 file changed, 7 insertions(+) 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. -- cgit v1.2.1