Commit df62bd56 authored by Andrew Gibiansky's avatar Andrew Gibiansky

removed temporary

parent 2415aefd
......@@ -91,8 +91,7 @@ library
stm -any,
text -any,
utf8-string -any,
vector -any,
temporary ==1.2.*
vector -any
exposed-modules: IHaskell.Display
IHaskell.Convert
......
......@@ -25,7 +25,6 @@ import qualified Data.ByteString.Char8 as Char
import Data.Aeson (Value)
import System.Directory(getTemporaryDirectory, setCurrentDirectory)
import System.IO.Temp(createTempDirectory)
import Control.Concurrent.STM.TChan
......@@ -135,6 +134,5 @@ switchToTmpDir = void (try switchDir :: IO (Either SomeException ()))
where
switchDir =
getTemporaryDirectory >>=
flip createTempDirectory "ihaskell-display-tmp" >>=
setCurrentDirectory
......@@ -705,10 +705,9 @@ evalCommand output (Expression expr) state = do
out <- useDisplay displayExpr
-- Register the `it` object as a widget.
out' <- if isWidget
then registerWidget out
else return out
return out'
if isWidget
then registerWidget out
else return out
else do
-- Evaluate this expression as though it's just a statement.
......
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