Skip to content

Commit

Permalink
Merge pull request #304 from jorpic/patch-1
Browse files Browse the repository at this point in the history
Fix tree-sitter-haskell example
  • Loading branch information
Kleidukos authored May 12, 2024
2 parents b1c4b94 + 1d33e00 commit 02cd4a9
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 02cd4a9

Please sign in to comment.