[commit: ghc] master: Add obvious Outputable Integer instance. (b241d6d)
git at git.haskell.org
git at git.haskell.org
Mon Nov 27 15:21:42 UTC 2017
Repository : ssh://git@git.haskell.org/ghc
On branch : master
Link : http://ghc.haskell.org/trac/ghc/changeset/b241d6db1a8155fc939700f01cc2fa5f89906f34/ghc
>---------------------------------------------------------------
commit b241d6db1a8155fc939700f01cc2fa5f89906f34
Author: klebinger.andreas at gmx.at <klebinger.andreas at gmx.at>
Date: Mon Nov 27 09:46:32 2017 -0500
Add obvious Outputable Integer instance.
Reviewers: bgamari
Reviewed By: bgamari
Subscribers: rwbarton, thomie
Differential Revision: https://phabricator.haskell.org/D4232
>---------------------------------------------------------------
b241d6db1a8155fc939700f01cc2fa5f89906f34
compiler/utils/Outputable.hs | 3 +++
1 file changed, 3 insertions(+)
diff --git a/compiler/utils/Outputable.hs b/compiler/utils/Outputable.hs
index 95960f5..3050fa1 100644
--- a/compiler/utils/Outputable.hs
+++ b/compiler/utils/Outputable.hs
@@ -788,6 +788,9 @@ instance Outputable Int64 where
instance Outputable Int where
ppr n = int n
+instance Outputable Integer where
+ ppr n = integer n
+
instance Outputable Word16 where
ppr n = integer $ fromIntegral n
More information about the ghc-commits
mailing list