mirror of
https://github.com/github/semantic.git
synced 2024-12-27 00:44:57 +03:00
Revert "📝 showRational
."
This reverts commit eff9eb21f0b91f4abc58624268cfd51233424511.
This commit is contained in:
parent
8e45e5973d
commit
a3ba420fb4
@ -127,7 +127,6 @@ instance ToMarkup a => ToMarkup (Renderable (Bool, Int, a)) where
|
||||
<> td (toMarkup line) ! A.class_ (stringValue $ if hasChanges then "blob-code blob-code-replacement" else "blob-code")
|
||||
<> string "\n"
|
||||
|
||||
-- | Show round `Rational` values as equivalent `Integer`s, falling back to the `Show` instance for other values.
|
||||
showRational :: Rational -> String
|
||||
showRational n = maybe (show n) show (toRoundIntegral n)
|
||||
where toRoundIntegral :: Rational -> Maybe Integer
|
||||
|
Loading…
Reference in New Issue
Block a user