mirror of
https://github.com/tfausak/witch.git
synced 2024-11-26 09:43:03 +03:00
Update src/lib/Witch/Instances.hs
This commit is contained in:
parent
aac3a0e755
commit
88bc4efd9d
@ -908,7 +908,7 @@ instance From.From Rational Float where
|
||||
instance From.From Rational Double where
|
||||
from = fromRational
|
||||
|
||||
-- | TODO
|
||||
-- | Uses `fromRational` as long as there isn't a loss of precision.
|
||||
instance Fixed.HasResolution a => TryFrom.TryFrom Rational (Fixed.Fixed a) where
|
||||
tryFrom = Utility.eitherTryFrom $ \s ->
|
||||
let t = fromRational s :: Fixed.Fixed a
|
||||
|
Loading…
Reference in New Issue
Block a user