How to bind a window library (in C) to Haskell?