can anybody show me a small libClang example in haskell?
i have the documentation, but dont know where to start with.
a small example would be nice
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The simplest example would be to follow the tests in the package.
There are three tests in C along with their haskell counterparts.
For example, here’s a C test:
https://github.com/chetant/LibClang/blob/master/test/Test_Diagnostics.c
and its haskell counterpart:
https://github.com/chetant/LibClang/blob/master/test/Test_Diagnostics.hs
The library is mostly a verbatim copy of the original libclang with most of the callbacks and data structures “haskellized”.
Hackage won’t build the documents (no libclang in sandbox), but you can download the latest libclang locally and build the documentation with haddock.
For info on libclang itself, check out the latest presentation on llvm from one of the developers:
http://devimages.apple.com/llvm/videos/Libclang.mov