Yeah, it would. But I always write code like that, it feels ungainly... writing super-long, case-by-case instance declarations (So that I can add in one little caveat at the end, or something), and stuff. Makes me feel like I must be dumb!
Nathan Holden wrote:
[snip]
My question, however, boils primarily down to this: Is there a way to make
Foo :: Note -> Note -> Int
Foo a b = a-b
work?
Would a function
Bar :: Note -> Int
make writing Foo easier?
- Derek