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

--- On Thu, 5/19/11, Thedward Blevins <[email protected]> wrote:

From: Thedward Blevins <[email protected]>
Subject: Re: [Haskell-cafe] Trying to return a map from State monad
To: "michael rice" <[email protected]>
Cc: [email protected]
Date: Thursday, May 19, 2011, 12:22 PM

On Thu, May 19, 2011 at 11:03, michael rice <[email protected]> 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.
_______________________________________________
Haskell-Cafe mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to