Experimentation with dynamically loading C libraries from Haskell (learning exercise)