[Haskell-cafe] Way to implement toFloat :: (Num a) => a -> Float
Brandon Allbery
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...
URL: <http://www.haskell.org/pipermail/haskell-cafe/attachments/20131212/b1270395/attachment.html>
More information about the Haskell-Cafe
mailing list