Configurable path

This commit is contained in:
2022-02-10 21:47:09 +02:00
parent 1ccf953c57
commit 63411532c4
4 changed files with 14 additions and 23 deletions

View File

@ -1,8 +1,9 @@
module Main where
import qualified MyLib (defaultMain)
import System.Environment (getArgs)
main :: IO ()
main = do
putStrLn "Hello, Haskell!"
MyLib.defaultMain
[path] <- getArgs
MyLib.defaultMain path