From 490e23856f6e5a8709ece21fb37b946674c4de55 Mon Sep 17 00:00:00 2001 From: Dan Doel Date: Mon, 14 Aug 2023 16:42:41 -0400 Subject: [PATCH] Add -y when calling into racket This makes the racket compiler check for new versions of modules it already compiled. Should avoid some confusing errors when developing the racket libs. --- unison-cli/src/Unison/Codebase/Editor/HandleInput.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/unison-cli/src/Unison/Codebase/Editor/HandleInput.hs b/unison-cli/src/Unison/Codebase/Editor/HandleInput.hs index 997f21467..eb9b026ce 100644 --- a/unison-cli/src/Unison/Codebase/Editor/HandleInput.hs +++ b/unison-cli/src/Unison/Codebase/Editor/HandleInput.hs @@ -2651,7 +2651,7 @@ ensureSchemeExists = (ExitFailure _, _, _) -> pure False racketOpts :: FilePath -> FilePath -> [String] -> [String] -racketOpts gendir statdir args = libs ++ args +racketOpts gendir statdir args = "-y" : libs ++ args where includes = [gendir, statdir "racket"] libs = concatMap (\dir -> ["-S", dir]) includes