Monads

Peter Douglass peterd@availant.com
Thu, 17 May 2001 10:30:23 -0400


I should probably mention that one doesn't need to know that a list is a
monad in order to use a list.  However, understanding that a list obeys the
monad laws is a useful way to learn about monads.

--PeterD

> -----Original Message-----
> From: Peter Douglass 
> Sent: Thursday, May 17, 2001 9:26 AM
> To: 'bedloose@hotmail.com'; haskell@haskell.org
> Subject: RE: Monads
> 
> 
> Monads are used not only for programming IO, state, 
> exceptions etc, but also
> are the foundation of lists.  It is hard to imagine 
> functional programming
> without this basic datatype.  Sets, Bags, trees etc are also 
> monads.  Phil
> Wadler wrote a very useful paper Comprehending Monads which I 
> notice is not
> found on the Haskell/bookshelf web page.  It can be found at
> 
>  http://www.cs.bell-labs.com/who/wadler/topics/monads.html
> 
> I recommend this page for anyone interested in monads.
> --PeterD
> 
> 
> > -----Original Message-----
> > From: Mads Skagen [mailto:bedloose@yahoo.dk]
> > Sent: Thursday, May 17, 2001 4:25 AM
> > To: haskell@haskell.org
> > Subject: Monads
>  
> > Hi
>  
> > I'v currently working on a school-project where I have
> > to describe the Haskell programming language.
>  
> > I've been looking through Monads and especially the IO
> > monad, the Maybe monad and the list monad
> > 
> > My question is why are monads necessary in the
> > language ?
>  
> > Is it not possible to construct the features provided
> > by Monads using basic functional constructs ?
>  
> > What do I gain using Monads ?
>  
> > Thank you very much.
>  
> > Regards Skagen
>  
> 
> _______________________________________________
> Haskell mailing list
> Haskell@haskell.org
> http://www.haskell.org/mailman/listinfo/haskell
>