From 8757448900527b1c4c0719394123eefca98ea46a Mon Sep 17 00:00:00 2001 From: Ozzie Gooen Date: Tue, 24 May 2022 14:28:02 -0400 Subject: [PATCH] Trying to appease the CI tests, which are failing here for some reason. --- .../rescript/ReducerInterface/ReducerInterface_DateTime.res | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/squiggle-lang/src/rescript/ReducerInterface/ReducerInterface_DateTime.res b/packages/squiggle-lang/src/rescript/ReducerInterface/ReducerInterface_DateTime.res index 0fcd04e9..17ea5a75 100644 --- a/packages/squiggle-lang/src/rescript/ReducerInterface/ReducerInterface_DateTime.res +++ b/packages/squiggle-lang/src/rescript/ReducerInterface/ReducerInterface_DateTime.res @@ -4,8 +4,9 @@ type expressionValue = ExpressionValue.expressionValue let dateDispatch = (call: ExpressionValue.functionCall, _: DistributionOperation.env): option< result, > => { + open ExpressionValue switch call { - | ("toString", [EvDate(t)]) => ExpressionValue.EvString(DateTime.Date.toString(t))->Ok->Some + | ("toString", [EvDate(t)]) => EvString(DateTime.Date.toString(t))->Ok->Some | ("makeDateFromYear", [EvNumber(year)]) => switch DateTime.Date.makeFromYear(year) { | Ok(t) => EvDate(t)->Ok->Some