code examples for calling Java code from Haskell and vice-versa