File tree 1 file changed +2
-2
lines changed
plugins/hls-eval-plugin/src/Ide/Plugin/Eval
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -102,11 +102,11 @@ evalSetup = do
102
102
myExecStmt :: String -> ExecOptions -> Ghc (Either String (Maybe String ))
103
103
myExecStmt stmt opts = do
104
104
(temp, purge) <- liftIO newTempFile
105
- evalPrint <- head <$> runDecls (" evalPrint x = P.writeFile \" " <> temp <> " \ " (P.show x)" )
105
+ evalPrint <- head <$> runDecls (" evalPrint x = P.writeFile " <> show temp <> " (P.show x)" )
106
106
modifySession $ \ hsc -> hsc {hsc_IC = setInteractivePrintName (hsc_IC hsc) evalPrint}
107
107
result <- execStmt stmt opts >>= \ case
108
108
ExecComplete (Left err) _ -> pure $ Left $ show err
109
- ExecComplete (Right _) _ -> liftIO $ Right . (\ x -> if null x then Nothing else Just x ) <$> readFile' temp
109
+ ExecComplete (Right _) _ -> liftIO $ Right . (\ x -> if null x then Nothing else Just x) <$> readFile' temp
110
110
ExecBreak {} -> pure $ Right $ Just " breakpoints are not supported"
111
111
liftIO purge
112
112
pure result
You can’t perform that action at this time.
0 commit comments