I am new to the Haskell language and I having some issues with the read function. Precisely, I understand that:
read "8.2" + 3.8
Should return 12.0 because we want to return the same type as the second member. The thing that I don't really get is why does:
read "True" || False
Return True ? Ok, it returned the same type as False, which is Boolean, but what I don't understand is why the first member. I think I have a vague idea, like, the return function in this case will return the first member because the condition is || ? Please help me out. Also, I am sorry if this is just basic for most of you guys, but I really want to undersand it.
True OR anythingisTrue;) ... (it does not return the first member but the result of the or-operation - tryread "True" && Falseif you like)