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 <thedw...@barsoom.net> wrote: From: Thedward Blevins <thedw...@barsoom.net> Subject: Re: [Haskell-cafe] Trying to return a map from State monad To: "michael rice" <nowg...@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 <nowg...@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.
_______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe