Formatted Code

This commit is contained in:
Ozzie Gooen 2022-05-24 14:12:49 -04:00
parent 8b0615eec0
commit 5fd5c1c1f8
2 changed files with 3 additions and 3 deletions

View File

@ -96,7 +96,7 @@ export type squiggleExpression =
| tagged<"number", number>
| tagged<"date", Date>
| tagged<"timeDuration", number>
| tagged<"record", { [key: string]: squiggleExpression }>
| tagged<"record", { [key: string]: squiggleExpression }>;
export { lambdaValue };

View File

@ -1,11 +1,11 @@
module ExpressionValue = ReducerInterface_ExpressionValue
type expressionValue = ExpressionValue.expressionValue
let dateDispatch = (call: ExpressionValue.functionCall, env: DistributionOperation.env): option<
let dateDispatch = (call: ExpressionValue.functionCall, _: DistributionOperation.env): option<
result<expressionValue, QuriSquiggleLang.Reducer_ErrorValue.errorValue>,
> => {
switch call {
| ("toString", [EvDate(t)]) => EvString(DateTime.Date.toString(t))->Ok->Some
| ("toString", [EvDate(t)]) => ExpressionValue.EvString(DateTime.Date.toString(t))->Ok->Some
| ("makeDateFromYear", [EvNumber(year)]) =>
switch DateTime.Date.makeFromYear(year) {
| Ok(t) => EvDate(t)->Ok->Some