From ed04aed2b2d87d605c1cd13161bd3511e43c9452 Mon Sep 17 00:00:00 2001 From: Sylvain Henry Date: Fri, 11 Mar 2022 16:52:37 +0100 Subject: Hadrian: use IntSet Binary instance for Way (#19209) --- hadrian/src/Way/Type.hs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hadrian/src/Way/Type.hs b/hadrian/src/Way/Type.hs index 257fce8c47..5945d48137 100644 --- a/hadrian/src/Way/Type.hs +++ b/hadrian/src/Way/Type.hs @@ -42,8 +42,8 @@ instance Read WayUnit where newtype Way = Way IntSet instance Binary Way where - put = put . show - get = fmap read get + put (Way w) = put w + get = Way <$> get instance Hashable Way where hashWithSalt salt = hashWithSalt salt . show -- cgit v1.2.1