parsley.internal.deepembedding.Sign.scala Maven / Gradle / Ivy
/* SPDX-FileCopyrightText: © 2021 Parsley Contributors
* SPDX-License-Identifier: BSD-3-Clause
*/
package parsley.internal.deepembedding
private [parsley] object Sign {
private [parsley] sealed trait SignType {
type resultType
}
private [parsley] case object DoubleType extends SignType {
override type resultType = BigDecimal
}
private [parsley] case object IntType extends SignType {
override type resultType = BigInt
}
private [parsley] case object CombinedType extends SignType {
override type resultType = Either[BigInt, BigDecimal]
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy