Skip to content

Commit

Permalink
Make GHC >= 7.2 imports conditional
Browse files Browse the repository at this point in the history
  • Loading branch information
tibbe committed Mar 15, 2013
1 parent f1bf594 commit 8990fae
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions Data/HashMap/Array.hs
Expand Up @@ -55,14 +55,18 @@ import Control.Monad.ST hiding (runST)
-- GHC 7.7 exports toList/fromList from GHC.Exts
-- In order to avoid warnings on previous GHC versions, we provide
-- an explicit import list instead of only hiding the offending symbols
import GHC.Exts ( Array#, Int(..), sizeofArray#, newArray#, copyArray#
, readArray#, writeArray#, indexArray#, thawArray#
, unsafeFreezeArray#, unsafeThawArray#, MutableArray#
, sizeofMutableArray#, copyMutableArray#)
import GHC.Exts (Array#, Int(..), newArray#, readArray#, writeArray#,
indexArray#, unsafeFreezeArray#, unsafeThawArray#,
MutableArray#)
import GHC.ST (ST(..))
import Prelude hiding (filter, foldr, length, map, read)
import qualified Prelude

#if __GLASGOW_HASKELL__ >= 702
import GHC.Exts (sizeofArray#, copyArray#, thawArray#, sizeofMutableArray#,
copyMutableArray#)
#endif

import Data.HashMap.Unsafe (runST)

------------------------------------------------------------------------
Expand Down

0 comments on commit 8990fae

Please sign in to comment.