[Haskell-beginners] type error in sub-function
Brent Yorgey
byorgey at seas.upenn.edu
Sun Feb 16 03:15:49 UTC 2014
On Sat, Feb 15, 2014 at 05:11:39PM -0600, James Toll wrote:
>
> On Feb 15, 2014, at 4:53 PM, Alexander Batischev <eual.jp at gmail.com> wrote:
>
> > Something should have just clicked in your
> > brain, and every piece fell in place, but if not, read on.
>
> Yes, the light bulb has gone on. Thanks to you and Brent. I really appreciate both of your explanations to my follow-up question. It’s almost a bit difficult to keep up with responding while reading your excellent and very helpful responses. I do think I now understand what was going on in this particular instance and why I was tricking myself. It always seems so simple in hindsight. I’m sure this won’t be the last time I get tripped up on this though. But I’m hopeful I can better reason it out going forward.
>
> Thanks again for all the extremely helpful responses.
Glad to be of help! For what it's worth, the whole
numeric-types-and-type-classes thing is definitely one of the
trickiest corners of Haskell, at least when starting out. I remember
spending a good deal of time struggling through it at first too.
-Brent
More information about the Beginners
mailing list