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 <thedward@barsoom.net> wrote:

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

On Thu, May 19, 2011 at 11:03, michael rice <nowgate@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.