Desalinating acid mine water produces useful by-products