mirror of
https://github.com/github/semantic.git
synced 2024-12-23 14:54:16 +03:00
Swap return for pure
This commit is contained in:
parent
278a459389
commit
d18c2375cf
@ -61,7 +61,7 @@ instance ToJSON ParseNode where
|
|||||||
-- | Parses file contents into an SExpression format for the provided arguments.
|
-- | Parses file contents into an SExpression format for the provided arguments.
|
||||||
parseSExpression :: Arguments -> IO ByteString
|
parseSExpression :: Arguments -> IO ByteString
|
||||||
parseSExpression =
|
parseSExpression =
|
||||||
return . printTerms TreeOnly <=< parse <=< sourceBlobsFromArgs
|
pure . printTerms TreeOnly <=< parse <=< sourceBlobsFromArgs
|
||||||
where parse = traverse (\sourceBlob@SourceBlob{..} -> parserForType (toS (takeExtension path)) sourceBlob)
|
where parse = traverse (\sourceBlob@SourceBlob{..} -> parserForType (toS (takeExtension path)) sourceBlob)
|
||||||
|
|
||||||
-- | Constructs IndexFile nodes for the provided arguments and encodes them to JSON.
|
-- | Constructs IndexFile nodes for the provided arguments and encodes them to JSON.
|
||||||
|
Loading…
Reference in New Issue
Block a user