[Haskell-cafe] Problem with own written monad

Michael Roth mroth at nessie.de
Mon Jan 7 18:29:19 EST 2008


Miguel Mitrofanov schrieb:

> May be you can explain what do you want to do with this "monad"?

Pure educational purpose, just "learning by doing".


> What kind of code would you write if it would be such monad?

Useless stuff like:

	s2 = do
	  push 11
	  push 17
	  count >>= push
	  binop (+)
	  binop (*)
	  pop




More information about the Haskell-Cafe mailing list