Skip to content

Commit

Permalink
Merge pull request #1245 from xuwei-k/patch-2
Browse files Browse the repository at this point in the history
add `BigDecimal` and `BigInt` cache in `RefineMacro`
  • Loading branch information
fthomas authored Jan 26, 2024
2 parents 0683e87 + 796b473 commit 6f6f5d5
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 6f6f5d5

Please sign in to comment.