I have found some docs about build Windows DLL using Haskell and  then using ctypes from python.
But  how to do this on Linux/FreeBSD ?