Clean up and list SKI conversion fix

This commit is contained in:
2025-04-24 12:14:38 -05:00
parent b8e2743103
commit 3717942589
6 changed files with 140 additions and 81 deletions

View File

@@ -152,7 +152,7 @@ repl env = runInputT settings (withInterrupt (loop env Decode))
newEnv = evalTricu env asts
case Map.lookup "!result" newEnv of
Just r -> do
putStrLn $ "tricu > " ++ formatResult form r
putStrLn $ "tricu > " ++ formatT form r
Nothing -> pure ()
return newEnv
@@ -182,7 +182,7 @@ repl env = runInputT settings (withInterrupt (loop env Decode))
liftIO $ writeFile filepath ""
outputStrLn "File created..."
forM_ definitions $ \(name, value) -> do
let content = name ++ " = " ++ formatResult TreeCalculus value ++ "\n"
let content = name ++ " = " ++ formatT TreeCalculus value ++ "\n"
outputStrLn $ "Writing definition: " ++ name ++ " with length " ++ show (length content)
liftIO $ appendFile filepath content
outputStrLn $ "Saved " ++ show (length definitions) ++ " definitions to " ++ p