ffi
How can I find the value of LC_XXX locale integr constants so that I can use them with cffi
I have this code开发者_JS百科: (define-foreign-library libc (:unix \"libc.so.6\")) (use-foreign-library libc)[详细]
2023-03-11 06:40 分类:问答Interfacing LIRC with Haskell
I\'ve been using pyLirc while prototyping a small application in Python. For performance reasons (among others) I\'m moving to Haskell, but can\'t find any modules providing similar functionality. Sho[详细]
2023-03-11 00:41 分类:问答Call prolog predicate from python
I have some .pl file and I want to call predicate declared in it from py开发者_如何学Gothon script. How can I do that?[详细]
2023-03-08 02:16 分类:问答How to use hsc2hs to bind to constants, functions and data structures?
i need a example how to use hsc2hs, i thought that when i write a header file like: // foo.h #define PI 3.14159[详细]
2023-03-07 11:42 分类:问答Is it possible to create PHP extensions in Haskell?
Is it possible to create PHP extensions开发者_JAVA技巧 with Haskell? Usually PHP extensions are written using C. Is using Haskell FFI to provide functionality for a stub C extension possible (or even[详细]
2023-03-06 17:27 分类:问答Getting at C binary data from OCaml
(Ignoring endianness for the sake of argument - this is just a test case/proof of concept - and I would never use strcpy in real code either!)[详细]
2023-03-06 03:10 分类:问答Difference between hsc2hs and c2hs?
What is the difference between hsc2hs and c2hs? I know what hsc2hs is a preprocessor but what does it exactly do?[详细]
2023-03-05 20:20 分类:问答Haskell FFI Support for Functions With Variadic Arguments
Can anyone show me an example of using a C function with variadic arguments (e.g. printf) with Haskell\'开发者_StackOverflow中文版s Foreign Function Interface? I tried searching the HaskellWiki, but f[详细]
2023-03-05 09:32 分类:问答How do I Call Native Code From (MIT) Scheme?
How do I 开发者_如何学JAVAcall a native function (say, MessageBox) from Scheme?MIT Scheme has a FFI for Windows. Check out the documentation.[详细]
2023-03-04 16:08 分类:问答FFI in Haskell, question about the LANGUAGE CPP and how to use a c struct with the FFI
I have some questions about the FFI in Haskell I know i must use the language pragma {-# LANGUAGE ForeignFunctionInterface #-} but what is the difference when i use {-# LANGUAGE CPP, ForeignFunction[详细]
2023-03-03 13:25 分类:问答