[Haskell-cafe] Problem with Data.Map

michael rice nowgate at yahoo.com
Mon Jun 8 12:42:04 EDT 2009

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

l1 = "abc"

l2 = [1,2,3]

==========Here's my error:

Prelude> :l maptest
[1 of 1] Compiling Main             ( maptest.hs, interpreted )
Ok, modules loaded: Main.
*Main> l1
Loading package syb ... linking ... done.
Loading package array- ... linking ... done.
Loading package containers- ... linking ... done.
*Main> l2
*Main> zip l1 l2
*Main> fromList $ zip l1 l2

<interactive>:1:0: Not in scope: `fromList'


Why isn't this working?


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/haskell-cafe/attachments/20090608/6b966d2b/attachment.html

More information about the Haskell-Cafe mailing list