
15 Jan
2007
15 Jan
'07
4:21 a.m.
2007/1/15, Stefan O'Rear
On Mon, Jan 15, 2007 at 10:09:10AM +0100, Stefan Aeschbacher wrote:
Hi
I sometimes have a function definition similar to this:
myFunction x@(Constructor1 _ _ _ _ _ _) = ... myFunction x@(Constructor2 _ _ _ _ _ _ _ _) = ...
myFunction x@Constructor1{} = ... myFunction x@Constructor2{} = ...
this works even for non-record types
I didnt know about the possibilty to use {}. This solves my problem quite nicely. thanks