[Haskell-cafe] writer monad help
Brandon S. Allbery KF8NH
allbery at ece.cmu.edu
Fri May 18 09:14:59 EDT 2007
On May 18, 2007, at 7:32 , iskaldur wrote:
> import Control.Monad.Writer
> foo :: Writer String Int
> foo = tell "hello"
foo = tell "hello" >> return 1 -- or whatever
You declared it to return Int, you should probably produce an Int
somewhere....
--
brandon s. allbery [solaris,freebsd,perl,pugs,haskell] allbery at kf8nh.com
system administrator [openafs,heimdal,too many hats] allbery at ece.cmu.edu
electrical and computer engineering, carnegie mellon university KF8NH
More information about the Haskell-Cafe
mailing list