Reduce eagerness of linesR
Reduce eagerness of linesR

The current implementation of linesR evaluates its arguments too early, wasting
system resources unnecessarily and creating a risk of user-unexpected Exceptions
being thrown. This commit fixes that, to the extent possible, by delaying
resource-opening and allowing resources to be re-opened when we know how.

refried/scalaz-stream,djspiewak/scalaz-stream,jedesah/scalaz-stream,sellout/scalaz-stream,lukiano/scalaz-stream,japgolly/scalaz-stream,kanterov/scalaz-stream,runarorama/scalaz-stream,shawjef3/scalaz-stream,FranklinChen/scalaz-stream,zaneli/fs2,jaapterwoerds/scalaz-stream,drostron/scalaz-stream,fthomas/scalaz-stream,arzig/scalaz-stream,danbills/scalaz-stream,rossabaker/scalaz-stream,lowtalker/scalaz-stream