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
|
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"
|
||||||
|
Loading…
Reference in New Issue
Block a user