Commit 891cfe41 authored by Andrew Gibiansky's avatar Andrew Gibiansky

Revert to e08963c7

parent e447663d
...@@ -79,7 +79,7 @@ library ...@@ -79,7 +79,7 @@ library
parsec -any, parsec -any,
process >=1.1, process >=1.1,
random >=1.0, random >=1.0,
shelly >=1.4, shelly >=1.3,
split >= 0.2, split >= 0.2,
strict >=0.3, strict >=0.3,
system-argv0 -any, system-argv0 -any,
......
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
"language": "python", "language": "python",
"metadata": {}, "metadata": {},
"outputs": [], "outputs": [],
"prompt_number": 1 "prompt_number": 12
}, },
{ {
"cell_type": "code", "cell_type": "code",
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
"language": "python", "language": "python",
"metadata": {}, "metadata": {},
"outputs": [], "outputs": [],
"prompt_number": 2 "prompt_number": 13
}, },
{ {
"cell_type": "code", "cell_type": "code",
...@@ -41,19 +41,8 @@ ...@@ -41,19 +41,8 @@
], ],
"language": "python", "language": "python",
"metadata": {}, "metadata": {},
"outputs": [ "outputs": [],
{ "prompt_number": 14
"html": [
"<span class='err-msg'>Ambiguous interface for `Control.Monad.Identity': it was found in multiple packages: monads-tf-0.1.0.1 mtl-2.1.2</span>"
],
"metadata": {},
"output_type": "display_data",
"text": [
"Ambiguous interface for `Control.Monad.Identity': it was found in multiple packages: monads-tf-0.1.0.1 mtl-2.1.2"
]
}
],
"prompt_number": 3
}, },
{ {
"cell_type": "code", "cell_type": "code",
...@@ -69,7 +58,7 @@ ...@@ -69,7 +58,7 @@
"output_type": "display_data" "output_type": "display_data"
} }
], ],
"prompt_number": 3 "prompt_number": 1
}, },
{ {
"cell_type": "code", "cell_type": "code",
......
...@@ -55,9 +55,15 @@ ipython which suppress args = do ...@@ -55,9 +55,15 @@ ipython which suppress args = do
runCmd <- liftIO $ Paths.getDataFileName "installation/run.sh" runCmd <- liftIO $ Paths.getDataFileName "installation/run.sh"
venv <- fpToText <$> ipythonDir venv <- fpToText <$> ipythonDir
let cmdArgs = [pack runCmd, venv] ++ args let cmdArgs = [pack runCmd, venv] ++ args
unpack <$> if suppress runHandles "bash" cmdArgs handles doNothing
then silently $ run "bash" cmdArgs where handles = [InHandle Inherit, outHandle suppress, errorHandle suppress]
else run "bash" cmdArgs outHandle True = OutHandle CreatePipe
outHandle False = OutHandle Inherit
errorHandle True = ErrorHandle CreatePipe
errorHandle False = ErrorHandle Inherit
doNothing _ stdout _ = if suppress
then liftIO $ StrictIO.hGetContents stdout
else return ""
-- | Run while suppressing all output. -- | Run while suppressing all output.
quietRun path args = runHandles path args handles nothing quietRun path args = runHandles path args handles nothing
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment