<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7654.12">
<TITLE>RE: [Haskell-cafe] Floating instance and pi</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->

<P><FONT SIZE=2>Oops, I was hiding the Prelude's pi. My apologies.<BR>
<BR>
-----Original Message-----<BR>
From: Deniz Dogan [<A HREF="mailto:deniz.a.m.dogan@gmail.com">mailto:deniz.a.m.dogan@gmail.com</A>]<BR>
Sent: Fri 5/29/2009 5:01 PM<BR>
To: Paul Keir<BR>
Cc: haskell-cafe@haskell.org<BR>
Subject: Re: [Haskell-cafe] Floating instance and pi[MESSAGE NOT SCANNED]<BR>
<BR>
2009/5/29 Paul Keir &lt;pkeir@dcs.gla.ac.uk&gt;:<BR>
&gt; Hi,<BR>
&gt;<BR>
&gt; I'd like to make my ADT an instance of the Floating class,<BR>
&gt; but I'm not sure what to put for pi, and GHC gives a warning<BR>
&gt; without it:<BR>
&gt;<BR>
&gt; Warning: No explicit method nor default method for `GHC.Float.pi'<BR>
&gt;<BR>
&gt; I tried setting it to undefined, but that gives an error:<BR>
&gt;<BR>
&gt; `pi' is not a (visible) method of class `Floating'<BR>
&gt;<BR>
&gt; Any idea?<BR>
&gt;<BR>
&gt; Paul<BR>
<BR>
Are you sure that your ADT fits into the Floating class in the first<BR>
place?&nbsp; I reckon if it did, defining &quot;pi&quot; for it wouldn't be a<BR>
problem.&nbsp; Could you show us the code you have?<BR>
<BR>
--<BR>
Deniz Dogan<BR>
<BR>
</FONT>
</P>

</BODY>
</HTML>