@@ -5,16 +5,15 @@ import Prelude ()
55import Prelude.Compat
66
77import Control.Exception
8−import Data.Text (Text)
9−import qualified Data.Text as T
10−import qualified Data.Text.IO as T
11−import Data.Version (showVersion)
8+import qualified Data.ByteString.Char8 as BS8
9+import qualified Data.Text.IO as T
10+import Data.Version (showVersion)
1211import Network
1312import Options.Applicative
1413import System.Exit
1514import System.IO
1615
17−import qualified Paths_purescript as Paths
16+import qualified Paths_purescript as Paths
1817
1918data Options = Options
2019 { optionsPort :: PortID
@@ -41,16 +40,7 @@ client port = do
4140 ("Couldn't connect to psc-ide-server on port: " ++
4241 show port ++ " Error: " ++ show e) >>
4342 exitFailure)
44− cmd <- T.getLine
45− -- Temporary fix for emacs windows bug
46− let cleanedCmd = removeSurroundingTicks cmd
47− --
48− T.hPutStrLn h cleanedCmd
49− res <- T.hGetLine h
50− putStrLn (T.unpack res)
43+ T.hPutStrLn h =<< T.getLine
44+ BS8.putStrLn =<< BS8.hGetLine h
5145 hFlush stdout
5246 hClose h
53−
54−-- TODO: Fix this in the emacs plugin by using a real process over shellcommands
55−removeSurroundingTicks :: Text -> Text
56−removeSurroundingTicks = T.dropWhile (== '\'') . T.dropWhileEnd (== '\'')