Commit 5c4f8120 authored by Erik de Castro Lopo's avatar Erik de Castro Lopo
Browse files

Add Distribution.Compat.Map.Strict

This papers over the differences between Data.Map in containers
0.4.* and Data.Map.Strict in containers 0.5.*.
parent 8c4759de
......@@ -131,6 +131,7 @@ library
Distribution.Compat.Exception
Distribution.Compat.Graph
Distribution.Compat.Internal.TempFile
Distribution.Compat.Map.Strict
Distribution.Compat.Prelude.Internal
Distribution.Compat.ReadP
Distribution.Compat.Semigroup
......
{-# LANGUAGE CPP #-}
module Distribution.Compat.Map.Strict
( module X
#if MIN_VERSION_containers(0,5,0)
#else
, insertWith
#endif
) where
#if MIN_VERSION_containers(0,5,0)
import Data.Map.Strict as X
#else
import Data.Map as X hiding (insertWith, insertWith')
import qualified Data.Map
insertWith :: Ord k => (a -> a -> a) -> k -> a -> Map k a -> Map k a
insertWith = Data.Map.insertWith'
#endif
......@@ -111,6 +111,7 @@ module Distribution.Simple.PackageIndex (
import Prelude ()
import Distribution.Compat.Prelude hiding (lookup)
import qualified Distribution.Compat.Map.Strict as Map
import Distribution.Package
import Distribution.Backpack
......@@ -125,7 +126,6 @@ import Data.Array ((!))
import qualified Data.Array as Array
import qualified Data.Graph as Graph
import Data.List as List ( groupBy, deleteBy, deleteFirstsBy )
import qualified Data.Map.Strict as Map
import qualified Data.Tree as Tree
-- | The collection of information about packages from one or more 'PackageDB's.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment