fix scalaz sample code