now reads first arg as markdown

This commit is contained in:
Nicole Dresselhaus 2017-02-06 15:57:43 +01:00
parent 90c7c4e0cb
commit c9580946a9
Signed by: Drezil
GPG Key ID: 057D94F356F41E25

View File

@ -1,8 +1,14 @@
module Main where module Main where
import Lib import Lib
import System.Environment
main :: IO () main :: IO ()
main = do main = do
md <- readFile "test.md" args <- getArgs
sequence_ $ sequence . fmap print <$> getMails md case args of
[fn] -> do
md <- readFile fn
sequence_ $ sequence . fmap print <$> getMails md
_ -> do
print "please call with markdown-file"