Haskell interface: adding static methods