C, Haskell and bugs