We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The documentation of writeFile say that the handle is "crudely" managed by ResourceT. I'm curious, what is crude about this?
writeFile
ResourceT
Would using monad-control be less crude? i.e.:
monad-control
writeFile :: MonadBaseControl IO m => FilePath -> Stream (Of String) m r -> m r writeFile path stream = control (\unlift -> IO.withFile path IO.WriteMode (\handle -> unlift (toHandle handle stream)))
Thanks.
The text was updated successfully, but these errors were encountered:
I believe the crudeness is what I'm talking about in #23 - it won't always release the file handle resource as soon as it can.
Sorry, something went wrong.
Merge pull request michaelt#17 from treeowl/maps2
d075f1c
Add differently-constrained maps and mapped
No branches or pull requests
The documentation of
writeFile
say that the handle is "crudely" managed byResourceT
. I'm curious, what is crude about this?Would using
monad-control
be less crude? i.e.:Thanks.
The text was updated successfully, but these errors were encountered: