Skip to content

Commit

Permalink
Temporarily call mlton rather than mpl
Browse files Browse the repository at this point in the history
  • Loading branch information
UberPyro committed Sep 27, 2023
1 parent 8e518f7 commit df15686
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion gibbon-compiler/src/Gibbon/Compiler.hs
Original file line number Diff line number Diff line change
Expand Up @@ -564,6 +564,9 @@ clearFile fileName = removeFile fileName `catch` handleErr

-- | SML Codegen

mplCompiler :: String
mplCompiler = "mlton" -- temporary until mpl is installed

goIO :: Functor m => a1 -> m a2 -> StateT b m a1
goIO prog io = StateT $ \x -> io $> (prog, x)

Expand All @@ -575,7 +578,7 @@ toSML fp prog = writeFile (smlExt fp) $ render $ ppProgram prog

compileMPL :: FilePath -> IO ()
compileMPL fp = do
cd <- system $ "mpl " <> smlExt fp
cd <- system $ mplCompiler <> " " <> smlExt fp
case cd of
ExitFailure n -> error $ "SML compiler failed with code " <> show n
ExitSuccess -> pure ()
Expand Down

0 comments on commit df15686

Please sign in to comment.