diff options
Diffstat (limited to 'examples/MkTorrent.hs')
-rw-r--r-- | examples/MkTorrent.hs | 4 |
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 | |||
29 | import System.Log | 29 | import System.Log |
30 | import System.Log.Logger | 30 | import System.Log.Logger |
31 | import Text.Read | 31 | import Text.Read |
32 | import Text.PrettyPrint.Class | 32 | import Text.PrettyPrint.HughesPJClass hiding ((<>),($$)) |
33 | 33 | ||
34 | import Paths_bittorrent (version) | 34 | import Paths_bittorrent (version) |
35 | import Data.Torrent hiding (Magnet (Magnet)) | 35 | import Data.Torrent hiding (Magnet (Magnet)) |
@@ -308,7 +308,7 @@ showInfo = info (helper <*> parser) modifier | |||
308 | showTorrent :: ShowOpts -> Torrent -> ShowS | 308 | showTorrent :: ShowOpts -> Torrent -> ShowS |
309 | showTorrent ShowOpts {..} torrent | 309 | showTorrent 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 | ||
313 | putTorrent :: ShowOpts -> IO () | 313 | putTorrent :: ShowOpts -> IO () |
314 | putTorrent opts @ ShowOpts {..} = do | 314 | putTorrent opts @ ShowOpts {..} = do |