<div dir="ltr"><div>Hi,</div><div><br></div><div>I'm trying to make sense of the type class `Read`. It feels to be like a function performing casting to me, similar to what you have in C and Java.</div><div><br></div><div>The weird thing is that the casting doesn't have to make sense, type-wise. So `read "5" :: Int` produce the integer 5 which make sense but `read "(3,'a')" :: Int` doesn't make sense to me but ghci accepts it!</div><div><br></div><div>This is seeing Read as a function, as it's a type class i suspect I'm missing something. Quite possibly quite a lot...</div><div><br></div><div>Why is the type class called `Read`?</div><div>What am I missing above?</div><div><br></div><div><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature">// Patrik Iselind</div></div></div></div>