svitak/app/Main.hs
Marko Andjelic 018e5290a3 feature:MVar Implementation
Replace IORef

Branch created to replace the use of IORef with MVar
2026-01-26 13:44:06 +00:00

16 lines
355 B
Haskell

module Main where
import System.Environment (getArgs)
import EpubParser (openEpub)
import UI (runApp)
main :: IO ()
main = do
args <- getArgs
case args of
[path] -> do
result <- openEpub path
case result of
Left err -> putStrLn $ "Error: " ++ err
Right env -> runApp env
_ -> putStrLn "Usage: svitak <file.epub>"