[Haskell-cafe] Way to implement toFloat :: (Num a) => a -> Float
allbery.b at gmail.com
Thu Dec 12 19:28:00 UTC 2013
On Thu, Dec 12, 2013 at 2:19 PM, EatsKittens
<temporalabstraction at gmail.com>wrote:
> Is there a way to add a method to a typeclass like num to implement this
> concept? A function that converts any number to floats?
What does it mean for (Complex Double)?
What does it mean for (a -> a) (NumInstances)?
brandon s allbery kf8nh sine nomine associates
allbery.b at gmail.com ballbery at sinenomine.net
unix, openafs, kerberos, infrastructure, xmonad http://sinenomine.net
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Haskell-Cafe