]> git.rkrishnan.org Git - functorrent.git/commit
Peer: refactor pickPiece function
authorRamakrishnan Muthukrishnan <ram@rkrishnan.org>
Fri, 4 Sep 2015 06:15:39 +0000 (11:45 +0530)
committerRamakrishnan Muthukrishnan <ram@rkrishnan.org>
Fri, 4 Sep 2015 06:25:35 +0000 (11:55 +0530)
commit205bce74b5786543949b162203a6e8e61e72f5f9
treebca9e6d8b073ae81b8c30ee94e0ac190844a7bd9
parent09d886b5980cf3bee327dcf0b57b5209dcb4237d
Peer: refactor pickPiece function

Use the headMay from the Safe package to get a Maybe list head and
lift fst to Maybe to get the key.
functorrent.cabal
src/FuncTorrent/Peer.hs