You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The other Haskell shell libs do connect file descriptors directly.
User want to run code like this without eating up RAM:
shelly $ run "cat" ["myfile"] >>= writefile "outfile"
To implement this right now you can run a shell command directly right now. Is this approach lacking for you because you will have to append strings together?
shelly $ escaping False$ run "cat myfile > outfile"[]
Another approach besides directly hooking up file descriptors would be to provide a convenience function over runFoldLines possibly including something that makes a Conduit.
The text was updated successfully, but these errors were encountered:
I personally do not yet need these more efficient capabilities.
Anyone want to try these options, look at the source a bit, and recommend an implementation?
yeah, such an approach is better than the current system. It is hard to wrap this up in an elegant way though because runt already implies not using runHandle. We would like for the user to just be able to use combinators: run "cat" ["myfile"]redirectTo"outfile" rather than have to create a new run function.
The other Haskell shell libs do connect file descriptors directly.
User want to run code like this without eating up RAM:
To implement this right now you can run a shell command directly right now. Is this approach lacking for you because you will have to append strings together?
Another approach besides directly hooking up file descriptors would be to provide a convenience function over runFoldLines possibly including something that makes a Conduit.
The text was updated successfully, but these errors were encountered: