summaryrefslogtreecommitdiff
path: root/Announcer.hs
diff options
context:
space:
mode:
Diffstat (limited to 'Announcer.hs')
-rw-r--r--Announcer.hs3
1 files changed, 3 insertions, 0 deletions
diff --git a/Announcer.hs b/Announcer.hs
index 72d70a1e..c66d26b4 100644
--- a/Announcer.hs
+++ b/Announcer.hs
@@ -40,6 +40,9 @@ import qualified GHC.Generics as Generics
40newtype AnnounceKey = AnnounceKey ByteString 40newtype AnnounceKey = AnnounceKey ByteString
41 deriving (Hashable,Ord,Eq) 41 deriving (Hashable,Ord,Eq)
42 42
43instance Show AnnounceKey where
44 show (AnnounceKey bs) = "AnnounceKey " ++ show (Char8.unpack bs)
45
43packAnnounceKey :: Announcer -> String -> STM AnnounceKey 46packAnnounceKey :: Announcer -> String -> STM AnnounceKey
44packAnnounceKey _ = return . AnnounceKey . Char8.pack 47packAnnounceKey _ = return . AnnounceKey . Char8.pack
45 48