Skip to content

Commit

Permalink
Close #225 - [refined4s-core] Move Numeric and InlinedNumeric from nu…
Browse files Browse the repository at this point in the history
…meric trait to numeric object
  • Loading branch information
kevin-lee committed Jan 3, 2024
1 parent 0004439 commit 0fa4003
Showing 1 changed file with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,7 @@ import refined4s.internal.numericTools
* @since 2023-04-26
*/
trait numeric {

trait Numeric[A: math.Ordering] extends Refined[A], CanBeOrdered[A]

trait InlinedNumeric[A: math.Ordering] extends InlinedRefined[A], CanBeOrdered[A]
import numeric.{InlinedNumeric, Numeric}

type NegInt = NegInt.Type
object NegInt extends Numeric[Int] {
Expand Down Expand Up @@ -372,3 +369,10 @@ trait numeric {
}

}
object numeric {

trait Numeric[A: math.Ordering] extends Refined[A], CanBeOrdered[A]

trait InlinedNumeric[A: math.Ordering] extends InlinedRefined[A], CanBeOrdered[A]

}

0 comments on commit 0fa4003

Please sign in to comment.