> But if you want to be really weird you can write something
> like (I haven't typed this in):
> 
> f x | (Foo _) == x = 
> f x | (Bar _) == x =

no, you can't, e. g. hugs (Feb 2000) says

Prelude> let f x | Just 4 == x = 0 in f (Just 4)
0
Prelude> let f x | Just _ == x = 0 in f (Just 4)
ERROR: Illegal `_' in expression

-- 
-- Johannes Waldmann ---- http://www.informatik.uni-leipzig.de/~joe/ --
-- [EMAIL PROTECTED] -- phone/fax (+49) 341 9732 204/252 --

_______________________________________________
Haskell mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/haskell

Reply via email to