haskell bindings: generate docs, fixed missing base class bug