"I have a
Float but want a
Double". Or: I have a
String but want a
Usually one can find the right function via Hoogle:
However, a more convenient option is to use the
Witch library, which abstracts coercions using a single function, called
Only needed if you aren't using GHC2021.
This is a library for performing coercions.
The use of the
@Doublehere directs helps the type checker infer the output type of
into. Only needed if you don't supply the type signature
double :: Double.
Created: August 18, 2022