<div dir="ltr">Thanks a lot.馃檪<br></div><div class="gmail_extra"><br><div class="gmail_quote">On 15 February 2017 at 17:30, <span dir="ltr"><<a href="mailto:beginners-request@haskell.org" target="_blank">beginners-request@haskell.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Send Beginners mailing list submissions to<br>
聽 聽 聽 聽 <a href="mailto:beginners@haskell.org">beginners@haskell.org</a><br>
<br>
To subscribe or unsubscribe via the World Wide Web, visit<br>
聽 聽 聽 聽 <a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners" rel="noreferrer" target="_blank">http://mail.haskell.org/cgi-<wbr>bin/mailman/listinfo/beginners</a><br>
or, via email, send a message with subject or body 'help' to<br>
聽 聽 聽 聽 <a href="mailto:beginners-request@haskell.org">beginners-request@haskell.org</a><br>
<br>
You can reach the person managing the list at<br>
聽 聽 聽 聽 <a href="mailto:beginners-owner@haskell.org">beginners-owner@haskell.org</a><br>
<br>
When replying, please edit your Subject line so it is more specific<br>
than "Re: Contents of Beginners digest..."<br>
<br>
<br>
Today's Topics:<br>
<br>
聽 聽1.聽 OPERATOR OVERLOADING AS IN C++ (Praveen Velliengiri)<br>
聽 聽2. Re:聽 OPERATOR OVERLOADING AS IN C++ (Francesco Ariis)<br>
<br>
<br>
------------------------------<wbr>------------------------------<wbr>----------<br>
<br>
Message: 1<br>
Date: Tue, 14 Feb 2017 18:21:37 +0530<br>
From: Praveen Velliengiri <<a href="mailto:praveenvelliengiri@gmail.com">praveenvelliengiri@gmail.com</a>><br>
To: <a href="mailto:beginners@haskell.org">beginners@haskell.org</a><br>
Subject: [Haskell-beginners] OPERATOR OVERLOADING AS IN C++<br>
Message-ID:<br>
聽 聽 聽 聽 <CAL56b7SMDdF+doiqyLxTM85Tgv+<wbr>R=<a href="mailto:ooMrP2TaLmAHSuaBtOo%2BA@mail.gmail.com">ooMrP2TaLmAHSuaBtOo+A@mail.<wbr>gmail.com</a>><br>
Content-Type: text/plain; charset="utf-8"<br>
<br>
I'm new to functional programming, Whether it is possible to do operator<br>
overloading聽 in Haskell ? I go through the Idea of TYPECLASSES in Learn you<br>
haskell tutorial. But I can't understand the idea Can anyone suggest me<br>
some idea regarding Operator overloading and Type classes in Haskell.<br>
Thank you guys<br>
聽Praveen v<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<a href="http://mail.haskell.org/pipermail/beginners/attachments/20170214/ef255a81/attachment-0001.html" rel="noreferrer" target="_blank">http://mail.haskell.org/<wbr>pipermail/beginners/<wbr>attachments/20170214/ef255a81/<wbr>attachment-0001.html</a>><br>
<br>
------------------------------<br>
<br>
Message: 2<br>
Date: Tue, 14 Feb 2017 14:18:19 +0100<br>
From: Francesco Ariis <<a href="mailto:fa-ml@ariis.it">fa-ml@ariis.it</a>><br>
To: <a href="mailto:beginners@haskell.org">beginners@haskell.org</a><br>
Subject: Re: [Haskell-beginners] OPERATOR OVERLOADING AS IN C++<br>
Message-ID: <20170214131819.GA3107@casa.<wbr>casa><br>
Content-Type: text/plain; charset=utf-8<br>
<br>
On Tue, Feb 14, 2017 at 06:21:37PM +0530, Praveen Velliengiri wrote:<br>
> I'm new to functional programming, Whether it is possible to do operator<br>
> overloading聽 in Haskell ? I go through the Idea of TYPECLASSES in Learn you<br>
> haskell tutorial. But I can't understand the idea Can anyone suggest me<br>
> some idea regarding Operator overloading and Type classes in Haskell.<br>
> Thank you guys<br>
<br>
Hello Praveen,<br>
<br>
聽 聽 indeed Haskell uses typeclasses to deal with ad hoc polymorphism.<br>
Are you familiar with any of them? If I write in ghci:<br>
<br>
聽 聽 位> show 707<br>
聽 聽 "707"<br>
聽 聽 位> show True<br>
聽 聽 "True"<br>
聽 聽 位> show 'c'<br>
聽 聽 "'c'"<br>
聽 聽 位> show "palla"<br>
聽 聽 "\"palla\""<br>
<br>
that is possible because numerous types are instances of the typeclass<br>
Show, which provides `show`<br>
<br>
聽 聽 位> :t show<br>
聽 聽 show :: Show a => a -> String<br>
<br>
Does that help a bit? Or you aren't sure about the typeclass syntax?<br>
<br>
<br>
------------------------------<br>
<br>
Subject: Digest Footer<br>
<br>
______________________________<wbr>_________________<br>
Beginners mailing list<br>
<a href="mailto:Beginners@haskell.org">Beginners@haskell.org</a><br>
<a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners" rel="noreferrer" target="_blank">http://mail.haskell.org/cgi-<wbr>bin/mailman/listinfo/beginners</a><br>
<br>
<br>
------------------------------<br>
<br>
End of Beginners Digest, Vol 104, Issue 9<br>
******************************<wbr>***********<br>
</blockquote></div><br></div>