27 Aug 20:20
Haskell symbol ~
From: Maurício <briqueabraque <at> yahoo.com>
Subject: Haskell symbol ~
Newsgroups: gmane.comp.lang.haskell.cafe
Date: 2008-08-27 18:23:40 GMT
Subject: Haskell symbol ~
Newsgroups: gmane.comp.lang.haskell.cafe
Date: 2008-08-27 18:23:40 GMT
Hi, What does '~' mean in Haskell? I read in haskell.org/haskellwiki/Keywords that “(...) Matching the pattern ~pat against a value always suceeds, and matching will only diverge when one of the variables bound in the pattern is used.” Isn't that true for any variable, due to lazyness? At the same place, I found that example, but wasn't wise enough to figure out what it does: (f *** g) ~(x,y) = (f x, g y) Can you help me understand it? Thanks, Maurício
> I also got a
> few wrong default links (I just created +++ inside
> <haskell></haskell> and it links to something that
> doesn't exist).
I wouldn't worry about that, I think its a bug in the wiki software.
Does anyone know who our wiki software guru is? Perhaps wiki links
should point at Hoogle, rather than using its own (obviously
imperfect) database?
Thanks
Neil
RSS Feed