GOOD ADVICE: Because this stuff is not Entirely Stable as far as names and things go, you would be well-advised to keep your C-callery corraled in a few modules, rather than sprinkled all over your code. It will then be quite easy to update later on.
WARNING AS OF 2.03: Yes, the `_ccall_' stuff probably will change, to something better, of course! One step in that direction is Green Card, a foreign function interface pre-processor for Haskell ("Glasgow" Haskell in particular) -- check out
ftp://ftp.dcs.gla.ac.uk/pub/haskell/glasgow/green-card.ANNOUNCE ftp://ftp.dcs.gla.ac.uk/pub/haskell/glasgow/green-card-src.tar.gz