diff --git a/.prettierignore b/.prettierignore index 68c24941..8a670c22 100644 --- a/.prettierignore +++ b/.prettierignore @@ -9,3 +9,4 @@ packages/website/.docusaurus packages/squiggle-lang/lib packages/squiggle-lang/.nyc_output/ packages/squiggle-lang/coverage/ +packages/squiggle-lang/.cache/ diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index ed7f264f..8a3b026a 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -16,7 +16,7 @@ Squiggle is currently pre-alpha. # Bug reports -Anyone (with a github account) can file an issue at any time. Please allow Quinn, Sam, and Ozzie to triage, but otherwise just follow the suggestions in the issue templates. +Anyone (with a github account) can file an issue at any time. Please allow Quinn, Sam, and Ozzie to triage, but otherwise just follow the suggestions in the issue templates. # Project structure @@ -46,11 +46,11 @@ You can't run `yarn` outside of a FHS shell. Additionally, you need to `patchelf ./nixos.sh ``` -Reasons for this are comments in the script. Then, you should be able to do all the package-level `yarn run` commands/scripts. +Reasons for this are comments in the script. Then, you should be able to do all the package-level `yarn run` commands/scripts. # Try not to push directly to develop -If you absolutely must, please prefix your commit message with `hotfix: `. +If you absolutely must, please prefix your commit message with `hotfix: `. # Pull request protocol diff --git a/packages/squiggle-lang/.prettierignore b/packages/squiggle-lang/.prettierignore index bc218d9b..1c242bb9 100644 --- a/packages/squiggle-lang/.prettierignore +++ b/packages/squiggle-lang/.prettierignore @@ -4,3 +4,4 @@ lib *.gen.tsx .nyc_output/ coverage/ +.cache/ \ No newline at end of file diff --git a/packages/squiggle-lang/__tests__/Reducer/Reducer_TestHelpers.res b/packages/squiggle-lang/__tests__/Reducer/Reducer_TestHelpers.res index 0790c078..581f6c8a 100644 --- a/packages/squiggle-lang/__tests__/Reducer/Reducer_TestHelpers.res +++ b/packages/squiggle-lang/__tests__/Reducer/Reducer_TestHelpers.res @@ -17,7 +17,10 @@ let expectEvalToBe = (expr: string, answer: string) => Reducer.evaluate(expr)->ExpressionValue.toStringResult->expect->toBe(answer) let expectEvalBindingsToBe = (expr: string, bindings: Reducer.externalBindings, answer: string) => - Reducer.evaluateUsingExternalBindings(expr, bindings)->ExpressionValue.toStringResult->expect->toBe(answer) + Reducer.evaluateUsingExternalBindings(expr, bindings) + ->ExpressionValue.toStringResult + ->expect + ->toBe(answer) let expectEvalPartialBindingsToBe = ( expr: string, diff --git a/packages/squiggle-lang/src/rescript/Reducer/Reducer_Expression/Reducer_Expression.res b/packages/squiggle-lang/src/rescript/Reducer/Reducer_Expression/Reducer_Expression.res index 68881496..b45b8e14 100644 --- a/packages/squiggle-lang/src/rescript/Reducer/Reducer_Expression/Reducer_Expression.res +++ b/packages/squiggle-lang/src/rescript/Reducer/Reducer_Expression/Reducer_Expression.res @@ -136,7 +136,9 @@ let evalPartialUsingExternalBindings_ = (codeText: string, bindings: T.bindings) Therefore all statments are assignments. */ let evalOuterWBindings_ = (codeText: string, bindings: T.bindings) => { - parseOuter(codeText)->Result.flatMap(expression => expression->evalUsingExternalBindingsExpression_(bindings)) + parseOuter(codeText)->Result.flatMap(expression => + expression->evalUsingExternalBindingsExpression_(bindings) + ) } /*