1
1
mirror of https://github.com/github/semantic.git synced 2024-12-29 18:06:14 +03:00

use index 0 instead of head to get first element of arg list

This commit is contained in:
Ayman Nadeem 2019-10-02 06:36:22 -04:00
parent dbcb2486ca
commit c051a786be

View File

@ -13,6 +13,6 @@ import System.IO (FilePath)
main :: IO ()
main = do
args <- head <$> getArgs
bytestring <- Data.ByteString.readFile args
args <- getArgs
bytestring <- Data.ByteString.readFile (args !! 0)
print =<< parseByteString @TreeSitter.Python.AST.Module @(Range, Span) tree_sitter_python bytestring