To integrate with other code, you need to use FFI (as already mentioned). Usually you use GHC (the Glasgow Haskell compiler) and compile the machine code, instead of using an interpreter such as Hugs. (Most "real" projects use GHC instead of Hugs.)
source share