On Sun, May 25, 2008 at 8:04 PM, Andrew Appleyard <andrew.appleyard@gmail.com> wrote:
I had the same problem last week. I found that GHCi would silently crash, but GHC would give link errors on the foreign imported functions from the odbc32 library. Changing the calling convention from 'ccall' to 'stdcall' for the 16 'sql.h' imports fixed the problem for me, but I'm not convinced that's the 'right way' to fix it (ccall is surely the appropriate calling convention for using ODBC on Unix, for example).