[Haskell-cafe] Trying to return a map from State monad

michael rice nowgate at yahoo.com
Thu May 19 18:41:14 CEST 2011

Ok, I see I left out the "State" word.
Should be:type GeneratorState = State (Map Prefix [String],Prefix,[String])

--- On Thu, 5/19/11, Thedward Blevins <thedward at barsoom.net> wrote:

From: Thedward Blevins <thedward at barsoom.net>
Subject: Re: [Haskell-cafe] Trying to return a map from State monad
To: "michael rice" <nowgate at yahoo.com>
Cc: haskell-cafe at haskell.org
Date: Thursday, May 19, 2011, 12:22 PM

On Thu, May 19, 2011 at 11:03, michael rice <nowgate at yahoo.com> wrote:
> type GeneratorState = (Map Prefix [String],Prefix,[String])

> buildMap :: GeneratorState (Map Prefix [String])

You are trying to use a type alias (GeneratorState) as a type constructor.

There may be other problems, but that leaps out.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/haskell-cafe/attachments/20110519/7a7fc810/attachment.htm>

More information about the Haskell-Cafe mailing list