# How to understand the comment in shapeless guide?

**URL:** <https://users.scala-lang.org/t/how-to-understand-the-comment-in-shapeless-guide/8930>\
**Category:** Libraries\
**Created:** [November 7, 2022, 3:25am UTC](https://users.scala-lang.org/t/how-to-understand-the-comment-in-shapeless-guide/8930 "2022-11-07T03:25:11Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![yinxc](https://users.scala-lang.org/letter_avatar_proxy/v4/letter/y/f475e1/32.png) [@yinxc](https://users.scala-lang.org/u/yinxc)\
**Post date:** [November 7, 2022, 3:25am UTC](https://users.scala-lang.org/t/how-to-understand-the-comment-in-shapeless-guide/8930/1 "2022-11-07T03:25:11Z")

</div>

The method below aims to get the field value of a single-field case class but it compiled failed because implicit not found.

```auto
  import shapeless.Generic
  import shapeless._

  def main(args: Array[String]): Unit = {
    getWrapperValue(Wrapper(42))
  }

  def getWrapperValue[A, H](input: A)
                           (implicit
                            gen: Generic.Aux[A, H :: HNil]): H =
    gen.to(input).head

  case class Wrapper(value: Int)

```

How to understand the explanation with the underline in document ?  
I am confused why the compiler can’t find a Repr and ensure its length at the same time?

 ![image](https://users.scala-lang.org/uploads/default/original/2X/f/fb1611adf88c4166a2e04f29c7e996f20da837a1.jpeg)

---

<div class="post-metadata">

**Author:** ![DmytroMitin](https://users.scala-lang.org/user_avatar/users.scala-lang.org/dmytromitin/32/1423_2.png) [@DmytroMitin](https://users.scala-lang.org/u/DmytroMitin)\
**Post date:** [November 7, 2022, 5:57am UTC](https://users.scala-lang.org/t/how-to-understand-the-comment-in-shapeless-guide/8930/2 "2022-11-07T05:57:13Z")

</div>

Just a limitation of implicit resolution. So called over-constrained implicits. This seems to be too much work for implicits in a single step. Compiler doesn’t like complex types like `(A, B)`, `H :: L`, `A[T]` in a type refinement.

> <https://stackoverflow.com/questions/64814539/why-is-this-implicit-resolution-failing>
