diff --git a/tree-sitter-haskell/examples/Demo.hs b/tree-sitter-haskell/examples/Demo.hs index a6d6f199..3841bfa3 100644 --- a/tree-sitter-haskell/examples/Demo.hs +++ b/tree-sitter-haskell/examples/Demo.hs @@ -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 ++ ")"