Skip to content

Commit

Permalink
Add NumericTypesBinCompat1 for binary compatible
Browse files Browse the repository at this point in the history
  • Loading branch information
sh0hei committed Jun 15, 2018
1 parent c62c614 commit 0ee04b0
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 25 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ trait AllTypes
extends CharTypes
with DigestTypes
with NetTypes
with NumericTypes
with NumericTypes with NumericTypesBinCompat1
with StringTypes
with TimeTypes
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package eu.timepit.refined.types

import eu.timepit.refined
import eu.timepit.refined.api.{Refined, RefinedTypeOps}
import eu.timepit.refined.numeric.{Negative, NonNegative, NonPositive, Positive}

Expand Down Expand Up @@ -128,30 +129,6 @@ object numeric {
}

trait NumericTypes {
final type PosByte = numeric.PosByte
final val PosByte = numeric.PosByte

final type NonNegByte = numeric.NonNegByte
final val NonNegByte = numeric.NonNegByte

final type NegByte = numeric.NegByte
final val NegByte = numeric.NegByte

final type NonPosByte = numeric.NonPosByte
final val NonPosByte = numeric.NonPosByte

final type PosShort = numeric.PosShort
final val PosShort = numeric.PosShort

final type NonNegShort = numeric.NonNegShort
final val NonNegShort = numeric.NonNegShort

final type NegShort = numeric.NegShort
final val NegShort = numeric.NegShort

final type NonPosShort = numeric.NonPosShort
final val NonPosShort = numeric.NonPosShort

final type PosInt = numeric.PosInt
final val PosInt = numeric.PosInt

Expand Down Expand Up @@ -200,3 +177,29 @@ trait NumericTypes {
final type NonPosDouble = numeric.NonPosDouble
final val NonPosDouble = numeric.NonPosDouble
}

trait NumericTypesBinCompat1 {
final type PosByte = numeric.PosByte
final val PosByte = numeric.PosByte

final type NonNegByte = numeric.NonNegByte
final val NonNegByte = refined.types.numeric.NonNegByte

final type NegByte = numeric.NegByte
final val NegByte = numeric.NegByte

final type NonPosByte = numeric.NonPosByte
final val NonPosByte = refined.types.numeric.NonPosByte

final type PosShort = numeric.PosShort
final val PosShort = numeric.PosShort

final type NonNegShort = numeric.NonNegShort
final val NonNegShort = numeric.NonNegShort

final type NegShort = numeric.NegShort
final val NegShort = numeric.NegShort

final type NonPosShort = numeric.NonPosShort
final val NonPosShort = numeric.NonPosShort
}

0 comments on commit 0ee04b0

Please sign in to comment.