[commit: containers] master: Fix GHC HEAD build breakages (390a146)
Ian Lynagh
igloo at earth.li
Thu Feb 23 01:15:58 CET 2012
Repository : ssh://darcs.haskell.org//srv/darcs/packages/containers
On branch : master
http://hackage.haskell.org/trac/ghc/changeset/390a14662d98dd73256762f9d02eedb6632a250d
>---------------------------------------------------------------
commit 390a14662d98dd73256762f9d02eedb6632a250d
Author: Johan Tibell <johan.tibell at gmail.com>
Date: Wed Jan 18 08:52:26 2012 -0800
Fix GHC HEAD build breakages
GHC HEAD adds a warning for SPECIALISE pragmas that will never fire
and Data.Sequence contains such a pragma.
>---------------------------------------------------------------
Data/Sequence.hs | 12 ++++++++++++
1 files changed, 12 insertions(+), 0 deletions(-)
diff --git a/Data/Sequence.hs b/Data/Sequence.hs
index 1513bbf..5f430ab 100644
--- a/Data/Sequence.hs
+++ b/Data/Sequence.hs
@@ -5,6 +5,18 @@
#if __GLASGOW_HASKELL__ >= 703
{-# LANGUAGE Trustworthy #-}
#endif
+{-# OPTIONS_GHC -Wwarn #-}
+
+-- The above -Wwarn is due to e.g.
+--
+-- {-# INLINE deep #-}
+-- {-# SPECIALIZE INLINE deep :: Digit (Elem a) -> FingerTree (Node (Elem a))
+-- -> Digit (Elem a) -> FingerTree (Elem a) #-}
+--
+-- SPECIALISE really is wrong here. We should either specialise or
+-- inline. Not sure which is wanted. Newer GHCs will emit a warning
+-- in this case.
+
-----------------------------------------------------------------------------
-- |
-- Module : Data.Sequence
More information about the Cvs-libraries
mailing list