From 6df62d824f83dd17effa9f236862cb6160c2cbd7 Mon Sep 17 00:00:00 2001 From: Troels Henriksen Date: Sat, 18 Jan 2025 23:28:09 +0100 Subject: [PATCH] Style fix. --- src/Futhark/CLI/Run.hs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/Futhark/CLI/Run.hs b/src/Futhark/CLI/Run.hs index dc7bead612..1a0bf3e7e6 100644 --- a/src/Futhark/CLI/Run.hs +++ b/src/Futhark/CLI/Run.hs @@ -123,9 +123,11 @@ newFutharkiState cfg file = runExceptT $ do hPutDoc stderr $ prettyWarnings ws - ictx <- - foldM (\ctx -> badOnLeft I.prettyInterpreterError <=< runInterpreter' . I.interpretImport ctx) I.initialCtx $ - map (fmap fileProg) imports + let loadImport ctx = + badOnLeft I.prettyInterpreterError + <=< runInterpreter' . I.interpretImport ctx + + ictx <- foldM loadImport I.initialCtx $ map (fmap fileProg) imports let (tenv, ienv) = let (iname, fm) = last imports in ( fileScope fm,