google-code-export / omega

Automatically exported from code.google.com/p/omega
Other
2 stars 0 forks source link

@ syntax more restrictive than Haskell's #22

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Defining an equality to capture the whole pattern and its parts is possible
in Omega like this

bar (foo@Foo) = ...

Note the parens around the @-pattern.

In Haskell the parens are not needed.

Original issue reported on code.google.com by ggr...@gmail.com on 23 Jul 2007 at 1:47