import scala.reflect.macros.Context

object Helper {
  def unapplySeq[T](x: List[T]): Option[Seq[T]] =
}

object Macros {
  def impl[T: c.WeakTypeTag](c: Context)(x: c.Expr[List[T]]) = {
    c.universe.reify(Helper.unapplySeq(x.splice))
  }

  object UnapplyMacro {
    def unapplySeq[T](x: List[T]): Option[Seq[T]] = macro impl[T]
  }
}
