[Haskell-cafe] Language support for imperative code. Was: Re: monad subexpressions

Donald Bruce Stewart dons at cse.unsw.edu.au
Wed Aug 8 21:17:51 EDT 2007

> Hugh Perkins wrote:
> >On 8/8/07, *Brian Hulley* <brianh at metamilk.com 
> ><mailto:brianh at metamilk.com>> wrote:
> >
> >    In contrast, all the pure functional GUIs that I've seen...
> >
> >In defense of Haskell (wow!), note that imperative languages are not 
> >without problems in GUIs.  In a multithreaded environment,
> If you're using multiple threads you'd need to be in the IO monad to 
> create/manipulate the MVars or TVars or whatever. (In contrast to eg 
> AliceML where you could easily use a synchronising logic variable 
> without having to leave all the familiar applicative coding comforts 
> behind to brave the fiercesome lonely toil of "Monadia" ;-))

Or use purely functional channels (Chan).

-- Don

More information about the Haskell-Cafe mailing list