[commit: ghc] wip/ttypeable: Add reference to precedence note (f6bcb2d)

git at git.haskell.org git at git.haskell.org
Sun Jan 29 20:19:52 UTC 2017


Repository : ssh://git@git.haskell.org/ghc

On branch  : wip/ttypeable
Link       : http://ghc.haskell.org/trac/ghc/changeset/f6bcb2d96b195e5915471bbdff76a50d49a23740/ghc

>---------------------------------------------------------------

commit f6bcb2d96b195e5915471bbdff76a50d49a23740
Author: Ben Gamari <ben at smart-cactus.org>
Date:   Sun Oct 2 14:36:57 2016 -0400

    Add reference to precedence note


>---------------------------------------------------------------

f6bcb2d96b195e5915471bbdff76a50d49a23740
 libraries/base/Data/Typeable/Internal.hs | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/libraries/base/Data/Typeable/Internal.hs b/libraries/base/Data/Typeable/Internal.hs
index 870189a..4c064d6 100644
--- a/libraries/base/Data/Typeable/Internal.hs
+++ b/libraries/base/Data/Typeable/Internal.hs
@@ -335,6 +335,8 @@ typeRepXFingerprint (TypeRepX t) = typeRepFingerprint t
 
 ----------------- Showing TypeReps --------------------
 
+-- This follows roughly the precedence structure described in Note [Precedence
+-- in types].
 instance Show (TypeRep (a :: k)) where
     showsPrec = showTypeable
 



More information about the ghc-commits mailing list