summaryrefslogtreecommitdiff
path: root/src/Data/Torrent.hs
diff options
context:
space:
mode:
authorSam Truzjan <pxqr.sta@gmail.com>2013-11-28 06:42:10 +0400
committerSam Truzjan <pxqr.sta@gmail.com>2013-11-28 06:42:10 +0400
commit32027c2d4392fb6964bafe3aaf6d427e5d827d21 (patch)
tree3c58da15d8c7a4b84c9dbe19ac22eb5e6ffed4a8 /src/Data/Torrent.hs
parentfc4ed85a313f93b4fb0c46b500ee12c38e94df68 (diff)
Hide InfoHash constructor
Diffstat (limited to 'src/Data/Torrent.hs')
-rw-r--r--src/Data/Torrent.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Data/Torrent.hs b/src/Data/Torrent.hs
index 59f11814..8411dc97 100644
--- a/src/Data/Torrent.hs
+++ b/src/Data/Torrent.hs
@@ -142,7 +142,7 @@ infoDictionary :: LayoutInfo -> PieceInfo -> Bool -> InfoDict
142infoDictionary li pinfo private = InfoDict ih li pinfo private 142infoDictionary li pinfo private = InfoDict ih li pinfo private
143 where 143 where
144 ih = IH.hashlazy $ encode $ InfoDict fake_ih li pinfo private 144 ih = IH.hashlazy $ encode $ InfoDict fake_ih li pinfo private
145 fake_ih = InfoHash "" 145 fake_ih = "0123456789012345678901234567890123456789"
146 146
147getPrivate :: Get Bool 147getPrivate :: Get Bool
148getPrivate = (Just True ==) <$>? "private" 148getPrivate = (Just True ==) <$>? "private"