1
1
mirror of https://github.com/github/semantic.git synced 2024-12-22 14:21:31 +03:00

Minor formatting

This commit is contained in:
Timothy Clem 2018-04-10 15:12:55 -07:00
parent 64744014fd
commit e1160a19a9
2 changed files with 1 additions and 2 deletions

View File

@ -91,7 +91,7 @@ arguments = info (version <*> helper <*> ((,) <$> optionsParser <*> argumentsPar
graphCommand = command "graph" (info graphArgumentsParser (progDesc "Compute import/call graph for an entry point"))
graphArgumentsParser = runGraph
<$> ( flag (SomeRenderer DOTGraphRenderer) (SomeRenderer DOTGraphRenderer) (long "dot" <> help "Output in DOT graph format (default)")
<$> ( flag (SomeRenderer DOTGraphRenderer) (SomeRenderer DOTGraphRenderer) (long "dot" <> help "Output in DOT graph format (default)")
<|> flag' (SomeRenderer JSONGraphRenderer) (long "json" <> help "Output JSON graph")
)
<*> argument filePathReader (metavar "ENTRY_FILE")

View File

@ -77,7 +77,6 @@ readBlobsFromHandle :: MonadIO m => Handle -> m [Blob.Blob]
readBlobsFromHandle = fmap toBlobs . readFromHandle
where toBlobs BlobParse{..} = fmap toBlob blobs
readBlobFromPath :: MonadIO m => (FilePath, Maybe Language) -> m Blob.Blob
readBlobFromPath file = do
maybeFile <- uncurry readFile file