> getPct(0.5)
'50%'
> getPct(100)
TypeError: Invalid value
getPct :: Ratio -> String
^^^^^
1
1) 100 :: Number
The value at position 1 is not a member of ‘Ratio’.
See https://package.url.io/Ratio for information about the package-name/Ratio type.