From 36b9a1ddbddf1477c61809d340cd0b86360a7a83 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roman=20Smr=C5=BE?= Date: Sun, 20 Dec 2020 21:47:22 +0100 Subject: Network: STM-based synchronization rewrite --- src/Storage/Internal.hs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/Storage/Internal.hs') diff --git a/src/Storage/Internal.hs b/src/Storage/Internal.hs index e4e4f00..a625efb 100644 --- a/src/Storage/Internal.hs +++ b/src/Storage/Internal.hs @@ -71,6 +71,9 @@ data StorageBacking c newtype RefDigest = RefDigest (Digest Blake2b_256) deriving (Eq, Ord, NFData, ByteArrayAccess) +instance Show RefDigest where + show = BC.unpack . showRefDigest + data Ref' c = Ref (Storage' c) RefDigest deriving (Eq) -- cgit v1.2.3