Îõ³h$#d!      0with/bracket-style idioms for use with streamingIvan Lazar MiljenovicMITIvan.Miljenovic@gmail.comNone5streaming-withA lifted variant of .>You almost definitely don't want to use this; instead, use  in conjunction with Streaming.ByteString.streaming-withA lifted variant of .streaming-withWrite to the specified file.streaming-withAppend to the specified file.streaming-with-Apply a function to the contents of the file.:Note that a different monadic stack is allowed for the !ã input, as long as it later gets resolved to the required output type (e.g. remove transformer). streaming-withThis is " from the  temporary package >with the continuation re-structured to only take one argument.ÎCreate and use a temporary file in the system standard temporary directory.Behaves exactly the same as  Ì, except that the parent temporary directory will be that returned by #. streaming-withThis is $ from the  temporary package with the 5continuation re-structured to only take one argument.4Use a temporary filename that doesn't already exist.‹Creates a new temporary file inside the given directory, making use of the template. The temp file is deleted after use. For example: 6withTempFile "src" "sdist." $ \(tmpFile, hFile) -> ...The tmpFile. will be file in the given directory, e.g.  src/sdist.342. streaming-withFile name template. See % streaming-withTemp dir to create the file instreaming-withFile name template. See %.   7Lifted with/bracket-style idioms for use with streamingIvan Lazar MiljenovicMITIvan.Miljenovic@gmail.comNone >?ÀÉÔ×Ù8 streaming-with%Safely run the provided continuation.A result of type ()2 is required to ensure no resources are leaked.*Note that you cannot write something like: ÝcopyBoth :: FilePath -> FilePath -> FilePath -> IO () copyBoth inF1 inF2 outF = runWith $ do bs1 <- withBinaryFileContents inF1 bs2 <- withBinaryFileContents inF2 writeBinaryFile outF bs1 appendBinaryFile outF bs2as the  Õ instance cannot be inferred. As such, you will need to specify a type somewhere. streaming-withÁHow to automatically lift bracket-style expressions into a monad.œThe constraints are common ones found throughout this module, and as such incorporated into this class to avoid repetition in all the type signatures.%It is highly recommended that you do notê try and layer extra transformers on top of this; the intent of this class is just to make writing all the underlying continuations in a nicer fashion without explicit nesting, rather than as the basis of lower-level code.streaming-withÙA helper function to run a computation within a lifted resource management expression. !within w f = w >>= liftAction . fstreaming-with4A helper function for the common case of lifting an IO computation into a Withable."liftActionIO = liftAction . liftIO.streaming-withÚA helper function for the common case of throwing an exception in the underlying monad.liftThrow = liftAction . throwM.streaming-withA lifted variant of .>You almost definitely don't want to use this; instead, use  in conjunction with Streaming.ByteString.streaming-withA lifted variant of .streaming-withWrite to the specified file.streaming-withAppend to the specified file.streaming-with-Apply a function to the contents of the file.:Note that a different monadic stack is allowed for the !ã input, as long as it later gets resolved to the required output type (e.g. remove transformer).streaming-withÎCreate and use a temporary file in the system standard temporary directory.Behaves exactly the same as Ì, except that the parent temporary directory will be that returned by .streaming-with4Use a temporary filename that doesn't already exist.‹Creates a new temporary file inside the given directory, making use of the template. The temp file is deleted after use. For example: 8withTempFile "src" "sdist." >>= \(tmpFile, hFile) -> ...The tmpFile. will be file in the given directory, e.g.  src/sdist.342.streaming-withÓCreate and use a temporary directory in the system standard temporary directory.Behaves exactly the same as Ì, except that the parent temporary directory will be that returned by .streaming-with%Create and use a temporary directory.•Creates a new temporary directory inside the given directory, making use of the template. The temp directory is deleted after use. For example: 3withTempDirectory "src" "sdist." >>= \tmpDir -> ...The tmpDir< will be a new subdirectory of the given directory, e.g.  src/sdist.342.streaming-withFile name template. See .streaming-withTemp dir to create the file instreaming-withFile name template. See .streaming-with Directory name template. See .streaming-with,Temp directory to create the directory instreaming-with Directory name template. See .   &    !"#$   %&-streaming-with-0.3.0.0-Aql9wc9OzFv1xbAGDgtWYsStreaming.WithStreaming.With.Lifted System.IOwithFilewithBinaryFileSystem.IO.TempgetCanonicalTemporaryDirectory openTempFileexceptions-0.10.4Control.Monad.Catchbracket MonadMask$temporary-1.3-25tU0Lu2yz85qRV5ZPUWrjwithTempDirectorywithSystemTempDirectorywriteBinaryFileappendBinaryFilewithBinaryFileContentswithSystemTempFile withTempFile RunWithablerunWithWithable WithMonadliftWith liftActionwithin liftActionIO liftThrow$fWithableContT$fWithableManaged$fRunWithableContT$fRunWithableManaged0streaming-bytestring-0.2.1-IqUFOd2oAjK15sKcYS6cAStreaming.ByteString.Internal ByteStreambase