File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed
plugins/hls-refactor-plugin/src/Development/IDE/Plugin/CodeAction Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ import GHC.Utils.Outputable
1313import System.Environment.Blank (getEnvDefault )
1414import System.IO.Unsafe
1515import Text.Printf
16+ import System.Directory.Extra (createDirectoryIfMissing )
1617--------------------------------------------------------------------------------
1718-- Tracing exactprint terms
1819
@@ -37,6 +38,7 @@ traceAst lbl x
3738 doTrace = unsafePerformIO $ do
3839 u <- U. newUnique
3940 let htmlDumpFileName = printf " /tmp/hls/%s-%s-%d.html" (show timestamp) lbl (U. hashUnique u)
41+ createDirectoryIfMissing True " /tmp/hls"
4042 writeFile htmlDumpFileName $ renderDump htmlDump
4143 return $ unlines
4244 [prettyCallStack callStack ++ " :"
You can’t perform that action at this time.
0 commit comments