Package

shapeless

Permalink

package shapeless

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. shapeless
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Type Members

  1. sealed trait :+:[+H, +T <: Coproduct] extends Coproduct

    Permalink

    Like Either, the :+: type defines a new type that can contain either H or T.

  2. final case class ::[+H, +T <: HList](head: H, tail: T) extends HList with Product with Serializable

    Permalink

    Non-empty HList element type.

  3. trait <:!<[A, B] extends AnyRef

    Permalink
  4. trait =:!=[A, B] extends AnyRef

    Permalink
  5. trait AdditiveCollection[Repr] extends Serializable

    Permalink

    Evidence that Repr instances can be nested in a Sized.

    Evidence that Repr instances can be nested in a Sized.

    Should assert that a Builder[_, Repr] given n elements will result in a Repr of length n.

  6. trait Annotation[A, T] extends Serializable

    Permalink

    Evidence that type T has annotation A, and provides an instance of the annotation.

    Evidence that type T has annotation A, and provides an instance of the annotation.

    If type T has an annotation of type A, then an implicit Annotation[A, T] can be found, and its apply method provides an instance of the annotation.

    Example:

    case class First(i: Int)
    
    @First(3) trait Something
    
    
    val somethingFirst = Annotation[First, Something].apply()
    assert(somethingFirst == First(3))
  7. class AnnotationMacros extends CaseClassMacros

    Permalink
  8. trait Annotations[A, T] extends DepFn0 with Serializable

    Permalink

    Provides the annotations of type A of the fields or constructors of case class-like or sum type T.

    Provides the annotations of type A of the fields or constructors of case class-like or sum type T.

    If type T is case class-like, this type class inspects its fields and provides their annotations of type A. If type T is a sum type, its constructor types are looked for annotations.

    Type Out is an HList having the same number of elements as T (number of fields of T if T is case class-like, or number of constructors of T if it is a sum type). It is made of None.type (no annotation on corresponding field or constructor) and Some[A] (corresponding field or constructor is annotated).

    Method apply provides an HList of type Out made of None (corresponding field or constructor not annotated) or Some(annotation) (corresponding field or constructor has annotation annotation).

    Note that annotation types must be case class-like for this type class to take them into account.

    Example:

    case class First(s: String)
    
    case class CC(i: Int, @First("a") s: String)
    
    sealed trait Base
    @First("b") case class BaseI(i: Int) extends Base
    case class BaseS(s: String) extends Base
    
    
    val ccFirsts = Annotations[First, CC]
    val baseFirsts = Annotations[First, Base]
    
    // ccFirsts.Out is  None.type :: Some[First] :: HNil
    // ccFirsts.apply() is
    //   None :: Some(First("a")) :: HNil
    
    // baseFirsts.Out is  Some[First] :: None.type :: HNil
    // baseFirsts.apply() is
    //   Some(First("b")) :: None :: HNil
  9. class ApplyEverything[F <: Poly] extends AnyRef

    Permalink
  10. trait ApplyUnapplyFacet extends ProductISOFacet

    Permalink
  11. trait BasisConstraint[L <: HList, M <: HList] extends Serializable

    Permalink

    Type class witnessing that every element of L is an element of M.

  12. sealed trait CNil extends Coproduct

    Permalink

    The CNil type is used to terminate a 'list' of :+: alternatives.

    The CNil type is used to terminate a 'list' of :+: alternatives.

    Like the Nil constructor of List, it does not convey real information. This is achieved by not having any value for CNil.

    This makes the type Int :+: CNil equivalent to Int, because the right (Inr) alternative of :+: can not be constructed properly.

  13. final case class Cached[+T](value: T) extends AnyVal with Product with Serializable

    Permalink

    Wraps a cached implicit T.

    Wraps a cached implicit T.

    Looking for an implicit Cached[T] first triggers a look for an implicit T, caches the resulting tree, and returns it immediately and in subsequent look ups for an implicit Cached[T]. Thus, subsequent look ups do not trigger looking for an implicit T, only returning the instance kept in cache.

    Beware that if the contexts in which two subsequent look ups are different, so that looking for a T in each of them doesn't return the same result, this change would be ignored by caching. Looking for a Cached[T] in the first context would put the implicit T of this context in cache, and then looking for a Cached[T] in the second context would return the former instance from the first context. E.g.

    trait TC[T] {
      def msg: String
    }
    
    object First {
      implicit val tc: TC[Int] = new TC[Int] {
        val msg = "first"
      }
    
      def print() = println(implicitly[TC[Int]].msg)
      def printCached() = println(cached[TC[Int]].msg)
    }
    
    object Second {
      implicit val tc: TC[Int] = new TC[Int] {
        val msg = "second"
      }
    
      def print() = println(implicitly[TC[Int]].msg)
      def printCached() = println(cached[TC[Int]].msg)
    }
    
    First.print()
    Second.print()
    First.printCached()
    Second.printCached()

    would print "first" then "second" (non cached TC[Int] instances), then "first" twice (first instance, returned the second time too through the cache).

  14. class CachedImplicitMacros extends AnyRef

    Permalink
  15. class CachedMacros extends LazyMacros with OpenImplicitMacros

    Permalink
  16. trait CaseClassFacet extends AnyRef

    Permalink
  17. trait CaseClassMacros extends ReprTypes

    Permalink
  18. trait CaseInst extends AnyRef

    Permalink
  19. trait Cases extends AnyRef

    Permalink
  20. type Const[C] = AnyRef { type λ[T] = C }

    Permalink
  21. sealed trait Coproduct extends Product with Serializable

    Permalink

    Encodes a coproduct type, such as a sealed family of case classes.

    Encodes a coproduct type, such as a sealed family of case classes.

    Each constructor from the family gets an encoding in terms of nested Inr and Inl.

    Which constructor is encoded as Inl() and which as Inr(Inl()) is determined by lexical order of the subclasses. This example illustrates the encoding:

    scala> sealed trait Animal
    defined trait Animal
    
    scala> case class Cat(name: String, livesLeft: Int) extends Animal
    defined class Cat
    
    scala> case class Dog(name: String, bonesBuried: Int) extends Animal
    defined class Dog
    
    scala> case class Koala(name: String, leavesEaten: Int) extends Animal
    defined class Koala
    
    scala> case class Sloth(name: String, daysToClimbDownFromCurrentTree: Int) extends Animal
    defined class Sloth
    
    scala> val garfield = Cat("Garfield", 9)
    garfield: Cat = Cat(Garfield,9)
    
    scala> val odie = Dog("Odie", 3)
    odie: Dog = Dog(Odie,3)
    
    scala> val koala = Koala("foo", 10)
    koala: Koala = Koala(foo,10)
    
    scala> val sloth = Sloth("bar", 2)
    sloth: Sloth = Sloth(bar,2)
    
    scala> val genAnimal = Generic[Animal]
    genAnimal: shapeless.Generic[Animal]{type Repr = Cat :+: Dog :+: Koala :+: Sloth} = ...
    
    scala> def showCoproduct(o: Any) : String = o match {
         | case Inl(a) => "Inl(" + showCoproduct(a) + ")"
         | case Inr(a) => "Inr(" + showCoproduct(a) + ")"
         | case a => a.toString
         | }
    showCoproduct: (o: Any)String
    
    scala> showCoproduct(genAnimal.to(garfield))
    res5: String = Inl(Cat(Garfield,9))
    
    scala> showCoproduct(genAnimal.to(odie))
    res6: String = Inr(Inl(Dog(Odie,3)))
    
    scala> showCoproduct(genAnimal.to(koala))
    res7: String = Inr(Inr(Inl(Koala(foo,10))))
    
    scala> showCoproduct(genAnimal.to(sloth))
    res8: String = Inr(Inr(Inr(Inl(Sloth(bar,2)))))
    
    scala>
  22. trait CopyFacet extends CaseClassFacet

    Permalink
  23. trait Coselect[T] extends AnyRef

    Permalink
  24. trait Data[F, T, R] extends Serializable

    Permalink

    Type class representing one-level generic queries.

  25. trait Data0 extends AnyRef

    Permalink
  26. trait Data1 extends Data0

    Permalink
  27. trait DataT[F, T] extends Serializable

    Permalink

    Type class representing one-level generic transformations.

  28. trait DataT0 extends AnyRef

    Permalink
  29. trait DataT1 extends DataT0

    Permalink
  30. trait Default[T] extends DepFn0 with Serializable

    Permalink

    Provides default values of case class-like types.

    Provides default values of case class-like types.

    The Out type parameter is an HList type whose length is the number of fields of T. Its elements correspond to the fields of T, in their original order. It is made of None.type (no default value for this field) and Some[...] (default value available for this field, with ... the type of the field). Note that None.type and Some[...] are more precise than simply Option[...], so that the availability of default values can be used in type level calculations.

    The apply method returns an HList of type Out, with None elements corresponding to no default value available, and Some(defaultValue) to default value available for the corresponding fields.

    Use like

    case class CC(i: Int, s: String = "b")
    
    val default = Default[CC]
    
    // default.Out is  None.type :: Some[String] :: HNil
    
    // default() returns
    //   None :: Some("b") :: HNil,
    // typed as default.Out
  31. trait DefaultCaseClassDefns extends ApplyUnapplyFacet with ProductFacet with PolymorphicEqualityFacet with CopyFacet with ToStringFacet

    Permalink
  32. class DefaultMacros extends CaseClassMacros

    Permalink
  33. trait DefaultSymbolicLabelling[T] extends DepFn0 with Serializable

    Permalink
  34. trait DepFn0 extends AnyRef

    Permalink

    Dependent nullary function type.

  35. trait DepFn1[T] extends AnyRef

    Permalink

    Dependent unary function type.

  36. trait DepFn2[T, U] extends AnyRef

    Permalink

    Dependent binary function type.

  37. type Everything[F <: Poly, K <: Poly, T] = Case[EverythingAux[F, K], ::[T, HNil]]

    Permalink

    The SYB everything combinator

  38. class EverythingAux[F, K] extends Poly

    Permalink
  39. type Everywhere[F <: Poly, T] = Case[EverywhereAux[F], ::[T, HNil]]

    Permalink

    The SYB everywhere combinator

  40. class EverywhereAux[F] extends Poly

    Permalink
  41. trait FieldOf[V] extends AnyRef

    Permalink

    Field with values of type V.

    Field with values of type V.

    Record keys of this form should be objects which extend this trait. Keys may also be arbitrary singleton typed values, however keys of this form enforce the type of their values.

  42. trait FieldPoly extends Poly1

    Permalink

    Polymorphic function that allows modifications on record fields while preserving the original key types.

  43. trait Fin[N <: Succ[_]] extends AnyRef

    Permalink

    Base trait for type level finite numbers, i.e.

    Base trait for type level finite numbers, i.e. numbers less than some bound N

  44. case class FinSucc[N <: Succ[_], P <: Fin[N]]() extends Fin[Succ[N]] with Product with Serializable

    Permalink

    Encoding of successor.

  45. case class FinZero[N <: Succ[_]]() extends Fin[N] with Product with Serializable

    Permalink

    Encoding of zero.

  46. trait Generic[T] extends Serializable

    Permalink

    Represents the ability to convert from a concrete type (e.g.

    Represents the ability to convert from a concrete type (e.g. a case class) to a generic (HList / Coproduct} based) representation of the type.

    For example:

    scala> sealed trait Animal
    
    defined trait Animal
    scala> case class Cat(name: String, livesLeft: Int) extends Animal
    defined class Cat
    
    scala> case class Dog(name: String, bonesHidden: Int) extends Animal
    defined class Dog
    
    scala> val genCat = Generic[Cat]
    genCat: shapeless.Generic[Cat]{ type Repr = String :: Int :: HNil } = ...
    
    scala> val genDog = Generic[Dog]
    genDog: shapeless.Generic[Dog]{ type Repr = String :: Int :: HNil } = ...
    
    scala> val garfield = Cat("Garfield", 9)
    garfield: Cat = Cat(Garfield,9)
    
    scala> val genGarfield = genCat.to(garfield)
    genGarfield: genCat.Repr = Garfield :: 9 :: HNil
    
    scala> val reconstructed = genCat.from(genGarfield)
    reconstructed: Cat = Cat(Garfield,9)
    
    scala> reconstructed == garfield
    res0: Boolean = true

    Note that constituents of Cat and Dog are exactly the same - a String and an Int. So we could do:

    scala> val odieAsCat = genCat.from(genDog.to(odie))
    odieAsCat: Cat = Cat(odie,3)

    This is quite useful in certain cases, such as copying from one object type to another, as in schema evolution.

    Note that the generic representation depends on the type at which we instantiate Generic. In the example above we instantiated it at Cat and at Dog, and so the generic representation gave the minimal constituents of each of those.

    However, if we instantiate Generic[Animal] instead the generic representation would encode the Cat-ness or Dog-ness of the instance as well (see Coproduct for details of the encoding):

    scala> genDog.to(odie)
    res9: genDog.Repr = odie :: 3 :: HNil
    
    scala> val genAnimal = Generic[Animal]
    genAnimal: shapeless.Generic[Animal]{ type Repr = Cat :+: Dog :+: CNil } = ...
    
    scala> genAnimal.to(odie)
    res8: genAnimal.Repr = Dog(odie,3)
    
    scala> genAnimal.to(odie) match { case Inr(Inl(dog)) => dog; case _ => null }
    res9: Dog = Dog(odie,3)

    Inr and Inl are shapeless.Coproduct constructors. Shapeless constructs each class representation as a sort of "nested Either" using Coproduct. So in our example, genAnimal would essentially encode garfield as Inl(garfield) and odie as Inr(Inl(odie)). Please see shapeless.Coproduct for more details. }}}

    T

    An immutable data type that has a canonical way of constructing and deconstructing instances (e.g. via apply / unapply). Sealed families of case classes work best.

  47. trait Generic1[F[_], FR[_[_]]] extends Serializable

    Permalink
  48. trait Generic10 extends AnyRef

    Permalink
  49. class Generic1Macros extends CaseClassMacros

    Permalink
  50. class GenericMacros extends CaseClassMacros

    Permalink
  51. sealed trait HList extends Product with Serializable

    Permalink

    HList ADT base trait.

  52. class HMap[R[_, _]] extends Poly1

    Permalink

    Heterogenous map with type-level key/value associations that are fixed by an arbitrary relation R.

    Heterogenous map with type-level key/value associations that are fixed by an arbitrary relation R.

    HMaps extend Poly and hence are also polymorphic function values with type-specific cases corresponding to the map's type-level key/value associations.

  53. class HMapBuilder[R[_, _]] extends AnyRef

    Permalink
  54. sealed trait HNil extends HList

    Permalink

    Empty HList element type.

  55. class HasCoproductGeneric[T] extends Serializable

    Permalink
  56. class HasProductGeneric[T] extends Serializable

    Permalink
  57. type Id[+T] = T

    Permalink
  58. trait InferProduct[C <: Coproduct, K] extends AnyRef

    Permalink
  59. final case class Inl[+H, +T <: Coproduct](head: H) extends :+:[H, T] with Product with Serializable

    Permalink

    H :+: T can either be H or T.

    H :+: T can either be H or T. In this case it is H.

  60. final case class Inr[+H, +T <: Coproduct](tail: T) extends :+:[H, T] with Product with Serializable

    Permalink

    H :+: T can either be H or T.

    H :+: T can either be H or T. In this case it is T.

  61. trait IsCCons1[L[_], FH[_[_]], FT[_[_]]] extends Serializable

    Permalink
  62. trait IsCCons10 extends AnyRef

    Permalink
  63. class IsCCons1Macros extends IsCons1Macros

    Permalink
  64. trait IsCons1Macros extends CaseClassMacros

    Permalink
  65. trait IsHCons1[L[_], FH[_[_]], FT[_[_]]] extends Serializable

    Permalink
  66. trait IsHCons10 extends AnyRef

    Permalink
  67. class IsHCons1Macros extends IsCons1Macros

    Permalink
  68. class IsTuple[T] extends Serializable

    Permalink
  69. trait KeyConstraint[L <: HList, M <: HList] extends Serializable

    Permalink

    Type class witnessing that every element of L is of the form FieldType[K, V] where K is an element of M.

  70. trait LPLens[S, A] extends Dynamic with Serializable

    Permalink
  71. trait LPPath[T <: HList] extends Dynamic

    Permalink
  72. trait LPPrism[S, A] extends Dynamic with Serializable

    Permalink
  73. trait LUBConstraint[L <: HList, B] extends Serializable

    Permalink

    Type class witnessing that every element of L is a subtype of B.

  74. trait LabelledGeneric[T] extends Serializable

    Permalink

    LabelledGeneric is similar to Generic, but includes information about field names or class names in addition to the raw structure.

    LabelledGeneric is similar to Generic, but includes information about field names or class names in addition to the raw structure.

    Continuing the example from shapeless.Generic, we use LabelledGeneric to convert an object to an shapeless.HList:

    scala> val lgenDog = LabelledGeneric[Dog]
    lgenDog: shapeless.LabelledGeneric[Dog]{ type Repr = Record.`'name -> String, 'bonesHidden -> Int`.T } = ...
    
    scala> lgenDog.to(odie)
    res15: lgenDog.Repr = odie :: 3 :: HNil

    Note that the representation does not include the labels! The labels are actually encoded in the generic type representation using shapeless.Witness types.

    As with shapeless.Generic, the representation for Animal captures the subclass embedding rather than the fields in the class, using shapeless.Coproduct:

    scala> val lgenAnimal = LabelledGeneric[Animal]
    lgenAnimal: shapeless.LabelledGeneric[Animal]{ type Repr = Union.`'Cat -> Cat, 'Dog -> Dog`.T } = ...
    
    scala> lgenAnimal.to(odie)
    res16: lgenAnimal.Repr = Dog(odie,3)
    
    scala> genAnimal.to(odie) match { case Inr(Inl(dog)) => dog ; case _ => ???}
    res19: Dog = Dog(odie,3)
    T

    the type which this instance can convert to and from a labelled generic representation

  75. class LabelledMacros extends SingletonTypeUtils with CaseClassMacros

    Permalink
  76. trait LabelledProductTypeClass[C[_]] extends Serializable

    Permalink

    A type class abstracting over the product operation of type classes over types of kind *, as well as deriving instances using an isomorphism.

    A type class abstracting over the product operation of type classes over types of kind *, as well as deriving instances using an isomorphism. Refines ProductTypeClass with the addition of runtime String labels corresponding to the names of the product elements.

  77. trait LabelledProductTypeClassCompanion[C[_]] extends Serializable

    Permalink
  78. trait LabelledTypeClass[C[_]] extends LabelledProductTypeClass[C]

    Permalink

    A type class additionally abstracting over the coproduct operation of type classes over types of kind *.

    A type class additionally abstracting over the coproduct operation of type classes over types of kind *.

    Name hints can be safely ignored.

  79. trait LabelledTypeClassCompanion[C[_]] extends LabelledProductTypeClassCompanion[C]

    Permalink
  80. trait Lazy[+T] extends Serializable

    Permalink

    Wraps a lazily computed value.

    Wraps a lazily computed value. Also circumvents cycles during implicit search, or wrong implicit divergences as illustrated below, and holds the corresponding implicit value lazily.

    The following implicit search sometimes fails to compile, because of a wrongly reported implicit divergence,

    case class ListCC(list: List[CC])
    case class CC(i: Int, s: String)
    
    trait TC[T]
    
    object TC {
      implicit def intTC: TC[Int] = ???
      implicit def stringTC: TC[String] = ???
      implicit def listTC[T](implicit underlying: TC[T]): TC[List[T]] = ???
    
      implicit def genericTC[F, G](implicit
        gen: Generic.Aux[F, G],
        underlying: TC[G]
      ): TC[F] = ???
    
      implicit def hnilTC: TC[HNil] = ???
    
      implicit def hconsTC[H, T <: HList](implicit
        headTC: TC[H],
        tailTC: TC[T]
      ): TC[H :: T] = ???
    }
    
    implicitly[TC[CC]] // fails with: diverging implicit expansion for type TC[CC]

    This wrongly reported implicit divergence can be circumvented by wrapping some of the implicit values in Lazy,

    case class ListCC(list: List[CC])
    case class CC(i: Int, s: String)
    
    trait TC[T]
    
    object TC {
      implicit def listTC[T](implicit underlying: TC[T]): TC[List[T]] = ???
    
      implicit def genericTC[F, G](implicit
        gen: Generic.Aux[F, G],
        underlying: Lazy[TC[G]] // wrapped in Lazy
      ): TC[F] = ???
    
      implicit def hnilTC: TC[HNil] = ???
    
      implicit def hconsTC[H, T <: HList](implicit
        headTC: Lazy[TC[H]], // wrapped in Lazy
        tailTC: TC[T]
      ): TC[H :: T] = ???
    }
    
    implicitly[TC[CC]]

    When looking for an implicit Lazy[TC[T]], the Lazy.mkLazy macro will itself trigger the implicit search for a TC[T]. If this search itself triggers searches for types wrapped in Lazy, these will be done only once, their result put in a lazy val, and a reference to this lazy val will be returned as the corresponding value. It will then wrap all the resulting values together, and return a reference to the first one.

    E.g. with the above example definitions, when looking up for an implicit TC[CC], the returned tree roughly looks like

    TC.genericTC(
      Generic[CC], // actually, the tree returned by Generic.materialize, not written here for the sake of brevity
      Lazy {
        lazy val impl1: TC[List[CC] :: HNil] = TC.hconsTC(
          Lazy(impl2),
          TC.hnilTC
        )
        lazy val impl2: TC[List[CC]] = TC.listTC(TC.genericTC(
          Generic[CC], // actually, the tree returned by Generic.materialize
          Lazy(impl1)  // cycles to the initial TC[List[CC] :: HNil]
        ))
    
        impl1
      }
    )
    Annotations
    @implicitNotFound( ... )
  81. class LazyMacros extends CaseClassMacros with OpenImplicitMacros with LowPriorityTypes

    Permalink
  82. class LazyMacrosRef extends AnyRef

    Permalink
  83. trait Lens[S, A] extends LPLens[S, A]

    Permalink
  84. sealed trait LowPriority extends Serializable

    Permalink

    Evidence that no implicit instance of the same type as the one being currently searched is available elsewhere.

    Evidence that no implicit instance of the same type as the one being currently searched is available elsewhere.

    Added to an implicit def like

    implicit def genericThing[F, G]
     (implicit
       ev: LowPriority,
       gen: Generic.Aux[F, G],
       underlying: Thing[G]
     ): Thing[F] = ???

    it prevents genericThing to provide an instance of Thing[F] if an implicit one is already available elsewhere. This effectively gives genericThing a lower priority than the already existing implicits - without having to deal with cumbersome priority scoping.

  85. class LowPriorityMacros extends OpenImplicitMacros with LowPriorityTypes

    Permalink
  86. trait LowPriorityMkPathOptic extends AnyRef

    Permalink
  87. trait LowPriorityMkSelectDynamicOptic extends AnyRef

    Permalink
  88. trait LowPrioritySegment extends AnyRef

    Permalink
  89. trait LowPrioritySized extends AnyRef

    Permalink
  90. trait LowPriorityTypeable extends AnyRef

    Permalink
  91. trait LowPriorityTypes extends AnyRef

    Permalink
  92. trait LowPriorityUnaryTCConstraint extends LowPriorityUnaryTCConstraint0

    Permalink
  93. trait LowPriorityUnaryTCConstraint0 extends AnyRef

    Permalink
  94. trait LowPriorityUnwrappedInstances extends AnyRef

    Permalink
  95. trait LowPriorityWitnessWith extends AnyRef

    Permalink
  96. trait Lub[-A, -B, Out] extends Serializable

    Permalink

    Type class witnessing the least upper bound of a pair of types and providing conversions from each to their common supertype.

  97. trait MkCoproductSelectPrism[C <: Coproduct, T] extends Serializable

    Permalink
  98. trait MkCtorPrism[A, B] extends AnyRef

    Permalink
  99. trait MkFieldLens[A, K] extends AnyRef

    Permalink
  100. trait MkGenericLens[T] extends Serializable

    Permalink
  101. trait MkHListNthLens[L <: HList, N <: Nat] extends Serializable

    Permalink
  102. trait MkHListSelectLens[L <: HList, U] extends Serializable

    Permalink
  103. trait MkLabelledGenericLens[T] extends Serializable

    Permalink
  104. trait MkNthFieldLens[A, N <: Nat] extends AnyRef

    Permalink
  105. trait MkPathOptic[S, P <: HList] extends AnyRef

    Permalink
  106. trait MkRecordSelectLens[R <: HList, K] extends Serializable

    Permalink
  107. trait MkSelectDynamicOptic[R, A, K, B] extends AnyRef

    Permalink
  108. trait Nat extends AnyRef

    Permalink

    Base trait for type level natural numbers.

  109. trait NatMacroDefns extends AnyRef

    Permalink
  110. class NatMacros extends NatMacroDefns

    Permalink
  111. trait NatProductArgs extends Dynamic

    Permalink

    Trait supporting mapping dynamic argument lists of Ints to HList of Nat arguments.

    Trait supporting mapping dynamic argument lists of Ints to HList of Nat arguments.

    Mixing in this trait enables method applications of the form,

    lhs.method(1, 2, 3)

    to be rewritten as,

    lhs.methodProduct(_1 :: _2 :: _3)

    ie. the arguments are rewritten as HList elements of Nat and the application is rewritten to an application of an implementing method (identified by the "Product" suffix) which accepts a single HList of Int argument.

  112. trait NatTRel0 extends AnyRef

    Permalink
  113. trait NatWith[TC[_ <: Nat]] extends AnyRef

    Permalink
  114. trait Nats extends AnyRef

    Permalink
  115. trait OpenImplicitMacros extends AnyRef

    Permalink
  116. trait OpticComposer[L, R] extends AnyRef

    Permalink
  117. case class Orphan[F[_], D, T](instance: F[T]) extends Product with Serializable

    Permalink
  118. trait OrphanDeriver[F[_], D] extends AnyRef

    Permalink
  119. class OrphanMacros extends CaseClassMacros

    Permalink
  120. trait Path[T <: HList] extends LPPath[T]

    Permalink
  121. trait Poly extends PolyApply with Serializable

    Permalink

    Base trait for polymorphic values.

  122. trait Poly0 extends Poly

    Permalink

    Trait simplifying the creation of polymorphic values.

  123. trait Poly1 extends Poly

    Permalink
  124. trait Poly10 extends Poly

    Permalink
  125. trait Poly11 extends Poly

    Permalink
  126. trait Poly12 extends Poly

    Permalink
  127. trait Poly13 extends Poly

    Permalink
  128. trait Poly14 extends Poly

    Permalink
  129. trait Poly15 extends Poly

    Permalink
  130. trait Poly16 extends Poly

    Permalink
  131. trait Poly17 extends Poly

    Permalink
  132. trait Poly18 extends Poly

    Permalink
  133. trait Poly19 extends Poly

    Permalink
  134. trait Poly2 extends Poly

    Permalink
  135. trait Poly20 extends Poly

    Permalink
  136. trait Poly21 extends Poly

    Permalink
  137. trait Poly22 extends Poly

    Permalink
  138. trait Poly3 extends Poly

    Permalink
  139. trait Poly4 extends Poly

    Permalink
  140. trait Poly5 extends Poly

    Permalink
  141. trait Poly6 extends Poly

    Permalink
  142. trait Poly7 extends Poly

    Permalink
  143. trait Poly8 extends Poly

    Permalink
  144. trait Poly9 extends Poly

    Permalink
  145. trait PolyApply extends AnyRef

    Permalink
  146. trait PolyInst extends AnyRef

    Permalink
  147. class PolyMacros extends AnyRef

    Permalink
  148. trait PolymorphicEqualityFacet extends ProductISOFacet

    Permalink
  149. trait Prism[S, A] extends LPPrism[S, A]

    Permalink
  150. trait ProductArgs extends Dynamic

    Permalink

    Trait supporting mapping dynamic argument lists to HList arguments.

    Trait supporting mapping dynamic argument lists to HList arguments.

    Mixing in this trait enables method applications of the form,

    lhs.method(23, "foo", true)

    to be rewritten as,

    lhs.methodProduct(23 :: "foo" :: true)

    ie. the arguments are rewritten as HList elements and the application is rewritten to an application of an implementing method (identified by the "Product" suffix) which accepts a single HList argument.

  151. trait ProductFacet extends ProductISOFacet

    Permalink
  152. trait ProductISOFacet extends CaseClassFacet

    Permalink
  153. trait ProductLensBuilder[C, P <: Product] extends Lens[C, P]

    Permalink
  154. class ProductMacros extends SingletonTypeUtils with NatMacroDefns

    Permalink
  155. trait ProductPrismBuilder[C, P <: Product] extends Prism[C, P]

    Permalink
  156. trait ProductTypeClass[C[_]] extends Serializable

    Permalink

    A type class abstracting over the product operation of type classes over types of kind *, as well as deriving instances using an isomorphism.

  157. trait ProductTypeClassCompanion[C[_]] extends Serializable

    Permalink
  158. trait RecordArgs extends Dynamic

    Permalink

    Trait supporting mapping named argument lists to record arguments.

    Trait supporting mapping named argument lists to record arguments.

    Mixing in this trait enables method applications of the form,

    lhs.method(x = 23, y = "foo", z = true)

    to be rewritten as,

    lhs.methodRecord('x ->> 23 :: 'y ->> "foo", 'z ->> true)

    ie. the named arguments are rewritten as record fields with the argument name encoded as a singleton-typed Symbol and the application is rewritten to an application of an implementing method (identified by the "Record" suffix) which accepts a single record argument.

  159. class RecordMacros extends AnyRef

    Permalink
  160. trait ReprTypes extends AnyRef

    Permalink
  161. trait Segment[P, S, T <: HList] extends AnyRef

    Permalink
  162. trait Select[T] extends AnyRef

    Permalink
  163. trait SingletonProductArgs extends Dynamic

    Permalink

    Trait supporting mapping dynamic argument lists to singleton-typed HList arguments.

    Trait supporting mapping dynamic argument lists to singleton-typed HList arguments.

    Mixing in this trait enables method applications of the form,

    lhs.method(23, "foo", true)

    to be rewritten as,

    lhs.methodProduct(23.narrow :: "foo".narrow :: true.narrow)

    ie. the arguments are rewritten as singleton-typed HList elements and the application is rewritten to an application of an implementing method (identified by the "Product" suffix) which accepts a single HList argument.

  164. class SingletonTypeMacros extends SingletonTypeUtils with NatMacroDefns

    Permalink
  165. trait SingletonTypeUtils extends ReprTypes

    Permalink
  166. final class Sized[+Repr, L <: Nat] extends AnyRef

    Permalink

    Wrapper for a collection type witnessing that it has the statically specified length.

    Wrapper for a collection type witnessing that it has the statically specified length. Can be applied to any type which can be viewed as a GenTraversableLike, ie. standard collections, Arrays, Strings etc.

  167. class SizedBuilder[CC[_]] extends AnyRef

    Permalink
  168. class SizedOps[A0, Repr, L <: Nat] extends AnyRef

    Permalink

    Carrier for Sized operations.

    Carrier for Sized operations.

    These operations are implemented here as extension methods of the minimal Sized type to avoid issues that would otherwise be caused by its covariance.

  169. trait Split1[L[_], FO[_[_]], FI[_[_]]] extends Serializable

    Permalink
  170. trait Split10 extends AnyRef

    Permalink
  171. class Split1Macros extends CaseClassMacros

    Permalink
  172. trait Strict[+T] extends Serializable

    Permalink

    Wraps an eagerly computed value.

    Wraps an eagerly computed value. Prevents wrongly reported implicit divergence, like Lazy does, but, unlike it, does not circumvent implicit cycles.

    Creation of Lazy instances usually triggers the creation of an anonymous class, to compute the wrapped value (e.g. with the by-name argument of Lazy.apply). Strict avoids that, which can lead to less overhead during compilation.

  173. case class Succ[P <: Nat]() extends Nat with Product with Serializable

    Permalink

    Encoding of successor.

  174. class TestMacros extends AnyRef

    Permalink
  175. class TheMacros extends AnyRef

    Permalink
  176. trait ToStringFacet extends ProductFacet

    Permalink
  177. trait TupleTypeableInstances extends AnyRef

    Permalink
  178. trait TypeCase[T] extends Serializable

    Permalink

    Extractor for use of Typeable in pattern matching.

    Extractor for use of Typeable in pattern matching.

    Thanks to Stacy Curl for the idea.

  179. trait TypeClass[C[_]] extends ProductTypeClass[C]

    Permalink

    A type class additionally abstracting over the coproduct operation of type classes over types of kind *.

  180. trait TypeClassCompanion[C[_]] extends ProductTypeClassCompanion[C]

    Permalink
  181. trait Typeable[T] extends Serializable

    Permalink

    Type class supporting type safe cast.

  182. class TypeableMacros extends SingletonTypeUtils

    Permalink
  183. trait UnaryTCConstraint[L <: HList, TC[_]] extends Serializable

    Permalink

    Type class witnessing that every element of L has TC as its outer type constructor.

  184. class UnionMacros extends AnyRef

    Permalink
  185. trait Unpack1[-PP, FF[_], A] extends AnyRef

    Permalink

    Type class witnessing that type PP is equal to FF[A] for some higher kinded type FF[_] and type(s) A.

  186. trait Unpack10[-PP, FF[_, _, _, _, _, _, _, _, _, _], A, B, C, D, E, F, G, H, I, J] extends AnyRef

    Permalink

    Type class witnessing that type PP is equal to FF[A, B, C, D, E, F, G, H, I, J] for some higher kinded type FF[_, _, _, _, _, _, _, _, _, _] and type(s) A, B, C, D, E, F, G, H, I, J.

  187. trait Unpack11[-PP, FF[_, _, _, _, _, _, _, _, _, _, _], A, B, C, D, E, F, G, H, I, J, K] extends AnyRef

    Permalink

    Type class witnessing that type PP is equal to FF[A, B, C, D, E, F, G, H, I, J, K] for some higher kinded type FF[_, _, _, _, _, _, _, _, _, _, _] and type(s) A, B, C, D, E, F, G, H, I, J, K.

  188. trait Unpack12[-PP, FF[_, _, _, _, _, _, _, _, _, _, _, _], A, B, C, D, E, F, G, H, I, J, K, L] extends AnyRef

    Permalink

    Type class witnessing that type PP is equal to FF[A, B, C, D, E, F, G, H, I, J, K, L] for some higher kinded type FF[_, _, _, _, _, _, _, _, _, _, _, _] and type(s) A, B, C, D, E, F, G, H, I, J, K, L.

  189. trait Unpack13[-PP, FF[_, _, _, _, _, _, _, _, _, _, _, _, _], A, B, C, D, E, F, G, H, I, J, K, L, M] extends AnyRef

    Permalink

    Type class witnessing that type PP is equal to FF[A, B, C, D, E, F, G, H, I, J, K, L, M] for some higher kinded type FF[_, _, _, _, _, _, _, _, _, _, _, _, _] and type(s) A, B, C, D, E, F, G, H, I, J, K, L, M.

  190. trait Unpack14[-PP, FF[_, _, _, _, _, _, _, _, _, _, _, _, _, _], A, B, C, D, E, F, G, H, I, J, K, L, M, N] extends AnyRef

    Permalink

    Type class witnessing that type PP is equal to FF[A, B, C, D, E, F, G, H, I, J, K, L, M, N] for some higher kinded type FF[_, _, _, _, _, _, _, _, _, _, _, _, _, _] and type(s) A, B, C, D, E, F, G, H, I, J, K, L, M, N.

  191. trait Unpack15[-PP, FF[_, _, _, _, _, _, _, _, _, _, _, _, _, _, _], A, B, C, D, E, F, G, H, I, J, K, L, M, N, O] extends AnyRef

    Permalink

    Type class witnessing that type PP is equal to FF[A, B, C, D, E, F, G, H, I, J, K, L, M, N, O] for some higher kinded type FF[_, _, _, _, _, _, _, _, _, _, _, _, _, _, _] and type(s) A, B, C, D, E, F, G, H, I, J, K, L, M, N, O.

  192. trait Unpack16[-PP, FF[_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _], A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P] extends AnyRef

    Permalink

    Type class witnessing that type PP is equal to FF[A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P] for some higher kinded type FF[_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _] and type(s) A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P.

  193. trait Unpack17[-PP, FF[_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _], A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q] extends AnyRef

    Permalink

    Type class witnessing that type PP is equal to FF[A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q] for some higher kinded type FF[_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _] and type(s) A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q.

  194. trait Unpack18[-PP, FF[_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _], A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R] extends AnyRef

    Permalink

    Type class witnessing that type PP is equal to FF[A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R] for some higher kinded type FF[_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _] and type(s) A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R.

  195. trait Unpack19[-PP, FF[_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _], A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S] extends AnyRef

    Permalink

    Type class witnessing that type PP is equal to FF[A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S] for some higher kinded type FF[_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _] and type(s) A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S.

  196. trait Unpack2[-PP, FF[_, _], A, B] extends AnyRef

    Permalink

    Type class witnessing that type PP is equal to FF[A, B] for some higher kinded type FF[_, _] and type(s) A, B.

  197. trait Unpack20[-PP, FF[_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _], A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T] extends AnyRef

    Permalink

    Type class witnessing that type PP is equal to FF[A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T] for some higher kinded type FF[_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _] and type(s) A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T.

  198. trait Unpack21[-PP, FF[_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _], A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U] extends AnyRef

    Permalink

    Type class witnessing that type PP is equal to FF[A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U] for some higher kinded type FF[_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _] and type(s) A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U.

  199. trait Unpack22[-PP, FF[_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _], A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V] extends AnyRef

    Permalink

    Type class witnessing that type PP is equal to FF[A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V] for some higher kinded type FF[_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _] and type(s) A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V.

  200. trait Unpack3[-PP, FF[_, _, _], A, B, C] extends AnyRef

    Permalink

    Type class witnessing that type PP is equal to FF[A, B, C] for some higher kinded type FF[_, _, _] and type(s) A, B, C.

  201. trait Unpack4[-PP, FF[_, _, _, _], A, B, C, D] extends AnyRef

    Permalink

    Type class witnessing that type PP is equal to FF[A, B, C, D] for some higher kinded type FF[_, _, _, _] and type(s) A, B, C, D.

  202. trait Unpack5[-PP, FF[_, _, _, _, _], A, B, C, D, E] extends AnyRef

    Permalink

    Type class witnessing that type PP is equal to FF[A, B, C, D, E] for some higher kinded type FF[_, _, _, _, _] and type(s) A, B, C, D, E.

  203. trait Unpack6[-PP, FF[_, _, _, _, _, _], A, B, C, D, E, F] extends AnyRef

    Permalink

    Type class witnessing that type PP is equal to FF[A, B, C, D, E, F] for some higher kinded type FF[_, _, _, _, _, _] and type(s) A, B, C, D, E, F.

  204. trait Unpack7[-PP, FF[_, _, _, _, _, _, _], A, B, C, D, E, F, G] extends AnyRef

    Permalink

    Type class witnessing that type PP is equal to FF[A, B, C, D, E, F, G] for some higher kinded type FF[_, _, _, _, _, _, _] and type(s) A, B, C, D, E, F, G.

  205. trait Unpack8[-PP, FF[_, _, _, _, _, _, _, _], A, B, C, D, E, F, G, H] extends AnyRef

    Permalink

    Type class witnessing that type PP is equal to FF[A, B, C, D, E, F, G, H] for some higher kinded type FF[_, _, _, _, _, _, _, _] and type(s) A, B, C, D, E, F, G, H.

  206. trait Unpack9[-PP, FF[_, _, _, _, _, _, _, _, _], A, B, C, D, E, F, G, H, I] extends AnyRef

    Permalink

    Type class witnessing that type PP is equal to FF[A, B, C, D, E, F, G, H, I] for some higher kinded type FF[_, _, _, _, _, _, _, _, _] and type(s) A, B, C, D, E, F, G, H, I.

  207. trait Unwrapped[W] extends Serializable

    Permalink
  208. trait UnwrappedInstances extends LowPriorityUnwrappedInstances

    Permalink
  209. trait ValueConstraint[L <: HList, M <: HList] extends Serializable

    Permalink

    Type class witnessing that every element of L is of the form FieldType[K, V] where V is an element of M.

  210. trait Widen[T] extends DepFn1[T]

    Permalink

    Provides the widen type of a singleton type.

    Provides the widen type of a singleton type.

    Type member Out of an implicitly available Witness[T] instance is the widen type of T, and the apply method explicitly converts a T to an Out.

    E.g. if T is Witness.2.T, Out is Int.

    It somehow complements Witness, providing the corresponding non-witnessed standard type, if any.

    Example of use, {{ val w = Widen[Witness.2.T] // w.Out is Int // w(2) is typed as Int }}

  211. trait Witness extends Serializable

    Permalink
  212. trait WitnessWith[TC[_]] extends Witness

    Permalink
  213. case class WrappedOrphan[T](instance: T) extends Product with Serializable

    Permalink
  214. case class Zipper[C, L <: HList, R <: HList, P](prefix: L, suffix: R, parent: P) extends Product with Serializable

    Permalink

    Generic Zipper for any type with a representation via Generic.

  215. class _0 extends Nat with Serializable

    Permalink

    Encoding of zero.

  216. class nonGeneric extends scala.annotation.Annotation with StaticAnnotation

    Permalink
  217. type |¬|[T] = AnyRef { type λ[U] = shapeless.package.<:!<[U,T] }

    Permalink
  218. type |∨|[T, U] = AnyRef { type λ[X] = <:<[shapeless.package.¬¬[X],shapeless.package.∨[T,U]] }

    Permalink
  219. class ~?>[K[_], V[_]] extends Serializable

    Permalink

    Type class witnessing the existence of a natural transformation between K[_] and V[_].

    Type class witnessing the existence of a natural transformation between K[_] and V[_].

    Use this trait to represent an HMap relation of the form K[T] maps to V[T].

  220. type ¬[T] = (T) ⇒ Nothing

    Permalink
  221. type ¬¬[T] = (¬[T]) ⇒ Nothing

    Permalink
  222. type [P[_]] = ([[X](P[X]) ⇒ Nothing]) ⇒ Nothing

    Permalink
  223. type [P[_]] = P[_]

    Permalink
  224. type [T, U] = T with U

    Permalink
  225. type [T, U] = ([¬[T], ¬[U]]) ⇒ Nothing

    Permalink

Value Members

  1. object AdditiveCollection extends Serializable

    Permalink
  2. object Annotation extends Serializable

    Permalink
  3. object Annotations extends Serializable

    Permalink
  4. object BasisConstraint extends Serializable

    Permalink
  5. object BuildInfo extends Product with Serializable

    Permalink

    This object was generated by sbt-buildinfo.

  6. object Cached extends Serializable

    Permalink
  7. object CachedMacros

    Permalink
  8. object Coproduct extends Dynamic with Serializable

    Permalink
  9. object Data extends Data1 with Serializable

    Permalink
  10. object DataT extends DataT1 with Serializable

    Permalink
  11. object Default extends Serializable

    Permalink
  12. object DefaultSymbolicLabelling extends Serializable

    Permalink
  13. object EverythingAux extends Serializable

    Permalink
  14. object EverywhereAux extends Serializable

    Permalink
  15. object Fin

    Permalink
  16. object Generic extends Serializable

    Permalink

    The companion object for the Generic trait provides a way of obtaining a Generic[T] instance for some T.

    The companion object for the Generic trait provides a way of obtaining a Generic[T] instance for some T. In addition, it defines Generic.Aux, which is an important implementation technique that can be generally useful.

  17. object Generic1 extends Generic10 with Serializable

    Permalink
  18. object HList extends Dynamic with Serializable

    Permalink
  19. object HMap extends Serializable

    Permalink
  20. object HNil extends HNil with Product with Serializable

    Permalink

    Empty HList value.

  21. object HasCoproductGeneric extends Serializable

    Permalink
  22. object HasProductGeneric extends Serializable

    Permalink
  23. object InferProduct

    Permalink
  24. object IsCCons1 extends IsCCons10 with Serializable

    Permalink
  25. object IsHCons1 extends IsHCons10 with Serializable

    Permalink
  26. object IsTuple extends Serializable

    Permalink
  27. object KeyConstraint extends Serializable

    Permalink
  28. object LUBConstraint extends Serializable

    Permalink
  29. object LabelledGeneric extends Serializable

    Permalink
  30. object Lazy extends Serializable

    Permalink
  31. object LazyMacros

    Permalink
  32. object LowPriority extends Serializable

    Permalink
  33. object Lub extends Serializable

    Permalink
  34. object MkCoproductSelectPrism extends Serializable

    Permalink
  35. object MkCtorPrism

    Permalink
  36. object MkFieldLens

    Permalink
  37. object MkGenericLens extends Serializable

    Permalink
  38. object MkHListNthLens extends Serializable

    Permalink
  39. object MkHListSelectLens extends Serializable

    Permalink
  40. object MkLabelledGenericLens extends Serializable

    Permalink
  41. object MkNthFieldLens

    Permalink
  42. object MkPathOptic extends LowPriorityMkPathOptic

    Permalink
  43. object MkRecordSelectLens extends Serializable

    Permalink
  44. object MkSelectDynamicOptic extends LowPriorityMkSelectDynamicOptic

    Permalink
  45. object Nat extends Nats

    Permalink

    Type level encoding of the natural numbers.

  46. object NatWith

    Permalink
  47. object OpticComposer

    Permalink
  48. object OpticDefns

    Permalink
  49. object Orphan extends Serializable

    Permalink
  50. object Path extends Path[HNil]

    Permalink
  51. object Poly extends PolyInst with Serializable

    Permalink

    Provides implicit conversions from polymorphic function values to monomorphic function values, eg.

    Provides implicit conversions from polymorphic function values to monomorphic function values, eg. for use as arguments to ordinary higher order functions.

  52. object PolyDefns extends Cases

    Permalink
  53. object Segment extends LowPrioritySegment

    Permalink
  54. object Sized extends LowPrioritySized

    Permalink
  55. object Split1 extends Split10 with Serializable

    Permalink
  56. object Strict extends Serializable

    Permalink
  57. object Tuple

    Permalink
  58. object TypeCase extends Serializable

    Permalink
  59. object Typeable extends TupleTypeableInstances with LowPriorityTypeable with Serializable

    Permalink

    Provides instances of Typeable.

    Provides instances of Typeable. Also provides an implicit conversion which enhances arbitrary values with a cast[T] method.

  60. object UnaryTCConstraint extends LowPriorityUnaryTCConstraint with Serializable

    Permalink
  61. object Unpack1

    Permalink
  62. object Unpack10

    Permalink
  63. object Unpack11

    Permalink
  64. object Unpack12

    Permalink
  65. object Unpack13

    Permalink
  66. object Unpack14

    Permalink
  67. object Unpack15

    Permalink
  68. object Unpack16

    Permalink
  69. object Unpack17

    Permalink
  70. object Unpack18

    Permalink
  71. object Unpack19

    Permalink
  72. object Unpack2

    Permalink
  73. object Unpack20

    Permalink
  74. object Unpack21

    Permalink
  75. object Unpack22

    Permalink
  76. object Unpack3

    Permalink
  77. object Unpack4

    Permalink
  78. object Unpack5

    Permalink
  79. object Unpack6

    Permalink
  80. object Unpack7

    Permalink
  81. object Unpack8

    Permalink
  82. object Unpack9

    Permalink
  83. object Unwrapped extends UnwrappedInstances with Serializable

    Permalink
  84. object ValueConstraint extends Serializable

    Permalink
  85. object Widen

    Permalink
  86. object Witness extends Dynamic with Serializable

    Permalink
  87. object WitnessWith extends LowPriorityWitnessWith with Serializable

    Permalink
  88. object WrappedOrphan extends Serializable

    Permalink
  89. object Zipper extends Serializable

    Permalink
  90. val ^: Path.type

    Permalink
  91. macro def cachedImplicit[T]: T

    Permalink
  92. def everything(f: Poly): ApplyEverything[f.type]

    Permalink
  93. def everywhere(f: Poly): EverywhereAux[f.type]

    Permalink
  94. val fin: Fin.type

    Permalink

    'Fin'

  95. object labelled

    Permalink
  96. object lazily

    Permalink
  97. val lens: OpticDefns.type

    Permalink
  98. val nat: Nat.type

    Permalink

    Nat literals

  99. implicit def neq[A, B]: =:!=[A, B]

    Permalink
  100. implicit def neqAmbig1[A]: =:!=[A, A]

    Permalink
  101. implicit def neqAmbig2[A]: =:!=[A, A]

    Permalink
  102. object newtype

    Permalink
  103. implicit def nsub[A, B]: <:!<[A, B]

    Permalink
  104. implicit def nsubAmbig1[A, B >: A]: <:!<[A, B]

    Permalink
  105. implicit def nsubAmbig2[A, B >: A]: <:!<[A, B]

    Permalink
  106. package ops

    Permalink
  107. val optic: OpticDefns.type

    Permalink

    Optic definitions

  108. val poly: PolyDefns.type

    Permalink

    Poly definitions

  109. val prism: OpticDefns.type

    Permalink
  110. object productElements extends Poly1

    Permalink

    Higher ranked function which converts products to HLists.

  111. object record

    Permalink

    Record operations on HList's with field-like elements.

  112. package syntax

    Permalink
  113. object tag

    Permalink
  114. package test

    Permalink
  115. object the extends Dynamic

    Permalink

    An enhanced alternative to Predef.implicitly.

    An enhanced alternative to Predef.implicitly.

    Used as a term the[T] yields the unique implicit value of type T in the current implicit scope, if any. It is a compile time error if there is no such value. Its primary advantage over Predef.implicitly is that it will preserve any refinement that the implicit definition has, resulting in more precisely typed, and hence often more useful, values,

    scala> trait Foo { type T ; val t: T }
    defined trait Foo
    
    scala> implicit val intFoo: Foo { type T = Int } = new Foo { type T = Int ; val t = 23 }
    intFoo: Foo{type T = Int} = $anon$1@6067b682
    
    scala> implicitly[Foo].t  // implicitly loses precision
    res0: Foo#T = 23
    
    scala> implicitly[Foo].t+13
    <console>:13: error: type mismatch;
     found   : Int(13)
     required: String
                  implicitly[Foo].t+13
                                    ^
    
    scala> the[Foo].t         // the retains it
    res1: Int = 23
    
    scala> the[Foo].t+13
    res2: Int = 36

    Unlike implicitly, the can also be used in type position, thanks to a trick due to Denys Shabalin (@den_sh) and Eugene Burmako (@xeno_by). Here we use a combination of selectDynamic and backticks to embed a type in a path which appears to the compiler as stable,

    scala> val i: implicitly[Foo].T = 23  // syntax error
    <console>:1: error: ';' expected but '.' found.
           val i: implicitly[Foo].T = 23
                                 ^
    scala> val i: the.`Foo`.T = 23        // OK
    i: Int = 23
  116. object tupled extends Poly1

    Permalink

    Higher ranked function which converts HLists to tuples.

  117. def unexpected: Nothing

    Permalink
  118. object union

    Permalink
  119. object ~?> extends NatTRel0 with Serializable

    Permalink

Inherited from AnyRef

Inherited from Any

Ungrouped