From 4db9ea9ec8b4ae0db74259bb87319643de1fd469 Mon Sep 17 00:00:00 2001 From: "simonpj@microsoft.com" Date: Fri, 12 Nov 2010 17:20:49 +0000 Subject: [PATCH] Add LANGUAGE BangPatterns to modules that use them --- compiler/ghci/ByteCodeAsm.lhs | 1 + compiler/utils/Encoding.hs | 1 + compiler/utils/FastMutInt.lhs | 1 + compiler/utils/FastString.lhs | 1 + 4 files changed, 4 insertions(+) diff --git a/compiler/ghci/ByteCodeAsm.lhs b/compiler/ghci/ByteCodeAsm.lhs index 6f6e51d..dfc77e5 100644 --- a/compiler/ghci/ByteCodeAsm.lhs +++ b/compiler/ghci/ByteCodeAsm.lhs @@ -6,6 +6,7 @@ ByteCodeLink: Bytecode assembler and linker \begin{code} {-# OPTIONS -optc-DNON_POSIX_SOURCE #-} +{-# LANGUAGE BangPatterns #-} module ByteCodeAsm ( assembleBCOs, assembleBCO, diff --git a/compiler/utils/Encoding.hs b/compiler/utils/Encoding.hs index 336d9f0..84b4e09 100644 --- a/compiler/utils/Encoding.hs +++ b/compiler/utils/Encoding.hs @@ -1,3 +1,4 @@ +{-# LANGUAGE BangPatterns #-} {-# OPTIONS_GHC -O #-} -- We always optimise this, otherwise performance of a non-optimised -- compiler is severely affected diff --git a/compiler/utils/FastMutInt.lhs b/compiler/utils/FastMutInt.lhs index 6aa1c79..61e3e85 100644 --- a/compiler/utils/FastMutInt.lhs +++ b/compiler/utils/FastMutInt.lhs @@ -1,4 +1,5 @@ \begin{code} +{-# LANGUAGE BangPatterns #-} {-# OPTIONS -cpp #-} {-# OPTIONS_GHC -O #-} -- We always optimise this, otherwise performance of a non-optimised diff --git a/compiler/utils/FastString.lhs b/compiler/utils/FastString.lhs index a357f98..dafdf6a 100644 --- a/compiler/utils/FastString.lhs +++ b/compiler/utils/FastString.lhs @@ -2,6 +2,7 @@ % (c) The University of Glasgow, 1997-2006 % \begin{code} +{-# LANGUAGE BangPatterns #-} {-# OPTIONS -fno-warn-unused-imports #-} -- XXX GHC 6.9 seems to be confused by unpackCString# being used only in -- a RULE -- 1.7.10.4