[Haskell-cafe] How to deal with C buf in Haskell?