nntp2http.com
Posting
Suche
Optionen
Hilfe & Kontakt

(>>=), woher und wohin?

Von: Georg Bauhaus (see.reply.to@maps.futureapps.de) [Profil]
Datum: 21.09.2008 20:24
Message-ID: <48d6914c$0$6659$9b4e6d93@newsspool2.arcor-online.net>
Newsgroup: de.comp.lang.funktional
Haskell-Frage:

(getChar >>= putChar) ist typkorrekt.

(getChar >>= (\c -> putChar c)) ist auch typkorrekt.
Darüber hinaus löst dieser Ausdruck bei Hugs die Aktionen aus,
die ich erwarte: Hugs liest ein Zeichen von der Eingabe und
schreibt es in die Ausgabe.

(getChar >>= putChar) macht auch was. Aber was geht da vor?


--
Georg Bauhaus
Y A Time Drain  http://www.9toX.de

[ Auf dieses Posting antworten ]

Antworten