now reads first arg as markdown
This commit is contained in:
parent
90c7c4e0cb
commit
c9580946a9
@ -1,8 +1,14 @@
|
||||
module Main where
|
||||
|
||||
import Lib
|
||||
import System.Environment
|
||||
|
||||
main :: IO ()
|
||||
main = do
|
||||
md <- readFile "test.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