michael rice wrote: > I'm trying to understand Map type for possible use in another problem I'm > working on, but am stymied right off the bat. > > ==========Here's my source: > > import Data.Map (Map) > import qualified Data.Map as Map > > *Main> fromList $ zip l1 l2 > > <interactive>:1:0: Not in scope: `fromList'
You imported map "qualified as Map", that means that only 'Map.fromList' and 'Data.Map.fromList' are in scope, and not 'fromList'. The reason one normally does it like this is that a lot of function names clash with the Prelude (on purpose). Normally one uses "qualified as M" or "qualified as Map" to shorten the notation. HTH, -- Jochem Berndsen | joc...@functor.nl GPG: 0xE6FABFAB _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe