1
1
mirror of https://github.com/github/semantic.git synced 2024-12-24 23:42:31 +03:00

Don’t use record syntax for TSNode.

This commit is contained in:
Rob Rix 2015-11-24 14:32:02 -05:00
parent 20b5fe1604
commit 31de4ca26b

View File

@ -31,7 +31,7 @@ foreign import ccall "prototype/External/tree-sitter/include/tree_sitter/runtime
data TSLength = TsLength CSize CSize
deriving (Show, Eq, Generic, CStorable)
data TSNode = TsNode { _data :: Foreign.Ptr (), offset :: TSLength }
data TSNode = TsNode (Foreign.Ptr ()) TSLength
deriving (Show, Eq, Generic, CStorable)
foreign import ccall "prototype/External/tree-sitter/include/tree_sitter/runtime.h ts_document_root_node" ts_document_root_node :: Foreign.Ptr TSDocument -> IO TSNode