deal with possibility of short read by S.hGet
authorJoey Hess <joeyh@joeyh.name>
Wed, 10 Feb 2021 02:15:33 +0000 (22:15 -0400)
committerJoey Hess <joeyh@joeyh.name>
Wed, 10 Feb 2021 02:20:05 +0000 (22:20 -0400)
commit94f6210b685cba115f45c2e580d8047c8cba23bc
treeebf5e156dfa9755e72c884dfffd76c1132bc53a9
parent62e152f2107a10a7a5c84eea01521a79b6c6da47
deal with possibility of short read by S.hGet

It may read less than requested, and may yield an empty string if the
file was somehow shorter than expected.
P2P/Annex.hs