[Haskell-beginners] Intervals?

Edward Z. Yang ezyang at MIT.EDU
Tue May 19 15:16:36 EDT 2009


Excerpts from nathanmholden's message of Tue May 19 15:07:26 -0400 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!

It seems to me, in this particular case, that you don't actually want an
algebraic datatype (which seems to be what you're implementation is using).

Cheers,
Edward


More information about the Beginners mailing list