[Haskell-cafe] Floating instance and pi

Paul Keir pkeir at dcs.gla.ac.uk
Fri May 29 09:46:23 EDT 2009


I'd like to make my ADT an instance of the Floating class,
but I'm not sure what to put for pi, and GHC gives a warning
without it:

Warning: No explicit method nor default method for `GHC.Float.pi'

I tried setting it to undefined, but that gives an error:

`pi' is not a (visible) method of class `Floating'

Any idea?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/haskell-cafe/attachments/20090529/a7b6f000/attachment.html

More information about the Haskell-Cafe mailing list