now reads first arg as markdown
This commit is contained in:
parent
90c7c4e0cb
commit
c9580946a9
10
app/Main.hs
10
app/Main.hs
@ -1,8 +1,14 @@
|
||||
module Main where
|
||||
|
||||
import Lib
|
||||
import System.Environment
|
||||
|
||||
main :: IO ()
|
||||
main = do
|
||||
md <- readFile "test.md"
|
||||
sequence_ $ sequence . fmap print <$> getMails md
|
||||
args <- getArgs
|
||||
case args of
|
||||
[fn] -> do
|
||||
md <- readFile fn
|
||||
sequence_ $ sequence . fmap print <$> getMails md
|
||||
_ -> do
|
||||
print "please call with markdown-file"
|
||||
|
Loading…
Reference in New Issue
Block a user