scheme monads and bind vs compose



How do Haskells notions of >>=, run and return map into widespread
scheme constructs like compose, apply and values?

I'm guess I'm looking for a clean, schemish way to deal with monadic
side-effects using existing scheme procedures like delay, force, and
compose. (Am I right in assuming that compose always calls its
arguments rtl since call-with-values needs to extract the values from
the rightmost function application before passing it on, and that
compose is implicitly delayed since a call to compose yields a
procedure, not the results of a procedure application?)

Can Haskells bind be approximated using let* or begin for >> and
function composition (either explicitly or via compose) for >>=? What
are the risks in doing so?

I'm looking at, and grokking (I think), http://okmij.org/ftp/Scheme/monad-in-Scheme.html
and Message-ID: <slrnc3781u.oor.neelk@xxxxxxxxxxxxxxxxxxxx> over in
CLF, both which strikes me as too alien from Scheme; I'd like to use
the general compose instead of >>=, IO->>- and so on.

I've spent the day looking at monads and mostly it seems to me to be
kind of similar to a program I wrote last fall --
http://munnen.handgranat.org/Sunnan/slt.scm (noteably the last line.)
extract and rename have side-effects. Is this a style of programming I
should move from or can it work?

Am I missing something?

Sunnan

.



Relevant Pages

  • Re: Field Effect Modulator
    ... Evidently the original poster is intellectually too limited to realize ... array radar' and other phased array sensing systems. ... Seriously, a physics newsgroup needs a qualified, dedicated moderator ...
    (sci.physics)
  • Re: Damn you, FEDEX! or Nikon D40 lost in Springfield, MO blackhole.
    ... the 2 mp Mavica he had been using with a Nikon D40. ... After shopping around, he got me to order one for him. ... The shipper had it insured, but from what I have read it could take weeks to sort this crap out. ... You may get your insurance from FedEx and a couple weeks later they find it and deliver it. ...
    (alt.photography)
  • Re: The Sci-Fi Rejection Letter That Time Forgot
    ... nations have stockpiled arsenals of these incredible bombs and the time the story is set. ...
    (rec.arts.sf.written)
  • RE: copied music cds have a skip in last 18 seconds
    ... If installing all missing Windows Updates doesn't fix your problem ... xiowan.......in tucson ...
    (microsoft.public.windows.mediacenter)

Loading