Evidence that states if the conclusion C
can be inferred from the
premise P
or not.
Type class for validating values of type T
according to a type-level
predicate P
.
Type class for validating values of type T
according to a type-level
predicate P
. The semantics of P
are defined by the instance(s) of
this type class for P
.
Module for numeric predicates.
Module for numeric predicates. Predicates that take type parameters
support both Shapeless' natural numbers (Nat
) and numeric singleton
types (which are made available by Shapeless' Witness
- abbreviated
as W in refined) which include subtypes of Int
, Long
, Double
,
Char
etc.
scala> import shapeless.nat._ | import shapeless.tag.@@ | import eu.timepit.refined.numeric._ scala> refineLit[Greater[_5]](10) res1: Int @@ Greater[_5] = 10 scala> refineLit[Greater[W.`1.5`.T]](1.6) res2: Double @@ Greater[W.`1.5`.T] = 1.6