Wrapper for platec in Haskell