[Haskell-cafe] Way to implement toFloat :: (Num a) => a -> Float

EatsKittens temporalabstraction at gmail.com
Thu Dec 12 19:19:35 UTC 2013


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?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/haskell-cafe/attachments/20131212/8acfcbca/attachment.html>


More information about the Haskell-Cafe mailing list