Hi,

Am Dienstag, den 24.10.2006, 00:44 +0300 schrieb Misha Aizatulin:
> hello all,
> 
>    why is it not possible to use guards in do-expressions like
> 
>        do
>          (a, b) | a == b <- getPair
>          return "a and b are equal"

Probably because it is not well-defined for all Monad what a failure is,
i.e. what to do in the other case. or something. Just my guess.

Greetings,
Joachim
-- 
Joachim "nomeata" Breitner
  mail: [EMAIL PROTECTED] | ICQ# 74513189 | GPG-Key: 4743206C
  JID: [EMAIL PROTECTED] | http://www.joachim-breitner.de/
  Debian Developer: [EMAIL PROTECTED]
_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to