Skip to content

Commit

Permalink
refactor(flag): refactor flag file compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
tzhengtek committed Jan 14, 2024
1 parent 11b5db6 commit ac0f36c
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions LobsterLang/app/Main.hs
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,11 @@ checkArgs ("-c":file:_) = either
-- (\_ -> print "File doesn't exist" >> exitWith (ExitFailure 84))
-- (interpretateVM file)
-- =<< (try (readFile file) :: IO (Either SomeException String))
-- checkArgs (file:_) = either
-- (\_ -> print "File doesn't exist" >> exitWith (ExitFailure 84))
-- (compileLobster file)
-- =<< (try (readFile file) :: IO (Either SomeException String))
checkArgs (file:_) = either
(\_ -> print "File doesn't exist" >> exitWith (ExitFailure 84))
-- (compileLobster file)
(compileFile file)
=<< (try (readFile file) :: IO (Either SomeException String))

-- | Main
main :: IO ()
Expand Down

0 comments on commit ac0f36c

Please sign in to comment.