Skip to content

Commit

Permalink
ifc: re-export shell from Purebred.System.Process
Browse files Browse the repository at this point in the history
Re-export 'shell' from Purebred.System.Process so that we can avoid
directly importing System.Process.Typed anywhere (except the
aforementioned module).  We want to avoid using typed-process
directly; instead we want to ensure we use our own variants that
taint the process output.

Part of: #269
  • Loading branch information
frasertweedale authored and romanofski committed Mar 29, 2019
1 parent b1c07cb commit 20cb042
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/Purebred/System/Process.hs
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ module Purebred.System.Process
-- * Re-exports from @System.Process.Typed@
, ProcessConfig
, proc
, shell
, setStdin
, byteStringInput
) where
Expand Down
3 changes: 1 addition & 2 deletions src/UI/Actions.hs
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,6 @@ import System.IO (hFlush)
import GHC.IO.Handle (Handle)
import System.IO.Temp (withSystemTempFile, emptyTempFile)
import System.Directory (getTemporaryDirectory, removeFile)
import System.Process.Typed (shell, proc, setStdin, byteStringInput)
import System.FilePath (takeDirectory, (</>))
import qualified Data.Vector as Vector
import Prelude hiding (readFile, unlines)
Expand Down Expand Up @@ -127,7 +126,7 @@ import UI.Views
import Purebred.LazyVector (V)
import Purebred.Tags (parseTagOps)
import Purebred.System.Directory (listDirectory')
import Purebred.System.Process (tryRunProcess, handleIOException, handleExitCode)
import Purebred.System.Process

class Scrollable (n :: Name) where
makeViewportScroller :: Proxy n -> Brick.ViewportScroll Name
Expand Down

0 comments on commit 20cb042

Please sign in to comment.