Skip to content

Commit

Permalink
Style fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
athas committed Jan 18, 2025
1 parent 8da52c2 commit 6df62d8
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/Futhark/CLI/Run.hs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 6df62d8

Please sign in to comment.