diff --git a/packages/squiggle-lang/src/rescript/FunctionRegistry/FunctionRegistry_Core.res b/packages/squiggle-lang/src/rescript/FunctionRegistry/FunctionRegistry_Core.res index 28f55f1c..d76a8cbc 100644 --- a/packages/squiggle-lang/src/rescript/FunctionRegistry/FunctionRegistry_Core.res +++ b/packages/squiggle-lang/src/rescript/FunctionRegistry/FunctionRegistry_Core.res @@ -212,9 +212,9 @@ module FnDefinition = { } let make = (~name, ~inputs, ~run, ()): t => { - name: name, - inputs: inputs, - run: run, + name, + inputs, + run, } } @@ -240,14 +240,14 @@ module Function = { ~isExperimental=false, (), ): t => { - name: name, - nameSpace: nameSpace, - definitions: definitions, - output: output, + name, + nameSpace, + definitions, + output, examples: examples |> E.O.default([]), - isExperimental: isExperimental, - requiresNamespace: requiresNamespace, - description: description, + isExperimental, + requiresNamespace, + description, } let toJson = (t: t): functionJson => { diff --git a/packages/squiggle-lang/src/rescript/FunctionRegistry/Library/FR_GenericDist.res b/packages/squiggle-lang/src/rescript/FunctionRegistry/Library/FR_GenericDist.res index 5d5b4d98..adb510cb 100644 --- a/packages/squiggle-lang/src/rescript/FunctionRegistry/Library/FR_GenericDist.res +++ b/packages/squiggle-lang/src/rescript/FunctionRegistry/Library/FR_GenericDist.res @@ -393,8 +393,6 @@ let library = E.A.concatMany([ makeProxyFn("truncateLeft", [FRTypeDist, FRTypeNumber]), makeProxyFn("truncateRight", [FRTypeDist, FRTypeNumber]), makeProxyFn("truncate", [FRTypeDist, FRTypeNumber, FRTypeNumber]), - // // FIXME - impossible to implement with FR!!! - // | ("mx" | "mixture", args) => Helpers.mixture(args, ~env)->Some makeProxyFn("log", [FRTypeDist]), makeProxyFn("log10", [FRTypeDist]), makeProxyFn("unaryMinus", [FRTypeDist]), diff --git a/packages/squiggle-lang/src/rescript/Reducer/Reducer_T.res b/packages/squiggle-lang/src/rescript/Reducer/Reducer_T.res index b4eb4d43..7e71e343 100644 --- a/packages/squiggle-lang/src/rescript/Reducer/Reducer_T.res +++ b/packages/squiggle-lang/src/rescript/Reducer/Reducer_T.res @@ -5,7 +5,6 @@ type rec value = | IEvArray(arrayValue) | IEvArrayString(array) | IEvBool(bool) - // | IEvCall(string) // External function call | IEvDate(Js.Date.t) | IEvDeclaration(lambdaDeclaration) | IEvDistribution(DistributionTypes.genericDist) @@ -14,7 +13,6 @@ type rec value = | IEvNumber(float) | IEvRecord(map) | IEvString(string) - // | IEvSymbol(string) | IEvTimeDuration(float) | IEvType(map) | IEvTypeIdentifier(string) @@ -26,7 +24,6 @@ and lambdaBody = (array, environment, reducerFn) => value @genType.opaque and lambdaValue = { parameters: array, - // context: nameSpace, body: (array, environment, reducerFn) => value, } @genType.opaque and lambdaDeclaration = Declaration.declaration