Skip to content

Commit

Permalink
add BigDecimal and BigInt cache in RefineMacro
Browse files Browse the repository at this point in the history
  • Loading branch information
xuwei-k authored Jan 25, 2024
1 parent 0683e87 commit 796b473
Showing 1 changed file with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,18 @@ class RefineMacro(val c: blackbox.Context) extends MacroUtils with LiteralMatche
instance[Char, LowerCase],
instance[Char, UpperCase],
instance[Char, Whitespace]
),
weakTypeOf[BigInt] -> List(
instance[BigInt, Positive],
instance[BigInt, NonPositive],
instance[BigInt, Negative],
instance[BigInt, NonNegative]
),
weakTypeOf[BigDecimal] -> List(
instance[BigDecimal, Positive],
instance[BigDecimal, NonPositive],
instance[BigDecimal, Negative],
instance[BigDecimal, NonNegative]
)
)
}
Expand Down

0 comments on commit 796b473

Please sign in to comment.