[Haskell-cafe] Can't access map value with key.

michael rice nowgate at yahoo.com
Sat May 21 14:32:12 CEST 2011


Duh...
Thanks, Arlen.
Michael

--- On Sat, 5/21/11, Arlen Cuss <celtic at sairyx.org> wrote:

From: Arlen Cuss <celtic at sairyx.org>
Subject: Re: [Haskell-cafe] Can't access map value with key.
To: "michael rice" <nowgate at yahoo.com>
Cc: haskell-cafe at haskell.org
Date: Saturday, May 21, 2011, 8:17 AM

On Sat, 2011-05-21 at 04:56 -0700, michael rice wrote:
> (fromList
> [(("\n","\n"),["I"]),(("\n","I"),["am"]),(("I","am"),["lost."])],("am","lost."),[])

Or splitting that out:

(fromList
[(("\n","\n"),["I"]),(("\n","I"),["am"]),(("I","am"),["lost."])],
("am","lost."),
[])

Note that it's a triple, not one map. You're printing the triple mp, the
first item of which is a map.

A
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/haskell-cafe/attachments/20110521/be23b834/attachment.htm>


More information about the Haskell-Cafe mailing list