
Thanks, all.
Just tried
type Bindings = Map.Map String Int
and it also seems to work.
Michael
--- On Thu, 12/30/10, Pedro Vasconcelos
Not sure what's going on here. Doesn't like line 5, the type statement. And what's with the semicolons in that line and in function main?
import Control.Monad.Reader import qualified Data.Map as Map import Data.Maybe
type Bindings = Map String Int;
. The right hand side should be "Map.Map String Int"; alternatively add an unqualified import above for just the Map type:
import Data.Map(Map)
The semicolon is optional---the layout rule will insert it if you leave it out. Pedro _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe