microlens-process 0.0.1.1 → 0.0.2.0
raw patch · 2 files changed
+3/−20 lines, 2 filesdep ~basedep ~microlensdep ~processPVP: major bump suggested
API removals or changes: PVP suggests a major version bump
Dependency ranges changed: base, microlens, process
API changes (from Hackage documentation)
- System.Process.Microlens.CreateProcess: closing :: Lens' CreateProcess StdStream -> CreateProcess -> IO ()
Files
microlens-process.cabal view
@@ -4,7 +4,7 @@ -- http://haskell.org/cabal/users-guide/ name: microlens-process-version: 0.0.1.1+version: 0.0.2.0 synopsis: Micro-optics for the process library description: 'microlens-process' is a set of multi-purpose optics and convenience@@ -20,7 +20,8 @@ category: System build-type: Simple extra-source-files: CHANGELOG.md, README.md-tested-with: GHC == 8.4.3+tested-with: GHC == 8.0.2+ , GHC == 8.4.3 , GHC == 8.4.4 , GHC == 8.6.3 , GHC == 8.6.5
src/System/Process/Microlens/CreateProcess.hs view
@@ -32,8 +32,6 @@ , HasStdin(..) , HasStdout(..) , HasStderr(..)- -- * Combinators-, closing ) where @@ -157,19 +155,3 @@ instance HasStderr CreateProcess where _Stderr = stderr---- ---------------------------------------------------------- ----- Combinators---- | Close something with a prism into a non-standard 'H.Handle' in a 'CreateProcess'----closing :: Lens' CreateProcess StdStream -> CreateProcess -> IO ()-closing l c = case c ^. l of- UseHandle h -> go h- _ -> return ()- where- go h- | h /= H.stdin- , h /= H.stdout- , h /= H.stderr = H.hClose h- | otherwise = return ()