[Liskell-devel] do special form

Jason Miller aidenn0 at yahoo.com
Tue Sep 18 22:37:44 CEST 2007


I can't seem to find any equivalent of the liskell "do" special form in liskell.

For a trivial example:

do
 c <- getChar
 putChar c
 putChar 'a'

liskell equivalent is

(>> (>>= (getChar) (putChar)) (putChar #\a) )


It would be nice to do something like

(do
  (<- c getChar)
  (putChar c)
  (putChar #\a))

It would seem possible to do something like this with a PTT.  Is anyone working on something like this before I dive in?


-Jason



       
____________________________________________________________________________________
Need a vacation? Get great deals
to amazing places on Yahoo! Travel.
http://travel.yahoo.com/


More information about the Liskell-devel mailing list