[Haskell-beginners] Question about class declaration

Rafael Gustavo da Cunha Pereira Pinto RafaelGCPP.Linux at gmail.com
Fri Jul 24 08:41:34 EDT 2009


Hi folks,

Once in a while I stumble upon declarations like this:

class EditAction e a | e -> a where
  apply :: a -> e -> a



Why is the vertical bar there? I understand that => defines a context, but
can't find what is the "|" for.


Thanks


Rafael Gustavo da Cunha Pereira Pinto
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/beginners/attachments/20090724/79212b47/attachment.html


More information about the Beginners mailing list