From ffd12b9a17dfdffef8ca4dd215e5c081d9b082fa Mon Sep 17 00:00:00 2001
From: Simon Marlow <marlowsd@gmail.com>
Date: Tue, 20 Mar 2012 12:12:06 +0000
Subject: [PATCH] fix bug in instance HpcHash (a,b) (GHC ticket #5944)

MERGED from commit 4d661848575009bbcf3fe8e1f7c69da12f1d3a8e
---
 Trace/Hpc/Util.hs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Trace/Hpc/Util.hs b/Trace/Hpc/Util.hs
index 5bfbab9..ae88aca 100644
--- a/Trace/Hpc/Util.hs
+++ b/Trace/Hpc/Util.hs
@@ -101,7 +101,7 @@ instance HpcHash a => HpcHash [a] where
   toHash xs = foldl' (\ h c -> toHash c `hxor` (h * 33)) 5381 xs
 
 instance (HpcHash a,HpcHash b) => HpcHash (a,b) where
-  toHash (a,b) = toHash a * 33 `hxor` toHash b
+  toHash (a,b) = (toHash a * 33) `hxor` toHash b
 
 instance HpcHash HpcPos where
   toHash (P a b c d) = Hash $ fromIntegral $ a * 0x1000000 + b * 0x10000 + c * 0x100 + d
-- 
GitLab