[Git][ghc/ghc][master] Add Outputable instances for Float, Double.

Marge Bot gitlab at gitlab.haskell.org
Fri Jun 14 03:36:37 UTC 2019



 Marge Bot pushed to branch master at Glasgow Haskell Compiler / GHC


Commits:
3bc6df32 by Andreas Klebinger at 2019-06-14T03:36:34Z
Add Outputable instances for Float, Double.

- - - - -


1 changed file:

- compiler/utils/Outputable.hs


Changes:

=====================================
compiler/utils/Outputable.hs
=====================================
@@ -813,6 +813,12 @@ instance Outputable Word32 where
 instance Outputable Word where
     ppr n = integer $ fromIntegral n
 
+instance Outputable Float where
+    ppr f = float f
+
+instance Outputable Double where
+    ppr f = double f
+
 instance Outputable () where
     ppr _ = text "()"
 



View it on GitLab: https://gitlab.haskell.org/ghc/ghc/commit/3bc6df3223f62a8366e2e4267bac23aa08e6a939

-- 
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/commit/3bc6df3223f62a8366e2e4267bac23aa08e6a939
You're receiving this email because of your account on gitlab.haskell.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/ghc-commits/attachments/20190613/27e0d42a/attachment-0001.html>


More information about the ghc-commits mailing list