mirror of
https://github.com/github/semantic.git
synced 2024-12-29 01:42:43 +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 = 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
|
||||
|
Loading…
Reference in New Issue
Block a user