[Haskell-cafe] Floating instance and pi
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
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'
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Haskell-Cafe