Skip to content

Commit

Permalink
Fix tree-sitter-haskell example
Browse files Browse the repository at this point in the history
`nodeStartPoint` requires an argument since 8ae40b3
  • Loading branch information
jorpic authored Jan 18, 2023
1 parent 387494a commit 1d33e00
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tree-sitter-haskell/examples/Demo.hs
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,9 @@ printChildren children count = forM_
)

printNode :: Node -> IO ()
printNode Node {..} = do
printNode n@(Node {..}) = do
theType <- peekCString nodeType
let TSPoint {..} = nodeStartPoint
let TSPoint {..} = nodeStartPoint n
start = "(" ++ show pointRow ++ "," ++ show pointColumn ++ ")"
let TSPoint {..} = nodeEndPoint
end = "(" ++ show pointRow ++ "," ++ show pointColumn ++ ")"
Expand Down

0 comments on commit 1d33e00

Please sign in to comment.