[Haskell-cafe] ghc 6.4 import problem

Shiqi Cao shiqicao at gmail.com
Fri May 27 00:08:45 EDT 2005


Hi,

I tried to port some code from ghc 6.2 to ghc 6.4, but I got the
following error

PrelExts.lhs:41:25:
    Ambiguous occurrence `map'
    It could refer to either `GHC.Base.map', imported from Data.List at
PrelExts.lhs:11:0-15
                          or `Data.Set.map', imported from Data.Set at
PrelExts.lhs:10:0-14

The following is the first part of the code

module PrelExts where

import Data.FiniteMap
import Data.Set
import Data.List
import IO

There is no problem under ghc 6.2. What should I do?


Shiqi Cao


More information about the Haskell-Cafe mailing list