Haskell bindings to libmdr