X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=compiler%2Futils%2FFiniteMap.lhs;h=b3dfb2783bc1d757d9f43e3a052f7e7c32fdb5bc;hb=c54f21debd86972824443fbc874597540fff70d0;hp=55d30a88afaea9dee6075f5286cc4c0f52169152;hpb=1c7db02e2323dc4832ac6de372d2820c2c315f40;p=ghc-hetmet.git diff --git a/compiler/utils/FiniteMap.lhs b/compiler/utils/FiniteMap.lhs index 55d30a8..b3dfb27 100644 --- a/compiler/utils/FiniteMap.lhs +++ b/compiler/utils/FiniteMap.lhs @@ -18,6 +18,12 @@ The code is SPECIALIZEd to various highly-desirable types (e.g., Id) near the end. \begin{code} +{-# OPTIONS -w #-} +-- The above warning supression flag is a temporary kludge. +-- While working on this module you are encouraged to remove it and fix +-- any warnings in the module. See +-- http://hackage.haskell.org/trac/ghc/wiki/Commentary/CodingStyle#Warnings +-- for details module FiniteMap ( FiniteMap, -- abstract type @@ -673,7 +679,7 @@ When the FiniteMap module is used in GHC, we specialise it for \begin{code} #if 0 -#if __GLASGOW_HASKELL__ +#ifdef __GLASGOW_HASKELL__ {-# SPECIALIZE addListToFM :: FiniteMap (FastString, FAST_STRING) elt -> [((FAST_STRING, FAST_STRING),elt)] -> FiniteMap (FAST_STRING, FAST_STRING) elt