[Haskell-cafe] Trapped by the Monads

Mark Carter mcturra2000 at yahoo.co.uk
Tue Sep 20 14:19:40 EDT 2005


Greg Buchholz wrote:

>    Have you read...
>    
>    http://haskell.org/hawiki/ThatAnnoyingIoType
>
>  
>
Thanks. I'll take a look at it. I also need to take a look at the basic 
Haskell syntax. An interesting-looking web page which discusses monads is:
http://www.nomaware.com/monads/html/analogy.html

What struck me was this bit of code:

assemblyLine w = (return w) >>= makeChopsticks >>= polishChopsticks >>= wrapChopsticks


Interestingly, this looks like Forth (!), where you put a value on the 
stack, and successive operations fiddle with the stack as a series of 
transformations. Not that I know Forth, you understand. Hmm, so Haskell 
can be a concatenative language if you want it to be.



	
	
		
___________________________________________________________ 
Yahoo! Messenger - NEW crystal clear PC to PC calling worldwide with voicemail http://uk.messenger.yahoo.com


More information about the Haskell-Cafe mailing list