diff --git a/packages/squiggle-lang/src/rescript/Distributions/PointSetDist/PointSetDist_Scoring.res b/packages/squiggle-lang/src/rescript/Distributions/PointSetDist/PointSetDist_Scoring.res index 1524243d..2e5bb4ed 100644 --- a/packages/squiggle-lang/src/rescript/Distributions/PointSetDist/PointSetDist_Scoring.res +++ b/packages/squiggle-lang/src/rescript/Distributions/PointSetDist/PointSetDist_Scoring.res @@ -3,12 +3,12 @@ module LogScoring = { let subtraction = (a, b) => Ok(a -. b) let logScore = (a: float, b: float): result => if a == 0.0 { - Error(Operation.Error.NegativeInfinityError) + Error(Operation.NegativeInfinityError) } else if b == 0.0 { - Error(Operation.Error.DivideByZeroError) + Error(Operation.DivisionByZeroError) } else { let quot = a /. b - quot < 0.0 ? Error(OperationError.ComplexNumberError) : Ok(logFn(quot)) + quot < 0.0 ? Error(Operation.ComplexNumberError) : Ok(logFn(quot)) } let multiply = (a: float, b: float): result => Ok(a *. b) }