implement sublist for haskell

/cc @soapie @qnikst @pminten @sjakobi