(>>=), 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
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
- Stefan Ram (21.09.2008 20:57)
- Georg Bauhaus (22.09.2008 15:04)
- Florian Weimer (22.09.2008 15:36)
- Georg Bauhaus (22.09.2008 16:23)
- Sjon (21.09.2008 21:07)
- Georg Bauhaus (22.09.2008 14:51)
- Stefan 'Wichtigtuer' Scholl (22.09.2008 08:41)
- Georg Bauhaus (22.09.2008 14:30)
