concept Coercible in category haskell
appears as: Coercible

This is an excerpt from Manning's book Haskell in Depth.
The
Coerciblelooks like a type class, but it is actually not. It belongs to theConstraintkind. We cannot define instances ofCoercible, GHC infers them for us. When we write anewtypedeclaration, GHC infers the corresponding instance ofCoercible. In our example, we haveCoercible Age Intgenerated. Moreover, GHC lifts this instance toCoercible [Age] [Int]automatically. It is also able to use symmetry and getCoercible Int AgeandCoercible [Int] [Age]. It’s the latter instance that allows us to usecoerceinstead of implementingtoAgeswithmap.
type family Id t type instance Id t = t