All Downloads are FREE. Search and download functionalities are using the official Maven repository.

parsley.internal.deepembedding.Sign.scala Maven / Gradle / Ivy

The newest version!
/*
 * Copyright 2020 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 - 2024 Weber Informatics LLC | Privacy Policy