geval/app/Main.hs
2018-02-20 21:28:11 +01:00

17 lines
344 B
Haskell

module Main where
import GEval.Core
import GEval.OptionsParser
import System.Environment
import Options.Applicative
main :: IO ()
main = do
args <- getArgs
result <- runGEval args
case result of
Left parseResult -> handleParseResult parseResult >> return ()
Right (Just result) -> print $ result
Right Nothing -> return ()