[Haskell-cafe] Guards with do notation?

Misha Aizatulin avatar at hot.ee
Mon Oct 23 17:44:37 EDT 2006


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"

Cheers,
   Misha


More information about the Haskell-Cafe mailing list