1
1
mirror of https://github.com/github/semantic.git synced 2024-11-24 08:54:07 +03:00

inline fmap

This commit is contained in:
joshvera 2016-01-04 14:50:16 -05:00
parent 44e9f50434
commit e3777a1c08

View File

@ -43,7 +43,7 @@ main :: IO ()
main = do
arguments <- execParser opts
let (sourceAPath, sourceBPath) = (sourceA arguments, sourceB arguments)
sources <- sequence $ fmap readAndTranscodeFile $ Join (sourceAPath, sourceBPath)
sources <- sequence $ readAndTranscodeFile <$> Join (sourceAPath, sourceBPath)
let parse = (P.parserForType . T.pack . takeExtension) sourceAPath
terms <- sequence $ parse <$> sources
let replaceLeaves = replaceLeavesWithWordBranches <$> sources