]> git.rkrishnan.org Git - functorrent.git/commit
src/Main.hs: if no input file is given, read from stdin
authorRamakrishnan Muthukrishnan <ram@rkrishnan.org>
Sun, 19 Jul 2015 08:58:32 +0000 (14:28 +0530)
committerRamakrishnan Muthukrishnan <ram@rkrishnan.org>
Sun, 19 Jul 2015 08:58:32 +0000 (14:28 +0530)
commit7c51ac500bf453cfdcd25c40ba7690a753b94f38
tree8154b5f6d9178037f3306c43ca83fc0a63e08904
parent639dfd61fe8cbecac6f447c45dbb7f4f7263c904
src/Main.hs: if no input file is given, read from stdin

This change makes it play nicely as a Unix program that consumes
streams of bytes. One possible usage is to do a 'curl' of the torrent
file and pipe into the functorrent program.
src/Main.hs