[Haskell-beginners] Intervals?

Nathan Holden nathanmholden at gmail.com
Tue May 19 15:07:26 EDT 2009


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!

On Tue, May 19, 2009 at 2:54 PM, Derek Gladding <derek at ebollocks.net> wrote:

> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/beginners/attachments/20090519/c7112916/attachment.html


More information about the Beginners mailing list