(,) <$> strArgument (metavar "OLDFILE") <*> strArgument (metavar "NEWFILE")
execParser opts
where
opts = info (diffP <**> helper) fullDesc
do
(oldFile, newFile) <- runParser
res <- readDiffFiles oldFile newFile
case res of
Left e -> print e
Right (old, new) ->
do
let diffDeck = diff old new
TIO.putStrLn . view . evalMany $ diffDeck
return ()