projects
/
ghc-hetmet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
64557b4
)
Add LANGUAGE BangPatterns to modules that use them
author
simonpj@microsoft.com
<unknown>
Fri, 12 Nov 2010 17:20:49 +0000
(17:20 +0000)
committer
simonpj@microsoft.com
<unknown>
Fri, 12 Nov 2010 17:20:49 +0000
(17:20 +0000)
compiler/ghci/ByteCodeAsm.lhs
patch
|
blob
|
history
compiler/utils/Encoding.hs
patch
|
blob
|
history
compiler/utils/FastMutInt.lhs
patch
|
blob
|
history
compiler/utils/FastString.lhs
patch
|
blob
|
history
diff --git
a/compiler/ghci/ByteCodeAsm.lhs
b/compiler/ghci/ByteCodeAsm.lhs
index
6f6e51d
..
dfc77e5
100644
(file)
--- 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 #-}
\begin{code}
{-# OPTIONS -optc-DNON_POSIX_SOURCE #-}
+{-# LANGUAGE BangPatterns #-}
module ByteCodeAsm (
assembleBCOs, assembleBCO,
module ByteCodeAsm (
assembleBCOs, assembleBCO,
diff --git
a/compiler/utils/Encoding.hs
b/compiler/utils/Encoding.hs
index
336d9f0
..
84b4e09
100644
(file)
--- 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
{-# 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
(file)
--- a/
compiler/utils/FastMutInt.lhs
+++ b/
compiler/utils/FastMutInt.lhs
@@
-1,4
+1,5
@@
\begin{code}
\begin{code}
+{-# LANGUAGE BangPatterns #-}
{-# OPTIONS -cpp #-}
{-# OPTIONS_GHC -O #-}
-- We always optimise this, otherwise performance of a non-optimised
{-# 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
(file)
--- a/
compiler/utils/FastString.lhs
+++ b/
compiler/utils/FastString.lhs
@@
-2,6
+2,7
@@
% (c) The University of Glasgow, 1997-2006
%
\begin{code}
% (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
{-# OPTIONS -fno-warn-unused-imports #-}
-- XXX GHC 6.9 seems to be confused by unpackCString# being used only in
-- a RULE