Skip to content

Commit

Permalink
Fix build with GHC 6.12
Browse files Browse the repository at this point in the history
  • Loading branch information
bmillwood committed Dec 17, 2012
1 parent 6fd65b7 commit 3f72127
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Cabal/Cabal.cabal
Expand Up @@ -37,7 +37,7 @@ Library
filepath >= 1 && < 1.4,
directory >= 1 && < 1.3,
process >= 1 && < 1.2,
time >= 1.4 && < 1.5,
time >= 1.1 && < 1.5,
containers >= 0.1 && < 0.6,
array >= 0.1 && < 0.5,
pretty >= 1 && < 1.2,
Expand Down
5 changes: 1 addition & 4 deletions Cabal/Distribution/Simple/BuildTarget.hs
Expand Up @@ -55,7 +55,6 @@ import Data.Maybe
import Data.Either
( partitionEithers )
import qualified Data.Map as Map
import Data.Map (Map)
import Control.Monad
import qualified Distribution.Compat.ReadP as Parse
import Distribution.Compat.ReadP
Expand Down Expand Up @@ -884,7 +883,7 @@ matchExactly xs =
-- function, then we would get case insensitive matching (but it will still
-- report an exact match when the case matches too).
--
matchInexactly :: forall a a' b. (Ord a, Ord a') =>
matchInexactly :: (Ord a, Ord a') =>
(a -> a') ->
[(a, b)] -> (a -> Match b)
matchInexactly cannonicalise xs =
Expand All @@ -894,11 +893,9 @@ matchInexactly cannonicalise xs =
Just ys -> inexactMatches ys
Nothing -> matchZero
where
m :: Ord a => Map a [b]
m = Map.fromListWith (++) [ (k,[x]) | (k,x) <- xs ]

-- the map of canonicalised keys to groups of inexact matches
m' :: Ord a' => Map a' [b]
m' = Map.mapKeysWith (++) cannonicalise m


Expand Down

0 comments on commit 3f72127

Please sign in to comment.