On Apr 14, 2008, at 23:45 , Benjamin L. Russell wrote:
hanoi_shower :: Show a => [(a, a)] -> String
hanoi_shower ((a, b) : moves)
| null moves = "Move " ++ show a ++ " to "++ show b ++ "."
| otherwise == "Move " ++ show a ++ " to "++ show b ++ "." ++
hanoi_shower moves
`==' after the `otherwise'? (I think the error involving `}' is a
side effect of the single ugliest part of Haskell syntax, which
specifies the parser inserting `}' as necessary to try to get a parse.)
--
brandon s. allbery [solaris,freebsd,perl,pugs,haskell] [EMAIL PROTECTED]
system administrator [openafs,heimdal,too many hats] [EMAIL PROTECTED]
electrical and computer engineering, carnegie mellon university KF8NH
_______________________________________________
Haskell-Cafe mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/haskell-cafe