2024-09-23 21:14:18 +02:00
|
|
|
{-# LANGUAGE TemplateHaskell #-}
|
2024-09-11 22:32:14 +02:00
|
|
|
module Main where
|
|
|
|
|
2024-10-05 15:35:52 +02:00
|
|
|
import qualified Precomputer
|
2024-09-21 16:35:13 +02:00
|
|
|
|
2024-09-27 21:18:29 +02:00
|
|
|
import System.Environment (getArgs)
|
2024-09-21 16:35:13 +02:00
|
|
|
|
2024-09-11 22:32:14 +02:00
|
|
|
main :: IO ()
|
2024-09-27 21:18:29 +02:00
|
|
|
main = do
|
|
|
|
args <- getArgs
|
|
|
|
case args of
|
|
|
|
["run"] ->
|
2024-10-09 23:12:01 +02:00
|
|
|
$$(Precomputer.runDeps)
|
2024-09-27 21:18:29 +02:00
|
|
|
["tree"] ->
|
2024-10-09 23:12:01 +02:00
|
|
|
$$(Precomputer.formatDependencyTrees)
|
2024-09-27 21:18:29 +02:00
|
|
|
_ ->
|
|
|
|
error "unexpected arguments"
|