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:
parent
dbcb2486ca
commit
c051a786be
@ -13,6 +13,6 @@ import System.IO (FilePath)
|
|||||||
|
|
||||||
main :: IO ()
|
main :: IO ()
|
||||||
main = do
|
main = do
|
||||||
args <- head <$> getArgs
|
args <- getArgs
|
||||||
bytestring <- Data.ByteString.readFile args
|
bytestring <- Data.ByteString.readFile (args !! 0)
|
||||||
print =<< parseByteString @TreeSitter.Python.AST.Module @(Range, Span) tree_sitter_python bytestring
|
print =<< parseByteString @TreeSitter.Python.AST.Module @(Range, Span) tree_sitter_python bytestring
|
||||||
|
Loading…
Reference in New Issue
Block a user