[contrib/haskell] deals with deprecated inputtype