summaryrefslogtreecommitdiff
path: root/examples/MkTorrent.hs
diff options
context:
space:
mode:
Diffstat (limited to 'examples/MkTorrent.hs')
-rw-r--r--examples/MkTorrent.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/MkTorrent.hs b/examples/MkTorrent.hs
index 58e14af1..871343f9 100644
--- a/examples/MkTorrent.hs
+++ b/examples/MkTorrent.hs
@@ -29,7 +29,7 @@ import System.FilePath
29import System.Log 29import System.Log
30import System.Log.Logger 30import System.Log.Logger
31import Text.Read 31import Text.Read
32import Text.PrettyPrint.Class 32import Text.PrettyPrint.HughesPJClass hiding ((<>),($$))
33 33
34import Paths_bittorrent (version) 34import Paths_bittorrent (version)
35import Data.Torrent hiding (Magnet (Magnet)) 35import Data.Torrent hiding (Magnet (Magnet))
@@ -308,7 +308,7 @@ showInfo = info (helper <*> parser) modifier
308showTorrent :: ShowOpts -> Torrent -> ShowS 308showTorrent :: ShowOpts -> Torrent -> ShowS
309showTorrent ShowOpts {..} torrent 309showTorrent ShowOpts {..} torrent
310 | infoHashOnly = shows $ idInfoHash (tInfoDict torrent) 310 | infoHashOnly = shows $ idInfoHash (tInfoDict torrent)
311 | otherwise = shows $ pretty torrent 311 | otherwise = shows $ pPrint torrent
312 312
313putTorrent :: ShowOpts -> IO () 313putTorrent :: ShowOpts -> IO ()
314putTorrent opts @ ShowOpts {..} = do 314putTorrent opts @ ShowOpts {..} = do