From c101cdac1817801853b0deb22aa1c32bad8acc44 Mon Sep 17 00:00:00 2001 From: Quinn Date: Wed, 20 Apr 2022 11:54:17 -0400 Subject: [PATCH] update signature for `result` --- .../src/rescript/Distributions/SymbolicDist/SymbolicDist.res | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/squiggle-lang/src/rescript/Distributions/SymbolicDist/SymbolicDist.res b/packages/squiggle-lang/src/rescript/Distributions/SymbolicDist/SymbolicDist.res index c67c2bba..dcc9bd5e 100644 --- a/packages/squiggle-lang/src/rescript/Distributions/SymbolicDist/SymbolicDist.res +++ b/packages/squiggle-lang/src/rescript/Distributions/SymbolicDist/SymbolicDist.res @@ -86,7 +86,8 @@ module Exponential = { module Cauchy = { type t = cauchy - let make = (local, scale): symbolicDist => Ok(#Cauchy({local: local, scale: scale})) + let make = (local, scale): result => + Ok(#Cauchy({local: local, scale: scale})) let pdf = (x, t: t) => Jstat.Cauchy.pdf(x, t.local, t.scale) let cdf = (x, t: t) => Jstat.Cauchy.cdf(x, t.local, t.scale) let inv = (p, t: t) => Jstat.Cauchy.inv(p, t.local, t.scale)