EatsKittens <temporalabstraction@gmail.com> writes:Does the following do what you expect?
> 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?
>
realToFrac :: (Fractional b, Real a) => a -> b
realToFrac' :: (Real a) => a -> Float
realToFrac' = realToFrac :: (Real a) => a -> Float
Cheers,
- Ben