hsc2hs is used to write Haskell interfaces to C code. The hsc2hs command can be used to automate some parts of the process of writing Haskell bindings to C code.