Skip to content

Commit

Permalink
Consistency: 'p' -> 'program', system messages start with '-*-'
Browse files Browse the repository at this point in the history
  • Loading branch information
SophieBosio committed Apr 7, 2024
1 parent 5cdece0 commit fd1b7e7
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions app/Main.hs
Original file line number Diff line number Diff line change
Expand Up @@ -71,17 +71,18 @@ typecheck :: Program Info -> IO (Program Type)
typecheck = return . inferProgram

ast :: Program Type -> IO ()
ast p = print $ programAST p
ast program = print $ programAST program

repl :: Program Type -> IO ()
repl p = putStrLnGreen "Contra REPL" >> evalLoop p
repl program = putStrLnGreen "-*- Contra: Fired up the REPL! -*-" >>
evalLoop program

execute :: Program Type -> IO ()
execute program = print $ runMain program

checkProperties :: Program Type -> IO ()
checkProperties program =
do putStrLn "--- Contra: Checking properties ---"
do putStrLn "-*- Contra: Checking properties -*-"
check program


Expand Down

0 comments on commit fd1b7e7

Please sign in to comment.