diff --git a/Cargo.toml b/Cargo.toml index 0c6dfa106d..ca477fc609 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,56 +1,56 @@ [workspace] members = [ - "compiler/ident", - "compiler/region", - "compiler/collections", - "compiler/exhaustive", - "compiler/module", - "compiler/parse", - "compiler/can", - "compiler/problem", - "compiler/types", - "compiler/builtins", - "compiler/constrain", - "compiler/unify", - "compiler/solve", - "compiler/late_solve", - "compiler/fmt", - "compiler/derive_key", - "compiler/mono", - "compiler/alias_analysis", - "compiler/test_mono", - "compiler/test_derive", - "compiler/load", - "compiler/load_internal", - "compiler/gen_llvm", - "compiler/gen_dev", - "compiler/gen_wasm", - "compiler/build", - "compiler/arena_pool", - "compiler/test_gen", - "compiler/roc_target", - "compiler/debug_flags", - "vendor/inkwell", - "vendor/pathfinding", - "vendor/pretty", - "bindgen", - "editor", - "ast", - "cli", - "code_markup", - "highlight", - "error_macros", - "reporting", - "repl_cli", - "repl_eval", - "repl_test", - "repl_wasm", - "test_utils", - "utils", - "docs", - "docs_cli", - "linker", - "wasi-libc-sys", + "crates/compiler/ident", + "crates/compiler/region", + "crates/compiler/collections", + "crates/compiler/exhaustive", + "crates/compiler/module", + "crates/compiler/parse", + "crates/compiler/can", + "crates/compiler/problem", + "crates/compiler/types", + "crates/compiler/builtins", + "crates/compiler/constrain", + "crates/compiler/unify", + "crates/compiler/solve", + "crates/compiler/late_solve", + "crates/compiler/fmt", + "crates/compiler/derive_key", + "crates/compiler/mono", + "crates/compiler/alias_analysis", + "crates/compiler/test_mono", + "crates/compiler/test_derive", + "crates/compiler/load", + "crates/compiler/load_internal", + "crates/compiler/gen_llvm", + "crates/compiler/gen_dev", + "crates/compiler/gen_wasm", + "crates/compiler/build", + "crates/compiler/arena_pool", + "crates/compiler/test_gen", + "crates/compiler/roc_target", + "crates/compiler/debug_flags", + "crates/vendor/inkwell", + "crates/vendor/pathfinding", + "crates/vendor/pretty", + "crates/bindgen", + "crates/editor", + "crates/ast", + "crates/cli", + "crates/code_markup", + "crates/highlight", + "crates/error_macros", + "crates/reporting", + "crates/repl_cli", + "crates/repl_eval", + "crates/repl_test", + "crates/repl_wasm", + "crates/test_utils", + "crates/utils", + "crates/docs", + "crates/docs_cli", + "crates/linker", + "crates/wasi-libc-sys", ] exclude = [ # Examples sometimes have Rust hosts in their platforms. The compiler should ignore those. @@ -58,10 +58,10 @@ exclude = [ "ci/bench-runner", # Ignore building these normally. They are only imported by tests. # The tests will still correctly build them. - "cli_utils", - "compiler/test_mono_macros", + "crates/cli_utils", + "crates/compiler/test_mono_macros", # `cargo build` would cause roc_std to be built with default features which errors on windows - "roc_std", + "crates/roc_std", ] # Needed to be able to run `cargo run -p roc_cli --no-default-features` - # see www/build.sh for more. diff --git a/Earthfile b/Earthfile index cbacbe89f8..0deafadc1b 100644 --- a/Earthfile +++ b/Earthfile @@ -53,11 +53,11 @@ install-zig-llvm-valgrind-clippy-rustfmt: copy-dirs: FROM +install-zig-llvm-valgrind-clippy-rustfmt - COPY --dir bindgen cli cli_utils compiler docs docs_cli editor ast code_markup error_macros highlight utils test_utils reporting repl_cli repl_eval repl_test repl_wasm repl_www roc_std vendor examples linker Cargo.toml Cargo.lock version.txt www wasi-libc-sys ./ + COPY --dir crates repl_www examples Cargo.toml Cargo.lock version.txt www ./ test-zig: FROM +install-zig-llvm-valgrind-clippy-rustfmt - COPY --dir compiler/builtins/bitcode ./ + COPY --dir crates/compiler/builtins/bitcode ./ RUN cd bitcode && ./run-tests.sh && ./run-wasm-tests.sh build-rust-test: @@ -84,7 +84,7 @@ check-rustfmt: check-typos: RUN cargo install typos-cli --version 1.0.11 # version set to prevent confusion if the version is updated automatically - COPY --dir .github ci cli cli_utils compiler docs editor examples ast code_markup highlight utils linker nightly_benches packages roc_std www *.md LEGAL_DETAILS shell.nix version.txt ./ + COPY --dir .github ci crates examples nightly_benches www *.md LEGAL_DETAILS flake.nix version.txt ./ RUN typos test-rust: @@ -107,7 +107,7 @@ test-rust: cargo test --locked --release --package test_gen --no-default-features --features gen-wasm -- --test-threads=1 && sccache --show-stats # repl_test: build the compiler for wasm target, then run the tests on native target RUN --mount=type=cache,target=$SCCACHE_DIR \ - repl_test/test_wasm.sh && sccache --show-stats + crates/repl_test/test_wasm.sh && sccache --show-stats # run i386 (32-bit linux) cli tests # NOTE: disabled until zig 0.9 # RUN echo "4" | cargo run --locked --release --features="target-x86" -- --target=x86_32 examples/benchmarks/NQueens.roc @@ -152,13 +152,13 @@ prep-bench-folder: ENV RUSTFLAGS="-C link-arg=-fuse-ld=lld -C target-cpu=native" ARG BENCH_SUFFIX=branch RUN cargo criterion -V - RUN --mount=type=cache,target=$SCCACHE_DIR cd cli && cargo criterion --no-run - RUN mkdir -p bench-folder/compiler/builtins/bitcode/src + RUN --mount=type=cache,target=$SCCACHE_DIR cd crates/cli && cargo criterion --no-run + RUN mkdir -p bench-folder/crates/compiler/builtins/bitcode/src RUN mkdir -p bench-folder/target/release/deps RUN mkdir -p bench-folder/examples/benchmarks RUN cp examples/benchmarks/*.roc bench-folder/examples/benchmarks/ RUN cp -r examples/benchmarks/platform bench-folder/examples/benchmarks/ - RUN cp compiler/builtins/bitcode/src/str.zig bench-folder/compiler/builtins/bitcode/src + RUN cp crates/compiler/builtins/bitcode/src/str.zig bench-folder/crates/compiler/builtins/bitcode/src RUN cp target/release/roc bench-folder/target/release # copy the most recent time bench to bench-folder RUN cp target/release/deps/`ls -t target/release/deps/ | grep time_bench | head -n 1` bench-folder/target/release/deps/time_bench diff --git a/ci/package_release.sh b/ci/package_release.sh index df6b072427..7125aeeb53 100755 --- a/ci/package_release.sh +++ b/ci/package_release.sh @@ -1,3 +1,3 @@ #!/usr/bin/env bash cp target/release/roc ./roc # to be able to exclude "target" later in the tar command -tar -czvf $1 --exclude="target" --exclude="zig-cache" roc LICENSE LEGAL_DETAILS examples/hello-world compiler/builtins/bitcode/src/ roc_std \ No newline at end of file +tar -czvf $1 --exclude="target" --exclude="zig-cache" roc LICENSE LEGAL_DETAILS examples/hello-world crates/compiler/builtins/bitcode/src/ crates/roc_std \ No newline at end of file diff --git a/cli/tests/known_bad/platform b/cli/tests/known_bad/platform deleted file mode 120000 index b58068a18f..0000000000 --- a/cli/tests/known_bad/platform +++ /dev/null @@ -1 +0,0 @@ -../../../examples/interactive/cli-platform \ No newline at end of file diff --git a/ast/Cargo.toml b/crates/ast/Cargo.toml similarity index 100% rename from ast/Cargo.toml rename to crates/ast/Cargo.toml diff --git a/ast/src/ast_error.rs b/crates/ast/src/ast_error.rs similarity index 100% rename from ast/src/ast_error.rs rename to crates/ast/src/ast_error.rs diff --git a/ast/src/canonicalization/canonicalize.rs b/crates/ast/src/canonicalization/canonicalize.rs similarity index 100% rename from ast/src/canonicalization/canonicalize.rs rename to crates/ast/src/canonicalization/canonicalize.rs diff --git a/ast/src/canonicalization/mod.rs b/crates/ast/src/canonicalization/mod.rs similarity index 100% rename from ast/src/canonicalization/mod.rs rename to crates/ast/src/canonicalization/mod.rs diff --git a/ast/src/canonicalization/module.rs b/crates/ast/src/canonicalization/module.rs similarity index 100% rename from ast/src/canonicalization/module.rs rename to crates/ast/src/canonicalization/module.rs diff --git a/ast/src/constrain.rs b/crates/ast/src/constrain.rs similarity index 100% rename from ast/src/constrain.rs rename to crates/ast/src/constrain.rs diff --git a/ast/src/lang/core/ast.rs b/crates/ast/src/lang/core/ast.rs similarity index 100% rename from ast/src/lang/core/ast.rs rename to crates/ast/src/lang/core/ast.rs diff --git a/ast/src/lang/core/declaration.rs b/crates/ast/src/lang/core/declaration.rs similarity index 100% rename from ast/src/lang/core/declaration.rs rename to crates/ast/src/lang/core/declaration.rs diff --git a/ast/src/lang/core/def/def.rs b/crates/ast/src/lang/core/def/def.rs similarity index 100% rename from ast/src/lang/core/def/def.rs rename to crates/ast/src/lang/core/def/def.rs diff --git a/ast/src/lang/core/def/def2.rs b/crates/ast/src/lang/core/def/def2.rs similarity index 100% rename from ast/src/lang/core/def/def2.rs rename to crates/ast/src/lang/core/def/def2.rs diff --git a/ast/src/lang/core/def/def_to_def2.rs b/crates/ast/src/lang/core/def/def_to_def2.rs similarity index 100% rename from ast/src/lang/core/def/def_to_def2.rs rename to crates/ast/src/lang/core/def/def_to_def2.rs diff --git a/ast/src/lang/core/def/mod.rs b/crates/ast/src/lang/core/def/mod.rs similarity index 100% rename from ast/src/lang/core/def/mod.rs rename to crates/ast/src/lang/core/def/mod.rs diff --git a/ast/src/lang/core/expr/expr2.rs b/crates/ast/src/lang/core/expr/expr2.rs similarity index 100% rename from ast/src/lang/core/expr/expr2.rs rename to crates/ast/src/lang/core/expr/expr2.rs diff --git a/ast/src/lang/core/expr/expr2_to_string.rs b/crates/ast/src/lang/core/expr/expr2_to_string.rs similarity index 100% rename from ast/src/lang/core/expr/expr2_to_string.rs rename to crates/ast/src/lang/core/expr/expr2_to_string.rs diff --git a/ast/src/lang/core/expr/expr_to_expr2.rs b/crates/ast/src/lang/core/expr/expr_to_expr2.rs similarity index 100% rename from ast/src/lang/core/expr/expr_to_expr2.rs rename to crates/ast/src/lang/core/expr/expr_to_expr2.rs diff --git a/ast/src/lang/core/expr/introduced_vars.rs b/crates/ast/src/lang/core/expr/introduced_vars.rs similarity index 100% rename from ast/src/lang/core/expr/introduced_vars.rs rename to crates/ast/src/lang/core/expr/introduced_vars.rs diff --git a/ast/src/lang/core/expr/mod.rs b/crates/ast/src/lang/core/expr/mod.rs similarity index 100% rename from ast/src/lang/core/expr/mod.rs rename to crates/ast/src/lang/core/expr/mod.rs diff --git a/ast/src/lang/core/expr/output.rs b/crates/ast/src/lang/core/expr/output.rs similarity index 100% rename from ast/src/lang/core/expr/output.rs rename to crates/ast/src/lang/core/expr/output.rs diff --git a/ast/src/lang/core/expr/record_field.rs b/crates/ast/src/lang/core/expr/record_field.rs similarity index 100% rename from ast/src/lang/core/expr/record_field.rs rename to crates/ast/src/lang/core/expr/record_field.rs diff --git a/ast/src/lang/core/fun_def.rs b/crates/ast/src/lang/core/fun_def.rs similarity index 100% rename from ast/src/lang/core/fun_def.rs rename to crates/ast/src/lang/core/fun_def.rs diff --git a/ast/src/lang/core/header.rs b/crates/ast/src/lang/core/header.rs similarity index 100% rename from ast/src/lang/core/header.rs rename to crates/ast/src/lang/core/header.rs diff --git a/ast/src/lang/core/mod.rs b/crates/ast/src/lang/core/mod.rs similarity index 100% rename from ast/src/lang/core/mod.rs rename to crates/ast/src/lang/core/mod.rs diff --git a/ast/src/lang/core/pattern.rs b/crates/ast/src/lang/core/pattern.rs similarity index 100% rename from ast/src/lang/core/pattern.rs rename to crates/ast/src/lang/core/pattern.rs diff --git a/ast/src/lang/core/str.rs b/crates/ast/src/lang/core/str.rs similarity index 100% rename from ast/src/lang/core/str.rs rename to crates/ast/src/lang/core/str.rs diff --git a/ast/src/lang/core/types.rs b/crates/ast/src/lang/core/types.rs similarity index 100% rename from ast/src/lang/core/types.rs rename to crates/ast/src/lang/core/types.rs diff --git a/ast/src/lang/core/val_def.rs b/crates/ast/src/lang/core/val_def.rs similarity index 100% rename from ast/src/lang/core/val_def.rs rename to crates/ast/src/lang/core/val_def.rs diff --git a/ast/src/lang/env.rs b/crates/ast/src/lang/env.rs similarity index 100% rename from ast/src/lang/env.rs rename to crates/ast/src/lang/env.rs diff --git a/ast/src/lang/mod.rs b/crates/ast/src/lang/mod.rs similarity index 100% rename from ast/src/lang/mod.rs rename to crates/ast/src/lang/mod.rs diff --git a/ast/src/lang/rigids.rs b/crates/ast/src/lang/rigids.rs similarity index 100% rename from ast/src/lang/rigids.rs rename to crates/ast/src/lang/rigids.rs diff --git a/ast/src/lang/scope.rs b/crates/ast/src/lang/scope.rs similarity index 100% rename from ast/src/lang/scope.rs rename to crates/ast/src/lang/scope.rs diff --git a/ast/src/lib.rs b/crates/ast/src/lib.rs similarity index 100% rename from ast/src/lib.rs rename to crates/ast/src/lib.rs diff --git a/ast/src/mem_pool/mod.rs b/crates/ast/src/mem_pool/mod.rs similarity index 100% rename from ast/src/mem_pool/mod.rs rename to crates/ast/src/mem_pool/mod.rs diff --git a/ast/src/mem_pool/pool.rs b/crates/ast/src/mem_pool/pool.rs similarity index 100% rename from ast/src/mem_pool/pool.rs rename to crates/ast/src/mem_pool/pool.rs diff --git a/ast/src/mem_pool/pool_str.rs b/crates/ast/src/mem_pool/pool_str.rs similarity index 100% rename from ast/src/mem_pool/pool_str.rs rename to crates/ast/src/mem_pool/pool_str.rs diff --git a/ast/src/mem_pool/pool_vec.rs b/crates/ast/src/mem_pool/pool_vec.rs similarity index 100% rename from ast/src/mem_pool/pool_vec.rs rename to crates/ast/src/mem_pool/pool_vec.rs diff --git a/ast/src/mem_pool/shallow_clone.rs b/crates/ast/src/mem_pool/shallow_clone.rs similarity index 100% rename from ast/src/mem_pool/shallow_clone.rs rename to crates/ast/src/mem_pool/shallow_clone.rs diff --git a/ast/src/module.rs b/crates/ast/src/module.rs similarity index 100% rename from ast/src/module.rs rename to crates/ast/src/module.rs diff --git a/ast/src/parse/mod.rs b/crates/ast/src/parse/mod.rs similarity index 100% rename from ast/src/parse/mod.rs rename to crates/ast/src/parse/mod.rs diff --git a/ast/src/parse/parse_ast.rs b/crates/ast/src/parse/parse_ast.rs similarity index 100% rename from ast/src/parse/parse_ast.rs rename to crates/ast/src/parse/parse_ast.rs diff --git a/ast/src/parse/parse_header.rs b/crates/ast/src/parse/parse_header.rs similarity index 100% rename from ast/src/parse/parse_header.rs rename to crates/ast/src/parse/parse_header.rs diff --git a/ast/src/solve_type.rs b/crates/ast/src/solve_type.rs similarity index 100% rename from ast/src/solve_type.rs rename to crates/ast/src/solve_type.rs diff --git a/bindgen/Cargo.toml b/crates/bindgen/Cargo.toml similarity index 100% rename from bindgen/Cargo.toml rename to crates/bindgen/Cargo.toml diff --git a/bindgen/src/bindgen_c.rs b/crates/bindgen/src/bindgen_c.rs similarity index 100% rename from bindgen/src/bindgen_c.rs rename to crates/bindgen/src/bindgen_c.rs diff --git a/bindgen/src/bindgen_rs.rs b/crates/bindgen/src/bindgen_rs.rs similarity index 100% rename from bindgen/src/bindgen_rs.rs rename to crates/bindgen/src/bindgen_rs.rs diff --git a/bindgen/src/bindgen_zig.rs b/crates/bindgen/src/bindgen_zig.rs similarity index 100% rename from bindgen/src/bindgen_zig.rs rename to crates/bindgen/src/bindgen_zig.rs diff --git a/bindgen/src/enums.rs b/crates/bindgen/src/enums.rs similarity index 100% rename from bindgen/src/enums.rs rename to crates/bindgen/src/enums.rs diff --git a/bindgen/src/lib.rs b/crates/bindgen/src/lib.rs similarity index 100% rename from bindgen/src/lib.rs rename to crates/bindgen/src/lib.rs diff --git a/bindgen/src/load.rs b/crates/bindgen/src/load.rs similarity index 100% rename from bindgen/src/load.rs rename to crates/bindgen/src/load.rs diff --git a/bindgen/src/main.rs b/crates/bindgen/src/main.rs similarity index 100% rename from bindgen/src/main.rs rename to crates/bindgen/src/main.rs diff --git a/bindgen/src/structs.rs b/crates/bindgen/src/structs.rs similarity index 100% rename from bindgen/src/structs.rs rename to crates/bindgen/src/structs.rs diff --git a/bindgen/src/types.rs b/crates/bindgen/src/types.rs similarity index 100% rename from bindgen/src/types.rs rename to crates/bindgen/src/types.rs diff --git a/bindgen/templates/header.rs b/crates/bindgen/templates/header.rs similarity index 100% rename from bindgen/templates/header.rs rename to crates/bindgen/templates/header.rs diff --git a/bindgen/templates/template.c b/crates/bindgen/templates/template.c similarity index 100% rename from bindgen/templates/template.c rename to crates/bindgen/templates/template.c diff --git a/bindgen/templates/template.rs b/crates/bindgen/templates/template.rs similarity index 100% rename from bindgen/templates/template.rs rename to crates/bindgen/templates/template.rs diff --git a/bindgen/templates/template.zig b/crates/bindgen/templates/template.zig similarity index 100% rename from bindgen/templates/template.zig rename to crates/bindgen/templates/template.zig diff --git a/bindgen/tests/fixture-templates/rust/Cargo.lock b/crates/bindgen/tests/fixture-templates/rust/Cargo.lock similarity index 100% rename from bindgen/tests/fixture-templates/rust/Cargo.lock rename to crates/bindgen/tests/fixture-templates/rust/Cargo.lock diff --git a/bindgen/tests/fixture-templates/rust/Cargo.toml b/crates/bindgen/tests/fixture-templates/rust/Cargo.toml similarity index 100% rename from bindgen/tests/fixture-templates/rust/Cargo.toml rename to crates/bindgen/tests/fixture-templates/rust/Cargo.toml diff --git a/bindgen/tests/fixture-templates/rust/build.rs b/crates/bindgen/tests/fixture-templates/rust/build.rs similarity index 100% rename from bindgen/tests/fixture-templates/rust/build.rs rename to crates/bindgen/tests/fixture-templates/rust/build.rs diff --git a/bindgen/tests/fixture-templates/rust/host.c b/crates/bindgen/tests/fixture-templates/rust/host.c similarity index 100% rename from bindgen/tests/fixture-templates/rust/host.c rename to crates/bindgen/tests/fixture-templates/rust/host.c diff --git a/bindgen/tests/fixture-templates/rust/src/main.rs b/crates/bindgen/tests/fixture-templates/rust/src/main.rs similarity index 100% rename from bindgen/tests/fixture-templates/rust/src/main.rs rename to crates/bindgen/tests/fixture-templates/rust/src/main.rs diff --git a/bindgen/tests/fixtures/.gitignore b/crates/bindgen/tests/fixtures/.gitignore similarity index 100% rename from bindgen/tests/fixtures/.gitignore rename to crates/bindgen/tests/fixtures/.gitignore diff --git a/bindgen/tests/fixtures/advanced-recursive-union/app.roc b/crates/bindgen/tests/fixtures/advanced-recursive-union/app.roc similarity index 100% rename from bindgen/tests/fixtures/advanced-recursive-union/app.roc rename to crates/bindgen/tests/fixtures/advanced-recursive-union/app.roc diff --git a/bindgen/tests/fixtures/advanced-recursive-union/platform.roc b/crates/bindgen/tests/fixtures/advanced-recursive-union/platform.roc similarity index 100% rename from bindgen/tests/fixtures/advanced-recursive-union/platform.roc rename to crates/bindgen/tests/fixtures/advanced-recursive-union/platform.roc diff --git a/bindgen/tests/fixtures/advanced-recursive-union/src/lib.rs b/crates/bindgen/tests/fixtures/advanced-recursive-union/src/lib.rs similarity index 100% rename from bindgen/tests/fixtures/advanced-recursive-union/src/lib.rs rename to crates/bindgen/tests/fixtures/advanced-recursive-union/src/lib.rs diff --git a/bindgen/tests/fixtures/basic-record/app.roc b/crates/bindgen/tests/fixtures/basic-record/app.roc similarity index 100% rename from bindgen/tests/fixtures/basic-record/app.roc rename to crates/bindgen/tests/fixtures/basic-record/app.roc diff --git a/bindgen/tests/fixtures/basic-record/platform.roc b/crates/bindgen/tests/fixtures/basic-record/platform.roc similarity index 100% rename from bindgen/tests/fixtures/basic-record/platform.roc rename to crates/bindgen/tests/fixtures/basic-record/platform.roc diff --git a/bindgen/tests/fixtures/basic-record/src/lib.rs b/crates/bindgen/tests/fixtures/basic-record/src/lib.rs similarity index 100% rename from bindgen/tests/fixtures/basic-record/src/lib.rs rename to crates/bindgen/tests/fixtures/basic-record/src/lib.rs diff --git a/bindgen/tests/fixtures/basic-recursive-union/app.roc b/crates/bindgen/tests/fixtures/basic-recursive-union/app.roc similarity index 100% rename from bindgen/tests/fixtures/basic-recursive-union/app.roc rename to crates/bindgen/tests/fixtures/basic-recursive-union/app.roc diff --git a/bindgen/tests/fixtures/basic-recursive-union/platform.roc b/crates/bindgen/tests/fixtures/basic-recursive-union/platform.roc similarity index 100% rename from bindgen/tests/fixtures/basic-recursive-union/platform.roc rename to crates/bindgen/tests/fixtures/basic-recursive-union/platform.roc diff --git a/bindgen/tests/fixtures/basic-recursive-union/src/lib.rs b/crates/bindgen/tests/fixtures/basic-recursive-union/src/lib.rs similarity index 100% rename from bindgen/tests/fixtures/basic-recursive-union/src/lib.rs rename to crates/bindgen/tests/fixtures/basic-recursive-union/src/lib.rs diff --git a/bindgen/tests/fixtures/enumeration/app.roc b/crates/bindgen/tests/fixtures/enumeration/app.roc similarity index 100% rename from bindgen/tests/fixtures/enumeration/app.roc rename to crates/bindgen/tests/fixtures/enumeration/app.roc diff --git a/bindgen/tests/fixtures/enumeration/platform.roc b/crates/bindgen/tests/fixtures/enumeration/platform.roc similarity index 100% rename from bindgen/tests/fixtures/enumeration/platform.roc rename to crates/bindgen/tests/fixtures/enumeration/platform.roc diff --git a/bindgen/tests/fixtures/enumeration/src/lib.rs b/crates/bindgen/tests/fixtures/enumeration/src/lib.rs similarity index 100% rename from bindgen/tests/fixtures/enumeration/src/lib.rs rename to crates/bindgen/tests/fixtures/enumeration/src/lib.rs diff --git a/bindgen/tests/fixtures/list-recursive-union/app.roc b/crates/bindgen/tests/fixtures/list-recursive-union/app.roc similarity index 100% rename from bindgen/tests/fixtures/list-recursive-union/app.roc rename to crates/bindgen/tests/fixtures/list-recursive-union/app.roc diff --git a/bindgen/tests/fixtures/list-recursive-union/platform.roc b/crates/bindgen/tests/fixtures/list-recursive-union/platform.roc similarity index 100% rename from bindgen/tests/fixtures/list-recursive-union/platform.roc rename to crates/bindgen/tests/fixtures/list-recursive-union/platform.roc diff --git a/bindgen/tests/fixtures/list-recursive-union/src/lib.rs b/crates/bindgen/tests/fixtures/list-recursive-union/src/lib.rs similarity index 100% rename from bindgen/tests/fixtures/list-recursive-union/src/lib.rs rename to crates/bindgen/tests/fixtures/list-recursive-union/src/lib.rs diff --git a/bindgen/tests/fixtures/nested-record/app.roc b/crates/bindgen/tests/fixtures/nested-record/app.roc similarity index 100% rename from bindgen/tests/fixtures/nested-record/app.roc rename to crates/bindgen/tests/fixtures/nested-record/app.roc diff --git a/bindgen/tests/fixtures/nested-record/platform.roc b/crates/bindgen/tests/fixtures/nested-record/platform.roc similarity index 100% rename from bindgen/tests/fixtures/nested-record/platform.roc rename to crates/bindgen/tests/fixtures/nested-record/platform.roc diff --git a/bindgen/tests/fixtures/nested-record/src/lib.rs b/crates/bindgen/tests/fixtures/nested-record/src/lib.rs similarity index 100% rename from bindgen/tests/fixtures/nested-record/src/lib.rs rename to crates/bindgen/tests/fixtures/nested-record/src/lib.rs diff --git a/bindgen/tests/fixtures/nullable-unwrapped/app.roc b/crates/bindgen/tests/fixtures/nullable-unwrapped/app.roc similarity index 100% rename from bindgen/tests/fixtures/nullable-unwrapped/app.roc rename to crates/bindgen/tests/fixtures/nullable-unwrapped/app.roc diff --git a/bindgen/tests/fixtures/nullable-unwrapped/platform.roc b/crates/bindgen/tests/fixtures/nullable-unwrapped/platform.roc similarity index 100% rename from bindgen/tests/fixtures/nullable-unwrapped/platform.roc rename to crates/bindgen/tests/fixtures/nullable-unwrapped/platform.roc diff --git a/bindgen/tests/fixtures/nullable-unwrapped/src/lib.rs b/crates/bindgen/tests/fixtures/nullable-unwrapped/src/lib.rs similarity index 100% rename from bindgen/tests/fixtures/nullable-unwrapped/src/lib.rs rename to crates/bindgen/tests/fixtures/nullable-unwrapped/src/lib.rs diff --git a/bindgen/tests/fixtures/union-with-padding/app.roc b/crates/bindgen/tests/fixtures/union-with-padding/app.roc similarity index 100% rename from bindgen/tests/fixtures/union-with-padding/app.roc rename to crates/bindgen/tests/fixtures/union-with-padding/app.roc diff --git a/bindgen/tests/fixtures/union-with-padding/platform.roc b/crates/bindgen/tests/fixtures/union-with-padding/platform.roc similarity index 100% rename from bindgen/tests/fixtures/union-with-padding/platform.roc rename to crates/bindgen/tests/fixtures/union-with-padding/platform.roc diff --git a/bindgen/tests/fixtures/union-with-padding/src/lib.rs b/crates/bindgen/tests/fixtures/union-with-padding/src/lib.rs similarity index 100% rename from bindgen/tests/fixtures/union-with-padding/src/lib.rs rename to crates/bindgen/tests/fixtures/union-with-padding/src/lib.rs diff --git a/bindgen/tests/fixtures/union-without-padding/app.roc b/crates/bindgen/tests/fixtures/union-without-padding/app.roc similarity index 100% rename from bindgen/tests/fixtures/union-without-padding/app.roc rename to crates/bindgen/tests/fixtures/union-without-padding/app.roc diff --git a/bindgen/tests/fixtures/union-without-padding/platform.roc b/crates/bindgen/tests/fixtures/union-without-padding/platform.roc similarity index 100% rename from bindgen/tests/fixtures/union-without-padding/platform.roc rename to crates/bindgen/tests/fixtures/union-without-padding/platform.roc diff --git a/bindgen/tests/fixtures/union-without-padding/src/lib.rs b/crates/bindgen/tests/fixtures/union-without-padding/src/lib.rs similarity index 100% rename from bindgen/tests/fixtures/union-without-padding/src/lib.rs rename to crates/bindgen/tests/fixtures/union-without-padding/src/lib.rs diff --git a/bindgen/tests/gen_rs.rs b/crates/bindgen/tests/gen_rs.rs similarity index 100% rename from bindgen/tests/gen_rs.rs rename to crates/bindgen/tests/gen_rs.rs diff --git a/bindgen/tests/helpers/mod.rs b/crates/bindgen/tests/helpers/mod.rs similarity index 98% rename from bindgen/tests/helpers/mod.rs rename to crates/bindgen/tests/helpers/mod.rs index 18f80aa545..410d3eac90 100644 --- a/bindgen/tests/helpers/mod.rs +++ b/crates/bindgen/tests/helpers/mod.rs @@ -48,6 +48,7 @@ pub fn fixtures_dir(dir_name: &str) -> PathBuf { let mut path = root_dir(); // Descend into cli/tests/fixtures/{dir_name} + path.push("crates"); path.push("bindgen"); path.push("tests"); path.push("fixtures"); diff --git a/bindgen/tests/test_bindgen_cli.rs b/crates/bindgen/tests/test_bindgen_cli.rs similarity index 99% rename from bindgen/tests/test_bindgen_cli.rs rename to crates/bindgen/tests/test_bindgen_cli.rs index 9fbfb9127b..89f8e0474d 100644 --- a/bindgen/tests/test_bindgen_cli.rs +++ b/crates/bindgen/tests/test_bindgen_cli.rs @@ -34,7 +34,7 @@ mod bindgen_cli_run { let output = Command::new("cargo") .args(args) - .current_dir(root_dir().join("cli")) + .current_dir(root_dir().join("crates").join("cli")) .output() .unwrap_or_else(|err| { panic!( diff --git a/cli/Cargo.toml b/crates/cli/Cargo.toml similarity index 100% rename from cli/Cargo.toml rename to crates/cli/Cargo.toml diff --git a/cli/benches/README.md b/crates/cli/benches/README.md similarity index 100% rename from cli/benches/README.md rename to crates/cli/benches/README.md diff --git a/cli/benches/time_bench.rs b/crates/cli/benches/time_bench.rs similarity index 100% rename from cli/benches/time_bench.rs rename to crates/cli/benches/time_bench.rs diff --git a/cli/src/build.rs b/crates/cli/src/build.rs similarity index 100% rename from cli/src/build.rs rename to crates/cli/src/build.rs diff --git a/cli/src/format.rs b/crates/cli/src/format.rs similarity index 100% rename from cli/src/format.rs rename to crates/cli/src/format.rs diff --git a/cli/src/lib.rs b/crates/cli/src/lib.rs similarity index 99% rename from cli/src/lib.rs rename to crates/cli/src/lib.rs index 5c6e123f4a..b43e1241fc 100644 --- a/cli/src/lib.rs +++ b/crates/cli/src/lib.rs @@ -53,7 +53,7 @@ pub const ROC_DIR: &str = "ROC_DIR"; pub const DIRECTORY_OR_FILES: &str = "DIRECTORY_OR_FILES"; pub const ARGS_FOR_APP: &str = "ARGS_FOR_APP"; -const VERSION: &str = include_str!("../../version.txt"); +const VERSION: &str = include_str!("../../../version.txt"); pub fn build_app<'a>() -> Command<'a> { let flag_optimize = Arg::new(FLAG_OPTIMIZE) diff --git a/cli/src/main.rs b/crates/cli/src/main.rs similarity index 98% rename from cli/src/main.rs rename to crates/cli/src/main.rs index 338adccaa9..82dff5443f 100644 --- a/cli/src/main.rs +++ b/crates/cli/src/main.rs @@ -241,7 +241,10 @@ fn main() -> io::Result<()> { Ok(format_exit_code) } Some((CMD_VERSION, _)) => { - print!("{}", concatcp!("roc ", include_str!("../../version.txt"))); + print!( + "{}", + concatcp!("roc ", include_str!("../../../version.txt")) + ); Ok(0) } diff --git a/cli/tests/cli_run.rs b/crates/cli/tests/cli_run.rs similarity index 99% rename from cli/tests/cli_run.rs rename to crates/cli/tests/cli_run.rs index 0e386a4a46..38b04242b3 100644 --- a/cli/tests/cli_run.rs +++ b/crates/cli/tests/cli_run.rs @@ -366,7 +366,7 @@ mod cli_run { all_examples.insert($name, $example); )* - check_for_tests("../examples", &mut all_examples); + check_for_tests("../../examples", &mut all_examples); } } } @@ -699,7 +699,7 @@ mod cli_run { all_benchmarks.insert(benchmark.filename, benchmark); )* - check_for_benchmarks("../examples/benchmarks", &mut all_benchmarks); + check_for_benchmarks("../../examples/benchmarks", &mut all_benchmarks); } } } diff --git a/cli/tests/fixtures/.gitignore b/crates/cli/tests/fixtures/.gitignore similarity index 100% rename from cli/tests/fixtures/.gitignore rename to crates/cli/tests/fixtures/.gitignore diff --git a/cli/tests/fixtures/format/Formatted.roc b/crates/cli/tests/fixtures/format/Formatted.roc similarity index 100% rename from cli/tests/fixtures/format/Formatted.roc rename to crates/cli/tests/fixtures/format/Formatted.roc diff --git a/cli/tests/fixtures/format/NotARocFile.txt b/crates/cli/tests/fixtures/format/NotARocFile.txt similarity index 100% rename from cli/tests/fixtures/format/NotARocFile.txt rename to crates/cli/tests/fixtures/format/NotARocFile.txt diff --git a/cli/tests/fixtures/format/NotFormatted.roc b/crates/cli/tests/fixtures/format/NotFormatted.roc similarity index 100% rename from cli/tests/fixtures/format/NotFormatted.roc rename to crates/cli/tests/fixtures/format/NotFormatted.roc diff --git a/cli/tests/fixtures/format/formatted_directory/Formatted.roc b/crates/cli/tests/fixtures/format/formatted_directory/Formatted.roc similarity index 100% rename from cli/tests/fixtures/format/formatted_directory/Formatted.roc rename to crates/cli/tests/fixtures/format/formatted_directory/Formatted.roc diff --git a/cli/tests/fixtures/format/formatted_directory/NestedNotARocFile.txt b/crates/cli/tests/fixtures/format/formatted_directory/NestedNotARocFile.txt similarity index 100% rename from cli/tests/fixtures/format/formatted_directory/NestedNotARocFile.txt rename to crates/cli/tests/fixtures/format/formatted_directory/NestedNotARocFile.txt diff --git a/cli/tests/fixtures/format/formatted_directory/NotARocFile b/crates/cli/tests/fixtures/format/formatted_directory/NotARocFile similarity index 100% rename from cli/tests/fixtures/format/formatted_directory/NotARocFile rename to crates/cli/tests/fixtures/format/formatted_directory/NotARocFile diff --git a/cli/tests/fixtures/format/formatted_directory/ignored/NotARocFile.txt b/crates/cli/tests/fixtures/format/formatted_directory/ignored/NotARocFile.txt similarity index 100% rename from cli/tests/fixtures/format/formatted_directory/ignored/NotARocFile.txt rename to crates/cli/tests/fixtures/format/formatted_directory/ignored/NotARocFile.txt diff --git a/cli/tests/fixtures/multi-dep-str/.gitignore b/crates/cli/tests/fixtures/multi-dep-str/.gitignore similarity index 100% rename from cli/tests/fixtures/multi-dep-str/.gitignore rename to crates/cli/tests/fixtures/multi-dep-str/.gitignore diff --git a/cli/tests/fixtures/multi-dep-str/Dep1.roc b/crates/cli/tests/fixtures/multi-dep-str/Dep1.roc similarity index 100% rename from cli/tests/fixtures/multi-dep-str/Dep1.roc rename to crates/cli/tests/fixtures/multi-dep-str/Dep1.roc diff --git a/cli/tests/fixtures/multi-dep-str/Dep2.roc b/crates/cli/tests/fixtures/multi-dep-str/Dep2.roc similarity index 100% rename from cli/tests/fixtures/multi-dep-str/Dep2.roc rename to crates/cli/tests/fixtures/multi-dep-str/Dep2.roc diff --git a/cli/tests/fixtures/multi-dep-str/Main.roc b/crates/cli/tests/fixtures/multi-dep-str/Main.roc similarity index 100% rename from cli/tests/fixtures/multi-dep-str/Main.roc rename to crates/cli/tests/fixtures/multi-dep-str/Main.roc diff --git a/cli/tests/fixtures/multi-dep-str/platform/host.zig b/crates/cli/tests/fixtures/multi-dep-str/platform/host.zig similarity index 100% rename from cli/tests/fixtures/multi-dep-str/platform/host.zig rename to crates/cli/tests/fixtures/multi-dep-str/platform/host.zig diff --git a/cli/tests/fixtures/multi-dep-str/platform/main.roc b/crates/cli/tests/fixtures/multi-dep-str/platform/main.roc similarity index 100% rename from cli/tests/fixtures/multi-dep-str/platform/main.roc rename to crates/cli/tests/fixtures/multi-dep-str/platform/main.roc diff --git a/cli/tests/fixtures/multi-dep-thunk/.gitignore b/crates/cli/tests/fixtures/multi-dep-thunk/.gitignore similarity index 100% rename from cli/tests/fixtures/multi-dep-thunk/.gitignore rename to crates/cli/tests/fixtures/multi-dep-thunk/.gitignore diff --git a/cli/tests/fixtures/multi-dep-thunk/Dep1.roc b/crates/cli/tests/fixtures/multi-dep-thunk/Dep1.roc similarity index 100% rename from cli/tests/fixtures/multi-dep-thunk/Dep1.roc rename to crates/cli/tests/fixtures/multi-dep-thunk/Dep1.roc diff --git a/cli/tests/fixtures/multi-dep-thunk/Dep2.roc b/crates/cli/tests/fixtures/multi-dep-thunk/Dep2.roc similarity index 100% rename from cli/tests/fixtures/multi-dep-thunk/Dep2.roc rename to crates/cli/tests/fixtures/multi-dep-thunk/Dep2.roc diff --git a/cli/tests/fixtures/multi-dep-thunk/Main.roc b/crates/cli/tests/fixtures/multi-dep-thunk/Main.roc similarity index 100% rename from cli/tests/fixtures/multi-dep-thunk/Main.roc rename to crates/cli/tests/fixtures/multi-dep-thunk/Main.roc diff --git a/cli/tests/fixtures/multi-dep-thunk/platform/host.zig b/crates/cli/tests/fixtures/multi-dep-thunk/platform/host.zig similarity index 100% rename from cli/tests/fixtures/multi-dep-thunk/platform/host.zig rename to crates/cli/tests/fixtures/multi-dep-thunk/platform/host.zig diff --git a/cli/tests/fixtures/multi-dep-thunk/platform/main.roc b/crates/cli/tests/fixtures/multi-dep-thunk/platform/main.roc similarity index 100% rename from cli/tests/fixtures/multi-dep-thunk/platform/main.roc rename to crates/cli/tests/fixtures/multi-dep-thunk/platform/main.roc diff --git a/cli/tests/known_bad/ExposedNotDefined.roc b/crates/cli/tests/known_bad/ExposedNotDefined.roc similarity index 100% rename from cli/tests/known_bad/ExposedNotDefined.roc rename to crates/cli/tests/known_bad/ExposedNotDefined.roc diff --git a/cli/tests/known_bad/Symbol.roc b/crates/cli/tests/known_bad/Symbol.roc similarity index 100% rename from cli/tests/known_bad/Symbol.roc rename to crates/cli/tests/known_bad/Symbol.roc diff --git a/cli/tests/known_bad/TypeError.roc b/crates/cli/tests/known_bad/TypeError.roc similarity index 100% rename from cli/tests/known_bad/TypeError.roc rename to crates/cli/tests/known_bad/TypeError.roc diff --git a/cli/tests/known_bad/UnknownGeneratesWith.roc b/crates/cli/tests/known_bad/UnknownGeneratesWith.roc similarity index 100% rename from cli/tests/known_bad/UnknownGeneratesWith.roc rename to crates/cli/tests/known_bad/UnknownGeneratesWith.roc diff --git a/cli/tests/known_bad/UnusedImport.roc b/crates/cli/tests/known_bad/UnusedImport.roc similarity index 100% rename from cli/tests/known_bad/UnusedImport.roc rename to crates/cli/tests/known_bad/UnusedImport.roc diff --git a/crates/cli/tests/known_bad/platform b/crates/cli/tests/known_bad/platform new file mode 120000 index 0000000000..9795b9d317 --- /dev/null +++ b/crates/cli/tests/known_bad/platform @@ -0,0 +1 @@ +../../../../examples/interactive/cli-platform \ No newline at end of file diff --git a/cli_utils/Cargo.lock b/crates/cli_utils/Cargo.lock similarity index 100% rename from cli_utils/Cargo.lock rename to crates/cli_utils/Cargo.lock diff --git a/cli_utils/Cargo.toml b/crates/cli_utils/Cargo.toml similarity index 100% rename from cli_utils/Cargo.toml rename to crates/cli_utils/Cargo.toml diff --git a/cli_utils/src/bench_utils.rs b/crates/cli_utils/src/bench_utils.rs similarity index 100% rename from cli_utils/src/bench_utils.rs rename to crates/cli_utils/src/bench_utils.rs diff --git a/cli_utils/src/helpers.rs b/crates/cli_utils/src/helpers.rs similarity index 99% rename from cli_utils/src/helpers.rs rename to crates/cli_utils/src/helpers.rs index b64b213142..2598504ae3 100644 --- a/cli_utils/src/helpers.rs +++ b/crates/cli_utils/src/helpers.rs @@ -382,7 +382,8 @@ pub fn example_file(dir_name: &str, file_name: &str) -> PathBuf { pub fn fixtures_dir(dir_name: &str) -> PathBuf { let mut path = root_dir(); - // Descend into cli/tests/fixtures/{dir_name} + // Descend into crates/cli/tests/fixtures/{dir_name} + path.push("crates"); path.push("cli"); path.push("tests"); path.push("fixtures"); @@ -405,6 +406,7 @@ pub fn known_bad_file(file_name: &str) -> PathBuf { let mut path = root_dir(); // Descend into cli/tests/known_bad/{file_name} + path.push("crates"); path.push("cli"); path.push("tests"); path.push("known_bad"); diff --git a/cli_utils/src/lib.rs b/crates/cli_utils/src/lib.rs similarity index 100% rename from cli_utils/src/lib.rs rename to crates/cli_utils/src/lib.rs diff --git a/code_markup/Cargo.toml b/crates/code_markup/Cargo.toml similarity index 100% rename from code_markup/Cargo.toml rename to crates/code_markup/Cargo.toml diff --git a/code_markup/src/colors.rs b/crates/code_markup/src/colors.rs similarity index 100% rename from code_markup/src/colors.rs rename to crates/code_markup/src/colors.rs diff --git a/code_markup/src/lib.rs b/crates/code_markup/src/lib.rs similarity index 100% rename from code_markup/src/lib.rs rename to crates/code_markup/src/lib.rs diff --git a/code_markup/src/markup/attribute.rs b/crates/code_markup/src/markup/attribute.rs similarity index 100% rename from code_markup/src/markup/attribute.rs rename to crates/code_markup/src/markup/attribute.rs diff --git a/code_markup/src/markup/common_nodes.rs b/crates/code_markup/src/markup/common_nodes.rs similarity index 100% rename from code_markup/src/markup/common_nodes.rs rename to crates/code_markup/src/markup/common_nodes.rs diff --git a/code_markup/src/markup/convert/from_ast.rs b/crates/code_markup/src/markup/convert/from_ast.rs similarity index 100% rename from code_markup/src/markup/convert/from_ast.rs rename to crates/code_markup/src/markup/convert/from_ast.rs diff --git a/code_markup/src/markup/convert/from_def2.rs b/crates/code_markup/src/markup/convert/from_def2.rs similarity index 100% rename from code_markup/src/markup/convert/from_def2.rs rename to crates/code_markup/src/markup/convert/from_def2.rs diff --git a/code_markup/src/markup/convert/from_expr2.rs b/crates/code_markup/src/markup/convert/from_expr2.rs similarity index 100% rename from code_markup/src/markup/convert/from_expr2.rs rename to crates/code_markup/src/markup/convert/from_expr2.rs diff --git a/code_markup/src/markup/convert/from_header.rs b/crates/code_markup/src/markup/convert/from_header.rs similarity index 100% rename from code_markup/src/markup/convert/from_header.rs rename to crates/code_markup/src/markup/convert/from_header.rs diff --git a/code_markup/src/markup/convert/mod.rs b/crates/code_markup/src/markup/convert/mod.rs similarity index 100% rename from code_markup/src/markup/convert/mod.rs rename to crates/code_markup/src/markup/convert/mod.rs diff --git a/code_markup/src/markup/mark_id_ast_id_map.rs b/crates/code_markup/src/markup/mark_id_ast_id_map.rs similarity index 100% rename from code_markup/src/markup/mark_id_ast_id_map.rs rename to crates/code_markup/src/markup/mark_id_ast_id_map.rs diff --git a/code_markup/src/markup/mod.rs b/crates/code_markup/src/markup/mod.rs similarity index 100% rename from code_markup/src/markup/mod.rs rename to crates/code_markup/src/markup/mod.rs diff --git a/code_markup/src/markup/nodes.rs b/crates/code_markup/src/markup/nodes.rs similarity index 100% rename from code_markup/src/markup/nodes.rs rename to crates/code_markup/src/markup/nodes.rs diff --git a/code_markup/src/markup/top_level_def.rs b/crates/code_markup/src/markup/top_level_def.rs similarity index 100% rename from code_markup/src/markup/top_level_def.rs rename to crates/code_markup/src/markup/top_level_def.rs diff --git a/code_markup/src/markup_error.rs b/crates/code_markup/src/markup_error.rs similarity index 100% rename from code_markup/src/markup_error.rs rename to crates/code_markup/src/markup_error.rs diff --git a/code_markup/src/slow_pool.rs b/crates/code_markup/src/slow_pool.rs similarity index 100% rename from code_markup/src/slow_pool.rs rename to crates/code_markup/src/slow_pool.rs diff --git a/code_markup/src/syntax_highlight.rs b/crates/code_markup/src/syntax_highlight.rs similarity index 100% rename from code_markup/src/syntax_highlight.rs rename to crates/code_markup/src/syntax_highlight.rs diff --git a/code_markup/src/underline_style.rs b/crates/code_markup/src/underline_style.rs similarity index 100% rename from code_markup/src/underline_style.rs rename to crates/code_markup/src/underline_style.rs diff --git a/compiler/README.md b/crates/compiler/README.md similarity index 100% rename from compiler/README.md rename to crates/compiler/README.md diff --git a/compiler/alias_analysis/Cargo.toml b/crates/compiler/alias_analysis/Cargo.toml similarity index 100% rename from compiler/alias_analysis/Cargo.toml rename to crates/compiler/alias_analysis/Cargo.toml diff --git a/compiler/alias_analysis/src/lib.rs b/crates/compiler/alias_analysis/src/lib.rs similarity index 100% rename from compiler/alias_analysis/src/lib.rs rename to crates/compiler/alias_analysis/src/lib.rs diff --git a/compiler/arena_pool/Cargo.toml b/crates/compiler/arena_pool/Cargo.toml similarity index 100% rename from compiler/arena_pool/Cargo.toml rename to crates/compiler/arena_pool/Cargo.toml diff --git a/compiler/arena_pool/src/lib.rs b/crates/compiler/arena_pool/src/lib.rs similarity index 100% rename from compiler/arena_pool/src/lib.rs rename to crates/compiler/arena_pool/src/lib.rs diff --git a/compiler/arena_pool/src/pool.rs b/crates/compiler/arena_pool/src/pool.rs similarity index 100% rename from compiler/arena_pool/src/pool.rs rename to crates/compiler/arena_pool/src/pool.rs diff --git a/compiler/arena_pool/tests/test_arena_pool.rs b/crates/compiler/arena_pool/tests/test_arena_pool.rs similarity index 100% rename from compiler/arena_pool/tests/test_arena_pool.rs rename to crates/compiler/arena_pool/tests/test_arena_pool.rs diff --git a/compiler/build/Cargo.toml b/crates/compiler/build/Cargo.toml similarity index 100% rename from compiler/build/Cargo.toml rename to crates/compiler/build/Cargo.toml diff --git a/compiler/build/src/lib.rs b/crates/compiler/build/src/lib.rs similarity index 100% rename from compiler/build/src/lib.rs rename to crates/compiler/build/src/lib.rs diff --git a/compiler/build/src/link.rs b/crates/compiler/build/src/link.rs similarity index 99% rename from compiler/build/src/link.rs rename to crates/compiler/build/src/link.rs index 84cb494af0..893cdabee9 100644 --- a/compiler/build/src/link.rs +++ b/crates/compiler/build/src/link.rs @@ -65,7 +65,7 @@ pub fn link( } fn find_zig_str_path() -> PathBuf { - let zig_str_path = PathBuf::from("compiler/builtins/bitcode/src/str.zig"); + let zig_str_path = PathBuf::from("crates/compiler/builtins/bitcode/src/str.zig"); if std::path::Path::exists(&zig_str_path) { return zig_str_path; diff --git a/compiler/build/src/program.rs b/crates/compiler/build/src/program.rs similarity index 100% rename from compiler/build/src/program.rs rename to crates/compiler/build/src/program.rs diff --git a/compiler/build/src/target.rs b/crates/compiler/build/src/target.rs similarity index 100% rename from compiler/build/src/target.rs rename to crates/compiler/build/src/target.rs diff --git a/compiler/builtins/.gitignore b/crates/compiler/builtins/.gitignore similarity index 100% rename from compiler/builtins/.gitignore rename to crates/compiler/builtins/.gitignore diff --git a/compiler/builtins/Cargo.toml b/crates/compiler/builtins/Cargo.toml similarity index 100% rename from compiler/builtins/Cargo.toml rename to crates/compiler/builtins/Cargo.toml diff --git a/compiler/builtins/README.md b/crates/compiler/builtins/README.md similarity index 100% rename from compiler/builtins/README.md rename to crates/compiler/builtins/README.md diff --git a/compiler/builtins/bitcode/.gitignore b/crates/compiler/builtins/bitcode/.gitignore similarity index 100% rename from compiler/builtins/bitcode/.gitignore rename to crates/compiler/builtins/bitcode/.gitignore diff --git a/compiler/builtins/bitcode/README.md b/crates/compiler/builtins/bitcode/README.md similarity index 100% rename from compiler/builtins/bitcode/README.md rename to crates/compiler/builtins/bitcode/README.md diff --git a/compiler/builtins/bitcode/benchmark.sh b/crates/compiler/builtins/bitcode/benchmark.sh similarity index 100% rename from compiler/builtins/bitcode/benchmark.sh rename to crates/compiler/builtins/bitcode/benchmark.sh diff --git a/compiler/builtins/bitcode/benchmark/dec.zig b/crates/compiler/builtins/bitcode/benchmark/dec.zig similarity index 100% rename from compiler/builtins/bitcode/benchmark/dec.zig rename to crates/compiler/builtins/bitcode/benchmark/dec.zig diff --git a/compiler/builtins/bitcode/build.zig b/crates/compiler/builtins/bitcode/build.zig similarity index 100% rename from compiler/builtins/bitcode/build.zig rename to crates/compiler/builtins/bitcode/build.zig diff --git a/compiler/builtins/bitcode/run-tests.sh b/crates/compiler/builtins/bitcode/run-tests.sh similarity index 100% rename from compiler/builtins/bitcode/run-tests.sh rename to crates/compiler/builtins/bitcode/run-tests.sh diff --git a/compiler/builtins/bitcode/run-wasm-tests.sh b/crates/compiler/builtins/bitcode/run-wasm-tests.sh similarity index 100% rename from compiler/builtins/bitcode/run-wasm-tests.sh rename to crates/compiler/builtins/bitcode/run-wasm-tests.sh diff --git a/compiler/builtins/bitcode/src/dec.zig b/crates/compiler/builtins/bitcode/src/dec.zig similarity index 100% rename from compiler/builtins/bitcode/src/dec.zig rename to crates/compiler/builtins/bitcode/src/dec.zig diff --git a/compiler/builtins/bitcode/src/dict.zig b/crates/compiler/builtins/bitcode/src/dict.zig similarity index 100% rename from compiler/builtins/bitcode/src/dict.zig rename to crates/compiler/builtins/bitcode/src/dict.zig diff --git a/compiler/builtins/bitcode/src/expect.zig b/crates/compiler/builtins/bitcode/src/expect.zig similarity index 100% rename from compiler/builtins/bitcode/src/expect.zig rename to crates/compiler/builtins/bitcode/src/expect.zig diff --git a/compiler/builtins/bitcode/src/hash.zig b/crates/compiler/builtins/bitcode/src/hash.zig similarity index 100% rename from compiler/builtins/bitcode/src/hash.zig rename to crates/compiler/builtins/bitcode/src/hash.zig diff --git a/compiler/builtins/bitcode/src/helpers/grapheme.zig b/crates/compiler/builtins/bitcode/src/helpers/grapheme.zig similarity index 100% rename from compiler/builtins/bitcode/src/helpers/grapheme.zig rename to crates/compiler/builtins/bitcode/src/helpers/grapheme.zig diff --git a/compiler/builtins/bitcode/src/list.zig b/crates/compiler/builtins/bitcode/src/list.zig similarity index 100% rename from compiler/builtins/bitcode/src/list.zig rename to crates/compiler/builtins/bitcode/src/list.zig diff --git a/compiler/builtins/bitcode/src/main.zig b/crates/compiler/builtins/bitcode/src/main.zig similarity index 100% rename from compiler/builtins/bitcode/src/main.zig rename to crates/compiler/builtins/bitcode/src/main.zig diff --git a/compiler/builtins/bitcode/src/num.zig b/crates/compiler/builtins/bitcode/src/num.zig similarity index 100% rename from compiler/builtins/bitcode/src/num.zig rename to crates/compiler/builtins/bitcode/src/num.zig diff --git a/compiler/builtins/bitcode/src/str.zig b/crates/compiler/builtins/bitcode/src/str.zig similarity index 100% rename from compiler/builtins/bitcode/src/str.zig rename to crates/compiler/builtins/bitcode/src/str.zig diff --git a/compiler/builtins/bitcode/src/utils.zig b/crates/compiler/builtins/bitcode/src/utils.zig similarity index 100% rename from compiler/builtins/bitcode/src/utils.zig rename to crates/compiler/builtins/bitcode/src/utils.zig diff --git a/compiler/builtins/bitcode/tests/bitcode_test.rs b/crates/compiler/builtins/bitcode/tests/bitcode_test.rs similarity index 100% rename from compiler/builtins/bitcode/tests/bitcode_test.rs rename to crates/compiler/builtins/bitcode/tests/bitcode_test.rs diff --git a/compiler/builtins/build.rs b/crates/compiler/builtins/build.rs similarity index 100% rename from compiler/builtins/build.rs rename to crates/compiler/builtins/build.rs diff --git a/compiler/builtins/roc/Bool.roc b/crates/compiler/builtins/roc/Bool.roc similarity index 100% rename from compiler/builtins/roc/Bool.roc rename to crates/compiler/builtins/roc/Bool.roc diff --git a/compiler/builtins/roc/Box.roc b/crates/compiler/builtins/roc/Box.roc similarity index 100% rename from compiler/builtins/roc/Box.roc rename to crates/compiler/builtins/roc/Box.roc diff --git a/compiler/builtins/roc/Dict.roc b/crates/compiler/builtins/roc/Dict.roc similarity index 100% rename from compiler/builtins/roc/Dict.roc rename to crates/compiler/builtins/roc/Dict.roc diff --git a/compiler/builtins/roc/Encode.roc b/crates/compiler/builtins/roc/Encode.roc similarity index 100% rename from compiler/builtins/roc/Encode.roc rename to crates/compiler/builtins/roc/Encode.roc diff --git a/compiler/builtins/roc/Json.roc b/crates/compiler/builtins/roc/Json.roc similarity index 100% rename from compiler/builtins/roc/Json.roc rename to crates/compiler/builtins/roc/Json.roc diff --git a/compiler/builtins/roc/List.roc b/crates/compiler/builtins/roc/List.roc similarity index 100% rename from compiler/builtins/roc/List.roc rename to crates/compiler/builtins/roc/List.roc diff --git a/compiler/builtins/roc/Num.roc b/crates/compiler/builtins/roc/Num.roc similarity index 100% rename from compiler/builtins/roc/Num.roc rename to crates/compiler/builtins/roc/Num.roc diff --git a/compiler/builtins/roc/Result.roc b/crates/compiler/builtins/roc/Result.roc similarity index 100% rename from compiler/builtins/roc/Result.roc rename to crates/compiler/builtins/roc/Result.roc diff --git a/compiler/builtins/roc/Set.roc b/crates/compiler/builtins/roc/Set.roc similarity index 100% rename from compiler/builtins/roc/Set.roc rename to crates/compiler/builtins/roc/Set.roc diff --git a/compiler/builtins/roc/Str.roc b/crates/compiler/builtins/roc/Str.roc similarity index 100% rename from compiler/builtins/roc/Str.roc rename to crates/compiler/builtins/roc/Str.roc diff --git a/compiler/builtins/src/bitcode.rs b/crates/compiler/builtins/src/bitcode.rs similarity index 100% rename from compiler/builtins/src/bitcode.rs rename to crates/compiler/builtins/src/bitcode.rs diff --git a/compiler/builtins/src/lib.rs b/crates/compiler/builtins/src/lib.rs similarity index 100% rename from compiler/builtins/src/lib.rs rename to crates/compiler/builtins/src/lib.rs diff --git a/compiler/builtins/src/roc.rs b/crates/compiler/builtins/src/roc.rs similarity index 100% rename from compiler/builtins/src/roc.rs rename to crates/compiler/builtins/src/roc.rs diff --git a/compiler/builtins/src/std.rs b/crates/compiler/builtins/src/std.rs similarity index 100% rename from compiler/builtins/src/std.rs rename to crates/compiler/builtins/src/std.rs diff --git a/compiler/can/Cargo.toml b/crates/compiler/can/Cargo.toml similarity index 100% rename from compiler/can/Cargo.toml rename to crates/compiler/can/Cargo.toml diff --git a/compiler/can/src/abilities.rs b/crates/compiler/can/src/abilities.rs similarity index 100% rename from compiler/can/src/abilities.rs rename to crates/compiler/can/src/abilities.rs diff --git a/compiler/can/src/annotation.rs b/crates/compiler/can/src/annotation.rs similarity index 100% rename from compiler/can/src/annotation.rs rename to crates/compiler/can/src/annotation.rs diff --git a/compiler/can/src/builtins.rs b/crates/compiler/can/src/builtins.rs similarity index 100% rename from compiler/can/src/builtins.rs rename to crates/compiler/can/src/builtins.rs diff --git a/compiler/can/src/constraint.rs b/crates/compiler/can/src/constraint.rs similarity index 100% rename from compiler/can/src/constraint.rs rename to crates/compiler/can/src/constraint.rs diff --git a/compiler/can/src/def.rs b/crates/compiler/can/src/def.rs similarity index 100% rename from compiler/can/src/def.rs rename to crates/compiler/can/src/def.rs diff --git a/compiler/can/src/effect_module.rs b/crates/compiler/can/src/effect_module.rs similarity index 100% rename from compiler/can/src/effect_module.rs rename to crates/compiler/can/src/effect_module.rs diff --git a/compiler/can/src/env.rs b/crates/compiler/can/src/env.rs similarity index 100% rename from compiler/can/src/env.rs rename to crates/compiler/can/src/env.rs diff --git a/compiler/can/src/exhaustive.rs b/crates/compiler/can/src/exhaustive.rs similarity index 100% rename from compiler/can/src/exhaustive.rs rename to crates/compiler/can/src/exhaustive.rs diff --git a/compiler/can/src/expected.rs b/crates/compiler/can/src/expected.rs similarity index 100% rename from compiler/can/src/expected.rs rename to crates/compiler/can/src/expected.rs diff --git a/compiler/can/src/expr.rs b/crates/compiler/can/src/expr.rs similarity index 100% rename from compiler/can/src/expr.rs rename to crates/compiler/can/src/expr.rs diff --git a/compiler/can/src/lib.rs b/crates/compiler/can/src/lib.rs similarity index 100% rename from compiler/can/src/lib.rs rename to crates/compiler/can/src/lib.rs diff --git a/compiler/can/src/module.rs b/crates/compiler/can/src/module.rs similarity index 100% rename from compiler/can/src/module.rs rename to crates/compiler/can/src/module.rs diff --git a/compiler/can/src/num.rs b/crates/compiler/can/src/num.rs similarity index 100% rename from compiler/can/src/num.rs rename to crates/compiler/can/src/num.rs diff --git a/compiler/can/src/operator.rs b/crates/compiler/can/src/operator.rs similarity index 100% rename from compiler/can/src/operator.rs rename to crates/compiler/can/src/operator.rs diff --git a/compiler/can/src/pattern.rs b/crates/compiler/can/src/pattern.rs similarity index 100% rename from compiler/can/src/pattern.rs rename to crates/compiler/can/src/pattern.rs diff --git a/compiler/can/src/procedure.rs b/crates/compiler/can/src/procedure.rs similarity index 100% rename from compiler/can/src/procedure.rs rename to crates/compiler/can/src/procedure.rs diff --git a/compiler/can/src/scope.rs b/crates/compiler/can/src/scope.rs similarity index 100% rename from compiler/can/src/scope.rs rename to crates/compiler/can/src/scope.rs diff --git a/compiler/can/src/string.rs b/crates/compiler/can/src/string.rs similarity index 100% rename from compiler/can/src/string.rs rename to crates/compiler/can/src/string.rs diff --git a/compiler/can/src/traverse.rs b/crates/compiler/can/src/traverse.rs similarity index 100% rename from compiler/can/src/traverse.rs rename to crates/compiler/can/src/traverse.rs diff --git a/compiler/can/tests/helpers/mod.rs b/crates/compiler/can/tests/helpers/mod.rs similarity index 100% rename from compiler/can/tests/helpers/mod.rs rename to crates/compiler/can/tests/helpers/mod.rs diff --git a/compiler/can/tests/test_can.rs b/crates/compiler/can/tests/test_can.rs similarity index 100% rename from compiler/can/tests/test_can.rs rename to crates/compiler/can/tests/test_can.rs diff --git a/compiler/collections/Cargo.toml b/crates/compiler/collections/Cargo.toml similarity index 100% rename from compiler/collections/Cargo.toml rename to crates/compiler/collections/Cargo.toml diff --git a/compiler/collections/src/all.rs b/crates/compiler/collections/src/all.rs similarity index 100% rename from compiler/collections/src/all.rs rename to crates/compiler/collections/src/all.rs diff --git a/compiler/collections/src/lib.rs b/crates/compiler/collections/src/lib.rs similarity index 100% rename from compiler/collections/src/lib.rs rename to crates/compiler/collections/src/lib.rs diff --git a/compiler/collections/src/reference_matrix.rs b/crates/compiler/collections/src/reference_matrix.rs similarity index 100% rename from compiler/collections/src/reference_matrix.rs rename to crates/compiler/collections/src/reference_matrix.rs diff --git a/compiler/collections/src/small_string_interner.rs b/crates/compiler/collections/src/small_string_interner.rs similarity index 100% rename from compiler/collections/src/small_string_interner.rs rename to crates/compiler/collections/src/small_string_interner.rs diff --git a/compiler/collections/src/soa.rs b/crates/compiler/collections/src/soa.rs similarity index 100% rename from compiler/collections/src/soa.rs rename to crates/compiler/collections/src/soa.rs diff --git a/compiler/collections/src/vec_map.rs b/crates/compiler/collections/src/vec_map.rs similarity index 100% rename from compiler/collections/src/vec_map.rs rename to crates/compiler/collections/src/vec_map.rs diff --git a/compiler/collections/src/vec_set.rs b/crates/compiler/collections/src/vec_set.rs similarity index 100% rename from compiler/collections/src/vec_set.rs rename to crates/compiler/collections/src/vec_set.rs diff --git a/compiler/constrain/Cargo.toml b/crates/compiler/constrain/Cargo.toml similarity index 100% rename from compiler/constrain/Cargo.toml rename to crates/compiler/constrain/Cargo.toml diff --git a/compiler/constrain/src/builtins.rs b/crates/compiler/constrain/src/builtins.rs similarity index 100% rename from compiler/constrain/src/builtins.rs rename to crates/compiler/constrain/src/builtins.rs diff --git a/compiler/constrain/src/expr.rs b/crates/compiler/constrain/src/expr.rs similarity index 100% rename from compiler/constrain/src/expr.rs rename to crates/compiler/constrain/src/expr.rs diff --git a/compiler/constrain/src/lib.rs b/crates/compiler/constrain/src/lib.rs similarity index 100% rename from compiler/constrain/src/lib.rs rename to crates/compiler/constrain/src/lib.rs diff --git a/compiler/constrain/src/module.rs b/crates/compiler/constrain/src/module.rs similarity index 100% rename from compiler/constrain/src/module.rs rename to crates/compiler/constrain/src/module.rs diff --git a/compiler/constrain/src/pattern.rs b/crates/compiler/constrain/src/pattern.rs similarity index 100% rename from compiler/constrain/src/pattern.rs rename to crates/compiler/constrain/src/pattern.rs diff --git a/compiler/debug_flags/Cargo.toml b/crates/compiler/debug_flags/Cargo.toml similarity index 100% rename from compiler/debug_flags/Cargo.toml rename to crates/compiler/debug_flags/Cargo.toml diff --git a/compiler/debug_flags/src/lib.rs b/crates/compiler/debug_flags/src/lib.rs similarity index 100% rename from compiler/debug_flags/src/lib.rs rename to crates/compiler/debug_flags/src/lib.rs diff --git a/compiler/derive/Cargo.toml b/crates/compiler/derive/Cargo.toml similarity index 100% rename from compiler/derive/Cargo.toml rename to crates/compiler/derive/Cargo.toml diff --git a/compiler/derive/src/encoding.rs b/crates/compiler/derive/src/encoding.rs similarity index 100% rename from compiler/derive/src/encoding.rs rename to crates/compiler/derive/src/encoding.rs diff --git a/compiler/derive/src/lib.rs b/crates/compiler/derive/src/lib.rs similarity index 100% rename from compiler/derive/src/lib.rs rename to crates/compiler/derive/src/lib.rs diff --git a/compiler/derive_key/Cargo.toml b/crates/compiler/derive_key/Cargo.toml similarity index 100% rename from compiler/derive_key/Cargo.toml rename to crates/compiler/derive_key/Cargo.toml diff --git a/compiler/derive_key/src/encoding.rs b/crates/compiler/derive_key/src/encoding.rs similarity index 100% rename from compiler/derive_key/src/encoding.rs rename to crates/compiler/derive_key/src/encoding.rs diff --git a/compiler/derive_key/src/lib.rs b/crates/compiler/derive_key/src/lib.rs similarity index 100% rename from compiler/derive_key/src/lib.rs rename to crates/compiler/derive_key/src/lib.rs diff --git a/compiler/exhaustive/Cargo.toml b/crates/compiler/exhaustive/Cargo.toml similarity index 100% rename from compiler/exhaustive/Cargo.toml rename to crates/compiler/exhaustive/Cargo.toml diff --git a/compiler/exhaustive/src/lib.rs b/crates/compiler/exhaustive/src/lib.rs similarity index 100% rename from compiler/exhaustive/src/lib.rs rename to crates/compiler/exhaustive/src/lib.rs diff --git a/compiler/fmt/Cargo.toml b/crates/compiler/fmt/Cargo.toml similarity index 100% rename from compiler/fmt/Cargo.toml rename to crates/compiler/fmt/Cargo.toml diff --git a/compiler/fmt/src/annotation.rs b/crates/compiler/fmt/src/annotation.rs similarity index 100% rename from compiler/fmt/src/annotation.rs rename to crates/compiler/fmt/src/annotation.rs diff --git a/compiler/fmt/src/collection.rs b/crates/compiler/fmt/src/collection.rs similarity index 100% rename from compiler/fmt/src/collection.rs rename to crates/compiler/fmt/src/collection.rs diff --git a/compiler/fmt/src/def.rs b/crates/compiler/fmt/src/def.rs similarity index 100% rename from compiler/fmt/src/def.rs rename to crates/compiler/fmt/src/def.rs diff --git a/compiler/fmt/src/expr.rs b/crates/compiler/fmt/src/expr.rs similarity index 100% rename from compiler/fmt/src/expr.rs rename to crates/compiler/fmt/src/expr.rs diff --git a/compiler/fmt/src/lib.rs b/crates/compiler/fmt/src/lib.rs similarity index 100% rename from compiler/fmt/src/lib.rs rename to crates/compiler/fmt/src/lib.rs diff --git a/compiler/fmt/src/module.rs b/crates/compiler/fmt/src/module.rs similarity index 100% rename from compiler/fmt/src/module.rs rename to crates/compiler/fmt/src/module.rs diff --git a/compiler/fmt/src/pattern.rs b/crates/compiler/fmt/src/pattern.rs similarity index 100% rename from compiler/fmt/src/pattern.rs rename to crates/compiler/fmt/src/pattern.rs diff --git a/compiler/fmt/src/spaces.rs b/crates/compiler/fmt/src/spaces.rs similarity index 100% rename from compiler/fmt/src/spaces.rs rename to crates/compiler/fmt/src/spaces.rs diff --git a/compiler/fmt/tests/test_fmt.rs b/crates/compiler/fmt/tests/test_fmt.rs similarity index 99% rename from compiler/fmt/tests/test_fmt.rs rename to crates/compiler/fmt/tests/test_fmt.rs index 34f714f96c..504b646da7 100644 --- a/compiler/fmt/tests/test_fmt.rs +++ b/crates/compiler/fmt/tests/test_fmt.rs @@ -4940,9 +4940,13 @@ mod test_fmt { /// `cargo run -- format $(find compiler/builtins/roc -name \*.roc)` fn test_fmt_builtins() { let mut count = 0; - let mut root = workspace_root(); - root.push("compiler/builtins/roc"); - for entry in walkdir::WalkDir::new(&root) { + let builtins_path = workspace_root() + .join("crates") + .join("compiler") + .join("builtins") + .join("roc"); + + for entry in walkdir::WalkDir::new(&builtins_path) { let entry = entry.unwrap(); let path = entry.path(); if path.extension() == Some(std::ffi::OsStr::new("roc")) { @@ -4955,7 +4959,7 @@ mod test_fmt { assert!( count > 0, "Expecting to find at least 1 .roc file to format under {}", - root.display() + builtins_path.display() ); } diff --git a/compiler/gen_dev/Cargo.toml b/crates/compiler/gen_dev/Cargo.toml similarity index 100% rename from compiler/gen_dev/Cargo.toml rename to crates/compiler/gen_dev/Cargo.toml diff --git a/compiler/gen_dev/README.md b/crates/compiler/gen_dev/README.md similarity index 100% rename from compiler/gen_dev/README.md rename to crates/compiler/gen_dev/README.md diff --git a/compiler/gen_dev/src/generic64/aarch64.rs b/crates/compiler/gen_dev/src/generic64/aarch64.rs similarity index 100% rename from compiler/gen_dev/src/generic64/aarch64.rs rename to crates/compiler/gen_dev/src/generic64/aarch64.rs diff --git a/compiler/gen_dev/src/generic64/disassembler_test_macro.rs b/crates/compiler/gen_dev/src/generic64/disassembler_test_macro.rs similarity index 100% rename from compiler/gen_dev/src/generic64/disassembler_test_macro.rs rename to crates/compiler/gen_dev/src/generic64/disassembler_test_macro.rs diff --git a/compiler/gen_dev/src/generic64/mod.rs b/crates/compiler/gen_dev/src/generic64/mod.rs similarity index 100% rename from compiler/gen_dev/src/generic64/mod.rs rename to crates/compiler/gen_dev/src/generic64/mod.rs diff --git a/compiler/gen_dev/src/generic64/storage.rs b/crates/compiler/gen_dev/src/generic64/storage.rs similarity index 100% rename from compiler/gen_dev/src/generic64/storage.rs rename to crates/compiler/gen_dev/src/generic64/storage.rs diff --git a/compiler/gen_dev/src/generic64/x86_64.rs b/crates/compiler/gen_dev/src/generic64/x86_64.rs similarity index 100% rename from compiler/gen_dev/src/generic64/x86_64.rs rename to crates/compiler/gen_dev/src/generic64/x86_64.rs diff --git a/compiler/gen_dev/src/lib.rs b/crates/compiler/gen_dev/src/lib.rs similarity index 100% rename from compiler/gen_dev/src/lib.rs rename to crates/compiler/gen_dev/src/lib.rs diff --git a/compiler/gen_dev/src/object_builder.rs b/crates/compiler/gen_dev/src/object_builder.rs similarity index 100% rename from compiler/gen_dev/src/object_builder.rs rename to crates/compiler/gen_dev/src/object_builder.rs diff --git a/compiler/gen_dev/src/run_roc.rs b/crates/compiler/gen_dev/src/run_roc.rs similarity index 100% rename from compiler/gen_dev/src/run_roc.rs rename to crates/compiler/gen_dev/src/run_roc.rs diff --git a/compiler/gen_dev/src/todo.md b/crates/compiler/gen_dev/src/todo.md similarity index 100% rename from compiler/gen_dev/src/todo.md rename to crates/compiler/gen_dev/src/todo.md diff --git a/compiler/gen_llvm/Cargo.toml b/crates/compiler/gen_llvm/Cargo.toml similarity index 100% rename from compiler/gen_llvm/Cargo.toml rename to crates/compiler/gen_llvm/Cargo.toml diff --git a/compiler/gen_llvm/src/lib.rs b/crates/compiler/gen_llvm/src/lib.rs similarity index 100% rename from compiler/gen_llvm/src/lib.rs rename to crates/compiler/gen_llvm/src/lib.rs diff --git a/compiler/gen_llvm/src/llvm/bitcode.rs b/crates/compiler/gen_llvm/src/llvm/bitcode.rs similarity index 100% rename from compiler/gen_llvm/src/llvm/bitcode.rs rename to crates/compiler/gen_llvm/src/llvm/bitcode.rs diff --git a/compiler/gen_llvm/src/llvm/build.rs b/crates/compiler/gen_llvm/src/llvm/build.rs similarity index 100% rename from compiler/gen_llvm/src/llvm/build.rs rename to crates/compiler/gen_llvm/src/llvm/build.rs diff --git a/compiler/gen_llvm/src/llvm/build_dict.rs b/crates/compiler/gen_llvm/src/llvm/build_dict.rs similarity index 100% rename from compiler/gen_llvm/src/llvm/build_dict.rs rename to crates/compiler/gen_llvm/src/llvm/build_dict.rs diff --git a/compiler/gen_llvm/src/llvm/build_hash.rs b/crates/compiler/gen_llvm/src/llvm/build_hash.rs similarity index 100% rename from compiler/gen_llvm/src/llvm/build_hash.rs rename to crates/compiler/gen_llvm/src/llvm/build_hash.rs diff --git a/compiler/gen_llvm/src/llvm/build_list.rs b/crates/compiler/gen_llvm/src/llvm/build_list.rs similarity index 100% rename from compiler/gen_llvm/src/llvm/build_list.rs rename to crates/compiler/gen_llvm/src/llvm/build_list.rs diff --git a/compiler/gen_llvm/src/llvm/build_str.rs b/crates/compiler/gen_llvm/src/llvm/build_str.rs similarity index 100% rename from compiler/gen_llvm/src/llvm/build_str.rs rename to crates/compiler/gen_llvm/src/llvm/build_str.rs diff --git a/compiler/gen_llvm/src/llvm/compare.rs b/crates/compiler/gen_llvm/src/llvm/compare.rs similarity index 100% rename from compiler/gen_llvm/src/llvm/compare.rs rename to crates/compiler/gen_llvm/src/llvm/compare.rs diff --git a/compiler/gen_llvm/src/llvm/convert.rs b/crates/compiler/gen_llvm/src/llvm/convert.rs similarity index 100% rename from compiler/gen_llvm/src/llvm/convert.rs rename to crates/compiler/gen_llvm/src/llvm/convert.rs diff --git a/compiler/gen_llvm/src/llvm/externs.rs b/crates/compiler/gen_llvm/src/llvm/externs.rs similarity index 100% rename from compiler/gen_llvm/src/llvm/externs.rs rename to crates/compiler/gen_llvm/src/llvm/externs.rs diff --git a/compiler/gen_llvm/src/llvm/mod.rs b/crates/compiler/gen_llvm/src/llvm/mod.rs similarity index 100% rename from compiler/gen_llvm/src/llvm/mod.rs rename to crates/compiler/gen_llvm/src/llvm/mod.rs diff --git a/compiler/gen_llvm/src/llvm/refcounting.rs b/crates/compiler/gen_llvm/src/llvm/refcounting.rs similarity index 100% rename from compiler/gen_llvm/src/llvm/refcounting.rs rename to crates/compiler/gen_llvm/src/llvm/refcounting.rs diff --git a/compiler/gen_llvm/src/run_roc.rs b/crates/compiler/gen_llvm/src/run_roc.rs similarity index 100% rename from compiler/gen_llvm/src/run_roc.rs rename to crates/compiler/gen_llvm/src/run_roc.rs diff --git a/compiler/gen_wasm/.gitignore b/crates/compiler/gen_wasm/.gitignore similarity index 100% rename from compiler/gen_wasm/.gitignore rename to crates/compiler/gen_wasm/.gitignore diff --git a/compiler/gen_wasm/Cargo.toml b/crates/compiler/gen_wasm/Cargo.toml similarity index 100% rename from compiler/gen_wasm/Cargo.toml rename to crates/compiler/gen_wasm/Cargo.toml diff --git a/compiler/gen_wasm/README.md b/crates/compiler/gen_wasm/README.md similarity index 100% rename from compiler/gen_wasm/README.md rename to crates/compiler/gen_wasm/README.md diff --git a/compiler/gen_wasm/docs/host-to-app-calls.svg b/crates/compiler/gen_wasm/docs/host-to-app-calls.svg similarity index 100% rename from compiler/gen_wasm/docs/host-to-app-calls.svg rename to crates/compiler/gen_wasm/docs/host-to-app-calls.svg diff --git a/compiler/gen_wasm/src/backend.rs b/crates/compiler/gen_wasm/src/backend.rs similarity index 100% rename from compiler/gen_wasm/src/backend.rs rename to crates/compiler/gen_wasm/src/backend.rs diff --git a/compiler/gen_wasm/src/layout.rs b/crates/compiler/gen_wasm/src/layout.rs similarity index 100% rename from compiler/gen_wasm/src/layout.rs rename to crates/compiler/gen_wasm/src/layout.rs diff --git a/compiler/gen_wasm/src/lib.rs b/crates/compiler/gen_wasm/src/lib.rs similarity index 100% rename from compiler/gen_wasm/src/lib.rs rename to crates/compiler/gen_wasm/src/lib.rs diff --git a/compiler/gen_wasm/src/low_level.rs b/crates/compiler/gen_wasm/src/low_level.rs similarity index 100% rename from compiler/gen_wasm/src/low_level.rs rename to crates/compiler/gen_wasm/src/low_level.rs diff --git a/compiler/gen_wasm/src/storage.rs b/crates/compiler/gen_wasm/src/storage.rs similarity index 100% rename from compiler/gen_wasm/src/storage.rs rename to crates/compiler/gen_wasm/src/storage.rs diff --git a/compiler/gen_wasm/src/wasm32_result.rs b/crates/compiler/gen_wasm/src/wasm32_result.rs similarity index 100% rename from compiler/gen_wasm/src/wasm32_result.rs rename to crates/compiler/gen_wasm/src/wasm32_result.rs diff --git a/compiler/gen_wasm/src/wasm32_sized.rs b/crates/compiler/gen_wasm/src/wasm32_sized.rs similarity index 100% rename from compiler/gen_wasm/src/wasm32_sized.rs rename to crates/compiler/gen_wasm/src/wasm32_sized.rs diff --git a/compiler/gen_wasm/src/wasm_module/code_builder.rs b/crates/compiler/gen_wasm/src/wasm_module/code_builder.rs similarity index 100% rename from compiler/gen_wasm/src/wasm_module/code_builder.rs rename to crates/compiler/gen_wasm/src/wasm_module/code_builder.rs diff --git a/compiler/gen_wasm/src/wasm_module/linking.rs b/crates/compiler/gen_wasm/src/wasm_module/linking.rs similarity index 100% rename from compiler/gen_wasm/src/wasm_module/linking.rs rename to crates/compiler/gen_wasm/src/wasm_module/linking.rs diff --git a/compiler/gen_wasm/src/wasm_module/mod.rs b/crates/compiler/gen_wasm/src/wasm_module/mod.rs similarity index 100% rename from compiler/gen_wasm/src/wasm_module/mod.rs rename to crates/compiler/gen_wasm/src/wasm_module/mod.rs diff --git a/compiler/gen_wasm/src/wasm_module/opcodes.rs b/crates/compiler/gen_wasm/src/wasm_module/opcodes.rs similarity index 100% rename from compiler/gen_wasm/src/wasm_module/opcodes.rs rename to crates/compiler/gen_wasm/src/wasm_module/opcodes.rs diff --git a/compiler/gen_wasm/src/wasm_module/parse.rs b/crates/compiler/gen_wasm/src/wasm_module/parse.rs similarity index 100% rename from compiler/gen_wasm/src/wasm_module/parse.rs rename to crates/compiler/gen_wasm/src/wasm_module/parse.rs diff --git a/compiler/gen_wasm/src/wasm_module/sections.rs b/crates/compiler/gen_wasm/src/wasm_module/sections.rs similarity index 100% rename from compiler/gen_wasm/src/wasm_module/sections.rs rename to crates/compiler/gen_wasm/src/wasm_module/sections.rs diff --git a/compiler/gen_wasm/src/wasm_module/serialize.rs b/crates/compiler/gen_wasm/src/wasm_module/serialize.rs similarity index 100% rename from compiler/gen_wasm/src/wasm_module/serialize.rs rename to crates/compiler/gen_wasm/src/wasm_module/serialize.rs diff --git a/compiler/ident/Cargo.toml b/crates/compiler/ident/Cargo.toml similarity index 100% rename from compiler/ident/Cargo.toml rename to crates/compiler/ident/Cargo.toml diff --git a/compiler/ident/src/lib.rs b/crates/compiler/ident/src/lib.rs similarity index 100% rename from compiler/ident/src/lib.rs rename to crates/compiler/ident/src/lib.rs diff --git a/compiler/late_solve/Cargo.toml b/crates/compiler/late_solve/Cargo.toml similarity index 100% rename from compiler/late_solve/Cargo.toml rename to crates/compiler/late_solve/Cargo.toml diff --git a/compiler/late_solve/src/lib.rs b/crates/compiler/late_solve/src/lib.rs similarity index 100% rename from compiler/late_solve/src/lib.rs rename to crates/compiler/late_solve/src/lib.rs diff --git a/compiler/load/Cargo.toml b/crates/compiler/load/Cargo.toml similarity index 100% rename from compiler/load/Cargo.toml rename to crates/compiler/load/Cargo.toml diff --git a/compiler/load/build.rs b/crates/compiler/load/build.rs similarity index 100% rename from compiler/load/build.rs rename to crates/compiler/load/build.rs diff --git a/compiler/load/src/lib.rs b/crates/compiler/load/src/lib.rs similarity index 100% rename from compiler/load/src/lib.rs rename to crates/compiler/load/src/lib.rs diff --git a/compiler/load_internal/.gitignore b/crates/compiler/load_internal/.gitignore similarity index 100% rename from compiler/load_internal/.gitignore rename to crates/compiler/load_internal/.gitignore diff --git a/compiler/load_internal/Cargo.toml b/crates/compiler/load_internal/Cargo.toml similarity index 100% rename from compiler/load_internal/Cargo.toml rename to crates/compiler/load_internal/Cargo.toml diff --git a/compiler/load_internal/src/docs.rs b/crates/compiler/load_internal/src/docs.rs similarity index 100% rename from compiler/load_internal/src/docs.rs rename to crates/compiler/load_internal/src/docs.rs diff --git a/compiler/load_internal/src/file.rs b/crates/compiler/load_internal/src/file.rs similarity index 100% rename from compiler/load_internal/src/file.rs rename to crates/compiler/load_internal/src/file.rs diff --git a/compiler/load_internal/src/lib.rs b/crates/compiler/load_internal/src/lib.rs similarity index 100% rename from compiler/load_internal/src/lib.rs rename to crates/compiler/load_internal/src/lib.rs diff --git a/compiler/load_internal/src/wasm_system_time.rs b/crates/compiler/load_internal/src/wasm_system_time.rs similarity index 100% rename from compiler/load_internal/src/wasm_system_time.rs rename to crates/compiler/load_internal/src/wasm_system_time.rs diff --git a/compiler/load_internal/src/work.rs b/crates/compiler/load_internal/src/work.rs similarity index 100% rename from compiler/load_internal/src/work.rs rename to crates/compiler/load_internal/src/work.rs diff --git a/compiler/load_internal/tests/fixtures/build/app_with_deps/AStar.roc b/crates/compiler/load_internal/tests/fixtures/build/app_with_deps/AStar.roc similarity index 100% rename from compiler/load_internal/tests/fixtures/build/app_with_deps/AStar.roc rename to crates/compiler/load_internal/tests/fixtures/build/app_with_deps/AStar.roc diff --git a/compiler/load_internal/tests/fixtures/build/app_with_deps/Dep1.roc b/crates/compiler/load_internal/tests/fixtures/build/app_with_deps/Dep1.roc similarity index 100% rename from compiler/load_internal/tests/fixtures/build/app_with_deps/Dep1.roc rename to crates/compiler/load_internal/tests/fixtures/build/app_with_deps/Dep1.roc diff --git a/compiler/load_internal/tests/fixtures/build/app_with_deps/Dep2.roc b/crates/compiler/load_internal/tests/fixtures/build/app_with_deps/Dep2.roc similarity index 100% rename from compiler/load_internal/tests/fixtures/build/app_with_deps/Dep2.roc rename to crates/compiler/load_internal/tests/fixtures/build/app_with_deps/Dep2.roc diff --git a/compiler/load_internal/tests/fixtures/build/app_with_deps/Dep3/Blah.roc b/crates/compiler/load_internal/tests/fixtures/build/app_with_deps/Dep3/Blah.roc similarity index 100% rename from compiler/load_internal/tests/fixtures/build/app_with_deps/Dep3/Blah.roc rename to crates/compiler/load_internal/tests/fixtures/build/app_with_deps/Dep3/Blah.roc diff --git a/compiler/load_internal/tests/fixtures/build/app_with_deps/ImportAlias.roc b/crates/compiler/load_internal/tests/fixtures/build/app_with_deps/ImportAlias.roc similarity index 100% rename from compiler/load_internal/tests/fixtures/build/app_with_deps/ImportAlias.roc rename to crates/compiler/load_internal/tests/fixtures/build/app_with_deps/ImportAlias.roc diff --git a/compiler/load_internal/tests/fixtures/build/app_with_deps/ManualAttr.roc b/crates/compiler/load_internal/tests/fixtures/build/app_with_deps/ManualAttr.roc similarity index 100% rename from compiler/load_internal/tests/fixtures/build/app_with_deps/ManualAttr.roc rename to crates/compiler/load_internal/tests/fixtures/build/app_with_deps/ManualAttr.roc diff --git a/compiler/load_internal/tests/fixtures/build/app_with_deps/OneDep.roc b/crates/compiler/load_internal/tests/fixtures/build/app_with_deps/OneDep.roc similarity index 100% rename from compiler/load_internal/tests/fixtures/build/app_with_deps/OneDep.roc rename to crates/compiler/load_internal/tests/fixtures/build/app_with_deps/OneDep.roc diff --git a/compiler/load_internal/tests/fixtures/build/app_with_deps/Primary.roc b/crates/compiler/load_internal/tests/fixtures/build/app_with_deps/Primary.roc similarity index 100% rename from compiler/load_internal/tests/fixtures/build/app_with_deps/Primary.roc rename to crates/compiler/load_internal/tests/fixtures/build/app_with_deps/Primary.roc diff --git a/compiler/load_internal/tests/fixtures/build/app_with_deps/Quicksort.roc b/crates/compiler/load_internal/tests/fixtures/build/app_with_deps/Quicksort.roc similarity index 100% rename from compiler/load_internal/tests/fixtures/build/app_with_deps/Quicksort.roc rename to crates/compiler/load_internal/tests/fixtures/build/app_with_deps/Quicksort.roc diff --git a/compiler/load_internal/tests/fixtures/build/app_with_deps/QuicksortOneDef.roc b/crates/compiler/load_internal/tests/fixtures/build/app_with_deps/QuicksortOneDef.roc similarity index 100% rename from compiler/load_internal/tests/fixtures/build/app_with_deps/QuicksortOneDef.roc rename to crates/compiler/load_internal/tests/fixtures/build/app_with_deps/QuicksortOneDef.roc diff --git a/compiler/load_internal/tests/fixtures/build/app_with_deps/Records.roc b/crates/compiler/load_internal/tests/fixtures/build/app_with_deps/Records.roc similarity index 100% rename from compiler/load_internal/tests/fixtures/build/app_with_deps/Records.roc rename to crates/compiler/load_internal/tests/fixtures/build/app_with_deps/Records.roc diff --git a/compiler/load_internal/tests/fixtures/build/app_with_deps/Res.roc b/crates/compiler/load_internal/tests/fixtures/build/app_with_deps/Res.roc similarity index 100% rename from compiler/load_internal/tests/fixtures/build/app_with_deps/Res.roc rename to crates/compiler/load_internal/tests/fixtures/build/app_with_deps/Res.roc diff --git a/compiler/load_internal/tests/fixtures/build/app_with_deps/WithBuiltins.roc b/crates/compiler/load_internal/tests/fixtures/build/app_with_deps/WithBuiltins.roc similarity index 100% rename from compiler/load_internal/tests/fixtures/build/app_with_deps/WithBuiltins.roc rename to crates/compiler/load_internal/tests/fixtures/build/app_with_deps/WithBuiltins.roc diff --git a/compiler/load_internal/tests/fixtures/build/interface_with_deps/AStar.roc b/crates/compiler/load_internal/tests/fixtures/build/interface_with_deps/AStar.roc similarity index 100% rename from compiler/load_internal/tests/fixtures/build/interface_with_deps/AStar.roc rename to crates/compiler/load_internal/tests/fixtures/build/interface_with_deps/AStar.roc diff --git a/compiler/load_internal/tests/fixtures/build/interface_with_deps/Dep1.roc b/crates/compiler/load_internal/tests/fixtures/build/interface_with_deps/Dep1.roc similarity index 100% rename from compiler/load_internal/tests/fixtures/build/interface_with_deps/Dep1.roc rename to crates/compiler/load_internal/tests/fixtures/build/interface_with_deps/Dep1.roc diff --git a/compiler/load_internal/tests/fixtures/build/interface_with_deps/Dep2.roc b/crates/compiler/load_internal/tests/fixtures/build/interface_with_deps/Dep2.roc similarity index 100% rename from compiler/load_internal/tests/fixtures/build/interface_with_deps/Dep2.roc rename to crates/compiler/load_internal/tests/fixtures/build/interface_with_deps/Dep2.roc diff --git a/compiler/load_internal/tests/fixtures/build/interface_with_deps/Dep3/Blah.roc b/crates/compiler/load_internal/tests/fixtures/build/interface_with_deps/Dep3/Blah.roc similarity index 100% rename from compiler/load_internal/tests/fixtures/build/interface_with_deps/Dep3/Blah.roc rename to crates/compiler/load_internal/tests/fixtures/build/interface_with_deps/Dep3/Blah.roc diff --git a/compiler/load_internal/tests/fixtures/build/interface_with_deps/ImportAlias.roc b/crates/compiler/load_internal/tests/fixtures/build/interface_with_deps/ImportAlias.roc similarity index 100% rename from compiler/load_internal/tests/fixtures/build/interface_with_deps/ImportAlias.roc rename to crates/compiler/load_internal/tests/fixtures/build/interface_with_deps/ImportAlias.roc diff --git a/compiler/load_internal/tests/fixtures/build/interface_with_deps/ManualAttr.roc b/crates/compiler/load_internal/tests/fixtures/build/interface_with_deps/ManualAttr.roc similarity index 100% rename from compiler/load_internal/tests/fixtures/build/interface_with_deps/ManualAttr.roc rename to crates/compiler/load_internal/tests/fixtures/build/interface_with_deps/ManualAttr.roc diff --git a/compiler/load_internal/tests/fixtures/build/interface_with_deps/OneDep.roc b/crates/compiler/load_internal/tests/fixtures/build/interface_with_deps/OneDep.roc similarity index 100% rename from compiler/load_internal/tests/fixtures/build/interface_with_deps/OneDep.roc rename to crates/compiler/load_internal/tests/fixtures/build/interface_with_deps/OneDep.roc diff --git a/compiler/load_internal/tests/fixtures/build/interface_with_deps/Primary.roc b/crates/compiler/load_internal/tests/fixtures/build/interface_with_deps/Primary.roc similarity index 100% rename from compiler/load_internal/tests/fixtures/build/interface_with_deps/Primary.roc rename to crates/compiler/load_internal/tests/fixtures/build/interface_with_deps/Primary.roc diff --git a/compiler/load_internal/tests/fixtures/build/interface_with_deps/Quicksort.roc b/crates/compiler/load_internal/tests/fixtures/build/interface_with_deps/Quicksort.roc similarity index 100% rename from compiler/load_internal/tests/fixtures/build/interface_with_deps/Quicksort.roc rename to crates/compiler/load_internal/tests/fixtures/build/interface_with_deps/Quicksort.roc diff --git a/compiler/load_internal/tests/fixtures/build/interface_with_deps/Records.roc b/crates/compiler/load_internal/tests/fixtures/build/interface_with_deps/Records.roc similarity index 100% rename from compiler/load_internal/tests/fixtures/build/interface_with_deps/Records.roc rename to crates/compiler/load_internal/tests/fixtures/build/interface_with_deps/Records.roc diff --git a/compiler/load_internal/tests/fixtures/build/interface_with_deps/Res.roc b/crates/compiler/load_internal/tests/fixtures/build/interface_with_deps/Res.roc similarity index 100% rename from compiler/load_internal/tests/fixtures/build/interface_with_deps/Res.roc rename to crates/compiler/load_internal/tests/fixtures/build/interface_with_deps/Res.roc diff --git a/compiler/load_internal/tests/fixtures/build/interface_with_deps/WithBuiltins.roc b/crates/compiler/load_internal/tests/fixtures/build/interface_with_deps/WithBuiltins.roc similarity index 100% rename from compiler/load_internal/tests/fixtures/build/interface_with_deps/WithBuiltins.roc rename to crates/compiler/load_internal/tests/fixtures/build/interface_with_deps/WithBuiltins.roc diff --git a/compiler/load_internal/tests/fixtures/build/no_deps/MissingDep.roc b/crates/compiler/load_internal/tests/fixtures/build/no_deps/MissingDep.roc similarity index 100% rename from compiler/load_internal/tests/fixtures/build/no_deps/MissingDep.roc rename to crates/compiler/load_internal/tests/fixtures/build/no_deps/MissingDep.roc diff --git a/compiler/load_internal/tests/fixtures/build/no_deps/Principal.roc b/crates/compiler/load_internal/tests/fixtures/build/no_deps/Principal.roc similarity index 100% rename from compiler/load_internal/tests/fixtures/build/no_deps/Principal.roc rename to crates/compiler/load_internal/tests/fixtures/build/no_deps/Principal.roc diff --git a/compiler/load_internal/tests/fixtures/build/no_deps/Unit.roc b/crates/compiler/load_internal/tests/fixtures/build/no_deps/Unit.roc similarity index 100% rename from compiler/load_internal/tests/fixtures/build/no_deps/Unit.roc rename to crates/compiler/load_internal/tests/fixtures/build/no_deps/Unit.roc diff --git a/compiler/load_internal/tests/helpers/mod.rs b/crates/compiler/load_internal/tests/helpers/mod.rs similarity index 100% rename from compiler/load_internal/tests/helpers/mod.rs rename to crates/compiler/load_internal/tests/helpers/mod.rs diff --git a/compiler/load_internal/tests/test_load.rs b/crates/compiler/load_internal/tests/test_load.rs similarity index 100% rename from compiler/load_internal/tests/test_load.rs rename to crates/compiler/load_internal/tests/test_load.rs diff --git a/compiler/module/Cargo.toml b/crates/compiler/module/Cargo.toml similarity index 100% rename from compiler/module/Cargo.toml rename to crates/compiler/module/Cargo.toml diff --git a/compiler/module/src/called_via.rs b/crates/compiler/module/src/called_via.rs similarity index 100% rename from compiler/module/src/called_via.rs rename to crates/compiler/module/src/called_via.rs diff --git a/compiler/module/src/ident.rs b/crates/compiler/module/src/ident.rs similarity index 100% rename from compiler/module/src/ident.rs rename to crates/compiler/module/src/ident.rs diff --git a/compiler/module/src/lib.rs b/crates/compiler/module/src/lib.rs similarity index 100% rename from compiler/module/src/lib.rs rename to crates/compiler/module/src/lib.rs diff --git a/compiler/module/src/low_level.rs b/crates/compiler/module/src/low_level.rs similarity index 100% rename from compiler/module/src/low_level.rs rename to crates/compiler/module/src/low_level.rs diff --git a/compiler/module/src/module_err.rs b/crates/compiler/module/src/module_err.rs similarity index 100% rename from compiler/module/src/module_err.rs rename to crates/compiler/module/src/module_err.rs diff --git a/compiler/module/src/symbol.rs b/crates/compiler/module/src/symbol.rs similarity index 100% rename from compiler/module/src/symbol.rs rename to crates/compiler/module/src/symbol.rs diff --git a/compiler/mono/Cargo.toml b/crates/compiler/mono/Cargo.toml similarity index 100% rename from compiler/mono/Cargo.toml rename to crates/compiler/mono/Cargo.toml diff --git a/compiler/mono/src/borrow.rs b/crates/compiler/mono/src/borrow.rs similarity index 100% rename from compiler/mono/src/borrow.rs rename to crates/compiler/mono/src/borrow.rs diff --git a/compiler/mono/src/code_gen_help/equality.rs b/crates/compiler/mono/src/code_gen_help/equality.rs similarity index 100% rename from compiler/mono/src/code_gen_help/equality.rs rename to crates/compiler/mono/src/code_gen_help/equality.rs diff --git a/compiler/mono/src/code_gen_help/mod.rs b/crates/compiler/mono/src/code_gen_help/mod.rs similarity index 100% rename from compiler/mono/src/code_gen_help/mod.rs rename to crates/compiler/mono/src/code_gen_help/mod.rs diff --git a/compiler/mono/src/code_gen_help/refcount.rs b/crates/compiler/mono/src/code_gen_help/refcount.rs similarity index 100% rename from compiler/mono/src/code_gen_help/refcount.rs rename to crates/compiler/mono/src/code_gen_help/refcount.rs diff --git a/compiler/mono/src/copy.rs b/crates/compiler/mono/src/copy.rs similarity index 100% rename from compiler/mono/src/copy.rs rename to crates/compiler/mono/src/copy.rs diff --git a/compiler/mono/src/decision_tree.rs b/crates/compiler/mono/src/decision_tree.rs similarity index 100% rename from compiler/mono/src/decision_tree.rs rename to crates/compiler/mono/src/decision_tree.rs diff --git a/compiler/mono/src/expand_rc.rs b/crates/compiler/mono/src/expand_rc.rs similarity index 100% rename from compiler/mono/src/expand_rc.rs rename to crates/compiler/mono/src/expand_rc.rs diff --git a/compiler/mono/src/inc_dec.rs b/crates/compiler/mono/src/inc_dec.rs similarity index 100% rename from compiler/mono/src/inc_dec.rs rename to crates/compiler/mono/src/inc_dec.rs diff --git a/compiler/mono/src/ir.rs b/crates/compiler/mono/src/ir.rs similarity index 100% rename from compiler/mono/src/ir.rs rename to crates/compiler/mono/src/ir.rs diff --git a/compiler/mono/src/layout.rs b/crates/compiler/mono/src/layout.rs similarity index 100% rename from compiler/mono/src/layout.rs rename to crates/compiler/mono/src/layout.rs diff --git a/compiler/mono/src/layout_soa.rs b/crates/compiler/mono/src/layout_soa.rs similarity index 100% rename from compiler/mono/src/layout_soa.rs rename to crates/compiler/mono/src/layout_soa.rs diff --git a/compiler/mono/src/lib.rs b/crates/compiler/mono/src/lib.rs similarity index 100% rename from compiler/mono/src/lib.rs rename to crates/compiler/mono/src/lib.rs diff --git a/compiler/mono/src/low_level.rs b/crates/compiler/mono/src/low_level.rs similarity index 100% rename from compiler/mono/src/low_level.rs rename to crates/compiler/mono/src/low_level.rs diff --git a/compiler/mono/src/reset_reuse.rs b/crates/compiler/mono/src/reset_reuse.rs similarity index 100% rename from compiler/mono/src/reset_reuse.rs rename to crates/compiler/mono/src/reset_reuse.rs diff --git a/compiler/mono/src/tail_recursion.rs b/crates/compiler/mono/src/tail_recursion.rs similarity index 100% rename from compiler/mono/src/tail_recursion.rs rename to crates/compiler/mono/src/tail_recursion.rs diff --git a/compiler/parse/Cargo.toml b/crates/compiler/parse/Cargo.toml similarity index 100% rename from compiler/parse/Cargo.toml rename to crates/compiler/parse/Cargo.toml diff --git a/compiler/parse/benches/bench_parse.rs b/crates/compiler/parse/benches/bench_parse.rs similarity index 100% rename from compiler/parse/benches/bench_parse.rs rename to crates/compiler/parse/benches/bench_parse.rs diff --git a/compiler/parse/fuzz/.gitignore b/crates/compiler/parse/fuzz/.gitignore similarity index 100% rename from compiler/parse/fuzz/.gitignore rename to crates/compiler/parse/fuzz/.gitignore diff --git a/compiler/parse/fuzz/Cargo.lock b/crates/compiler/parse/fuzz/Cargo.lock similarity index 100% rename from compiler/parse/fuzz/Cargo.lock rename to crates/compiler/parse/fuzz/Cargo.lock diff --git a/compiler/parse/fuzz/Cargo.toml b/crates/compiler/parse/fuzz/Cargo.toml similarity index 100% rename from compiler/parse/fuzz/Cargo.toml rename to crates/compiler/parse/fuzz/Cargo.toml diff --git a/compiler/parse/fuzz/README.md b/crates/compiler/parse/fuzz/README.md similarity index 100% rename from compiler/parse/fuzz/README.md rename to crates/compiler/parse/fuzz/README.md diff --git a/compiler/parse/fuzz/dict.txt b/crates/compiler/parse/fuzz/dict.txt similarity index 100% rename from compiler/parse/fuzz/dict.txt rename to crates/compiler/parse/fuzz/dict.txt diff --git a/compiler/parse/fuzz/fuzz_targets/fuzz_defs.rs b/crates/compiler/parse/fuzz/fuzz_targets/fuzz_defs.rs similarity index 100% rename from compiler/parse/fuzz/fuzz_targets/fuzz_defs.rs rename to crates/compiler/parse/fuzz/fuzz_targets/fuzz_defs.rs diff --git a/compiler/parse/fuzz/fuzz_targets/fuzz_expr.rs b/crates/compiler/parse/fuzz/fuzz_targets/fuzz_expr.rs similarity index 100% rename from compiler/parse/fuzz/fuzz_targets/fuzz_expr.rs rename to crates/compiler/parse/fuzz/fuzz_targets/fuzz_expr.rs diff --git a/compiler/parse/fuzz/fuzz_targets/fuzz_header.rs b/crates/compiler/parse/fuzz/fuzz_targets/fuzz_header.rs similarity index 100% rename from compiler/parse/fuzz/fuzz_targets/fuzz_header.rs rename to crates/compiler/parse/fuzz/fuzz_targets/fuzz_header.rs diff --git a/compiler/parse/src/ast.rs b/crates/compiler/parse/src/ast.rs similarity index 100% rename from compiler/parse/src/ast.rs rename to crates/compiler/parse/src/ast.rs diff --git a/compiler/parse/src/blankspace.rs b/crates/compiler/parse/src/blankspace.rs similarity index 100% rename from compiler/parse/src/blankspace.rs rename to crates/compiler/parse/src/blankspace.rs diff --git a/compiler/parse/src/expr.rs b/crates/compiler/parse/src/expr.rs similarity index 100% rename from compiler/parse/src/expr.rs rename to crates/compiler/parse/src/expr.rs diff --git a/compiler/parse/src/header.rs b/crates/compiler/parse/src/header.rs similarity index 100% rename from compiler/parse/src/header.rs rename to crates/compiler/parse/src/header.rs diff --git a/compiler/parse/src/ident.rs b/crates/compiler/parse/src/ident.rs similarity index 100% rename from compiler/parse/src/ident.rs rename to crates/compiler/parse/src/ident.rs diff --git a/compiler/parse/src/keyword.rs b/crates/compiler/parse/src/keyword.rs similarity index 100% rename from compiler/parse/src/keyword.rs rename to crates/compiler/parse/src/keyword.rs diff --git a/compiler/parse/src/lib.rs b/crates/compiler/parse/src/lib.rs similarity index 100% rename from compiler/parse/src/lib.rs rename to crates/compiler/parse/src/lib.rs diff --git a/compiler/parse/src/module.rs b/crates/compiler/parse/src/module.rs similarity index 100% rename from compiler/parse/src/module.rs rename to crates/compiler/parse/src/module.rs diff --git a/compiler/parse/src/number_literal.rs b/crates/compiler/parse/src/number_literal.rs similarity index 100% rename from compiler/parse/src/number_literal.rs rename to crates/compiler/parse/src/number_literal.rs diff --git a/compiler/parse/src/parser.rs b/crates/compiler/parse/src/parser.rs similarity index 100% rename from compiler/parse/src/parser.rs rename to crates/compiler/parse/src/parser.rs diff --git a/compiler/parse/src/pattern.rs b/crates/compiler/parse/src/pattern.rs similarity index 100% rename from compiler/parse/src/pattern.rs rename to crates/compiler/parse/src/pattern.rs diff --git a/compiler/parse/src/problems.rs b/crates/compiler/parse/src/problems.rs similarity index 100% rename from compiler/parse/src/problems.rs rename to crates/compiler/parse/src/problems.rs diff --git a/compiler/parse/src/state.rs b/crates/compiler/parse/src/state.rs similarity index 100% rename from compiler/parse/src/state.rs rename to crates/compiler/parse/src/state.rs diff --git a/compiler/parse/src/string_literal.rs b/crates/compiler/parse/src/string_literal.rs similarity index 100% rename from compiler/parse/src/string_literal.rs rename to crates/compiler/parse/src/string_literal.rs diff --git a/compiler/parse/src/test_helpers.rs b/crates/compiler/parse/src/test_helpers.rs similarity index 100% rename from compiler/parse/src/test_helpers.rs rename to crates/compiler/parse/src/test_helpers.rs diff --git a/compiler/parse/src/type_annotation.rs b/crates/compiler/parse/src/type_annotation.rs similarity index 100% rename from compiler/parse/src/type_annotation.rs rename to crates/compiler/parse/src/type_annotation.rs diff --git a/compiler/parse/tests/snapshots/fail/type_argument_no_arrow.expr.result-ast b/crates/compiler/parse/tests/snapshots/fail/type_argument_no_arrow.expr.result-ast similarity index 100% rename from compiler/parse/tests/snapshots/fail/type_argument_no_arrow.expr.result-ast rename to crates/compiler/parse/tests/snapshots/fail/type_argument_no_arrow.expr.result-ast diff --git a/compiler/parse/tests/snapshots/fail/type_argument_no_arrow.expr.roc b/crates/compiler/parse/tests/snapshots/fail/type_argument_no_arrow.expr.roc similarity index 100% rename from compiler/parse/tests/snapshots/fail/type_argument_no_arrow.expr.roc rename to crates/compiler/parse/tests/snapshots/fail/type_argument_no_arrow.expr.roc diff --git a/compiler/parse/tests/snapshots/fail/type_double_comma.expr.result-ast b/crates/compiler/parse/tests/snapshots/fail/type_double_comma.expr.result-ast similarity index 100% rename from compiler/parse/tests/snapshots/fail/type_double_comma.expr.result-ast rename to crates/compiler/parse/tests/snapshots/fail/type_double_comma.expr.result-ast diff --git a/compiler/parse/tests/snapshots/fail/type_double_comma.expr.roc b/crates/compiler/parse/tests/snapshots/fail/type_double_comma.expr.roc similarity index 100% rename from compiler/parse/tests/snapshots/fail/type_double_comma.expr.roc rename to crates/compiler/parse/tests/snapshots/fail/type_double_comma.expr.roc diff --git a/compiler/parse/tests/snapshots/pass/ability_demand_signature_is_multiline.expr.result-ast b/crates/compiler/parse/tests/snapshots/pass/ability_demand_signature_is_multiline.expr.result-ast similarity index 100% rename from compiler/parse/tests/snapshots/pass/ability_demand_signature_is_multiline.expr.result-ast rename to crates/compiler/parse/tests/snapshots/pass/ability_demand_signature_is_multiline.expr.result-ast diff --git a/compiler/parse/tests/snapshots/pass/ability_demand_signature_is_multiline.expr.roc b/crates/compiler/parse/tests/snapshots/pass/ability_demand_signature_is_multiline.expr.roc similarity index 100% rename from compiler/parse/tests/snapshots/pass/ability_demand_signature_is_multiline.expr.roc rename to crates/compiler/parse/tests/snapshots/pass/ability_demand_signature_is_multiline.expr.roc diff --git a/compiler/parse/tests/snapshots/pass/ability_multi_line.expr.result-ast b/crates/compiler/parse/tests/snapshots/pass/ability_multi_line.expr.result-ast similarity index 100% rename from compiler/parse/tests/snapshots/pass/ability_multi_line.expr.result-ast rename to crates/compiler/parse/tests/snapshots/pass/ability_multi_line.expr.result-ast diff --git a/compiler/parse/tests/snapshots/pass/ability_multi_line.expr.roc b/crates/compiler/parse/tests/snapshots/pass/ability_multi_line.expr.roc similarity index 100% rename from compiler/parse/tests/snapshots/pass/ability_multi_line.expr.roc rename to crates/compiler/parse/tests/snapshots/pass/ability_multi_line.expr.roc diff --git a/compiler/parse/tests/snapshots/pass/ability_single_line.expr.result-ast b/crates/compiler/parse/tests/snapshots/pass/ability_single_line.expr.result-ast similarity index 100% rename from compiler/parse/tests/snapshots/pass/ability_single_line.expr.result-ast rename to crates/compiler/parse/tests/snapshots/pass/ability_single_line.expr.result-ast diff --git a/compiler/parse/tests/snapshots/pass/ability_single_line.expr.roc b/crates/compiler/parse/tests/snapshots/pass/ability_single_line.expr.roc similarity index 100% rename from compiler/parse/tests/snapshots/pass/ability_single_line.expr.roc rename to crates/compiler/parse/tests/snapshots/pass/ability_single_line.expr.roc diff --git a/compiler/parse/tests/snapshots/pass/ability_two_in_a_row.expr.result-ast b/crates/compiler/parse/tests/snapshots/pass/ability_two_in_a_row.expr.result-ast similarity index 100% rename from compiler/parse/tests/snapshots/pass/ability_two_in_a_row.expr.result-ast rename to crates/compiler/parse/tests/snapshots/pass/ability_two_in_a_row.expr.result-ast diff --git a/compiler/parse/tests/snapshots/pass/ability_two_in_a_row.expr.roc b/crates/compiler/parse/tests/snapshots/pass/ability_two_in_a_row.expr.roc similarity index 100% rename from compiler/parse/tests/snapshots/pass/ability_two_in_a_row.expr.roc rename to crates/compiler/parse/tests/snapshots/pass/ability_two_in_a_row.expr.roc diff --git a/compiler/parse/tests/snapshots/pass/add_var_with_spaces.expr.result-ast b/crates/compiler/parse/tests/snapshots/pass/add_var_with_spaces.expr.result-ast similarity index 100% rename from compiler/parse/tests/snapshots/pass/add_var_with_spaces.expr.result-ast rename to crates/compiler/parse/tests/snapshots/pass/add_var_with_spaces.expr.result-ast diff --git a/compiler/parse/tests/snapshots/pass/add_var_with_spaces.expr.roc b/crates/compiler/parse/tests/snapshots/pass/add_var_with_spaces.expr.roc similarity index 100% rename from compiler/parse/tests/snapshots/pass/add_var_with_spaces.expr.roc rename to crates/compiler/parse/tests/snapshots/pass/add_var_with_spaces.expr.roc diff --git a/compiler/parse/tests/snapshots/pass/add_with_spaces.expr.result-ast b/crates/compiler/parse/tests/snapshots/pass/add_with_spaces.expr.result-ast similarity index 100% rename from compiler/parse/tests/snapshots/pass/add_with_spaces.expr.result-ast rename to crates/compiler/parse/tests/snapshots/pass/add_with_spaces.expr.result-ast diff --git a/compiler/parse/tests/snapshots/pass/add_with_spaces.expr.roc b/crates/compiler/parse/tests/snapshots/pass/add_with_spaces.expr.roc similarity index 100% rename from compiler/parse/tests/snapshots/pass/add_with_spaces.expr.roc rename to crates/compiler/parse/tests/snapshots/pass/add_with_spaces.expr.roc diff --git a/compiler/parse/tests/snapshots/pass/annotated_record_destructure.expr.result-ast b/crates/compiler/parse/tests/snapshots/pass/annotated_record_destructure.expr.result-ast similarity index 100% rename from compiler/parse/tests/snapshots/pass/annotated_record_destructure.expr.result-ast rename to crates/compiler/parse/tests/snapshots/pass/annotated_record_destructure.expr.result-ast diff --git a/compiler/parse/tests/snapshots/pass/annotated_record_destructure.expr.roc b/crates/compiler/parse/tests/snapshots/pass/annotated_record_destructure.expr.roc similarity index 100% rename from compiler/parse/tests/snapshots/pass/annotated_record_destructure.expr.roc rename to crates/compiler/parse/tests/snapshots/pass/annotated_record_destructure.expr.roc diff --git a/compiler/parse/tests/snapshots/pass/annotated_tag_destructure.expr.result-ast b/crates/compiler/parse/tests/snapshots/pass/annotated_tag_destructure.expr.result-ast similarity index 100% rename from compiler/parse/tests/snapshots/pass/annotated_tag_destructure.expr.result-ast rename to crates/compiler/parse/tests/snapshots/pass/annotated_tag_destructure.expr.result-ast diff --git a/compiler/parse/tests/snapshots/pass/annotated_tag_destructure.expr.roc b/crates/compiler/parse/tests/snapshots/pass/annotated_tag_destructure.expr.roc similarity index 100% rename from compiler/parse/tests/snapshots/pass/annotated_tag_destructure.expr.roc rename to crates/compiler/parse/tests/snapshots/pass/annotated_tag_destructure.expr.roc diff --git a/compiler/parse/tests/snapshots/pass/apply_parenthetical_tag_args.expr.result-ast b/crates/compiler/parse/tests/snapshots/pass/apply_parenthetical_tag_args.expr.result-ast similarity index 100% rename from compiler/parse/tests/snapshots/pass/apply_parenthetical_tag_args.expr.result-ast rename to crates/compiler/parse/tests/snapshots/pass/apply_parenthetical_tag_args.expr.result-ast diff --git a/compiler/parse/tests/snapshots/pass/apply_parenthetical_tag_args.expr.roc b/crates/compiler/parse/tests/snapshots/pass/apply_parenthetical_tag_args.expr.roc similarity index 100% rename from compiler/parse/tests/snapshots/pass/apply_parenthetical_tag_args.expr.roc rename to crates/compiler/parse/tests/snapshots/pass/apply_parenthetical_tag_args.expr.roc diff --git a/compiler/parse/tests/snapshots/pass/apply_tag.expr.result-ast b/crates/compiler/parse/tests/snapshots/pass/apply_tag.expr.result-ast similarity index 100% rename from compiler/parse/tests/snapshots/pass/apply_tag.expr.result-ast rename to crates/compiler/parse/tests/snapshots/pass/apply_tag.expr.result-ast diff --git a/compiler/parse/tests/snapshots/pass/apply_tag.expr.roc b/crates/compiler/parse/tests/snapshots/pass/apply_tag.expr.roc similarity index 100% rename from compiler/parse/tests/snapshots/pass/apply_tag.expr.roc rename to crates/compiler/parse/tests/snapshots/pass/apply_tag.expr.roc diff --git a/compiler/parse/tests/snapshots/pass/apply_three_args.expr.result-ast b/crates/compiler/parse/tests/snapshots/pass/apply_three_args.expr.result-ast similarity index 100% rename from compiler/parse/tests/snapshots/pass/apply_three_args.expr.result-ast rename to crates/compiler/parse/tests/snapshots/pass/apply_three_args.expr.result-ast diff --git a/compiler/parse/tests/snapshots/pass/apply_three_args.expr.roc b/crates/compiler/parse/tests/snapshots/pass/apply_three_args.expr.roc similarity index 100% rename from compiler/parse/tests/snapshots/pass/apply_three_args.expr.roc rename to crates/compiler/parse/tests/snapshots/pass/apply_three_args.expr.roc diff --git a/compiler/parse/tests/snapshots/pass/apply_two_args.expr.result-ast b/crates/compiler/parse/tests/snapshots/pass/apply_two_args.expr.result-ast similarity index 100% rename from compiler/parse/tests/snapshots/pass/apply_two_args.expr.result-ast rename to crates/compiler/parse/tests/snapshots/pass/apply_two_args.expr.result-ast diff --git a/compiler/parse/tests/snapshots/pass/apply_two_args.expr.roc b/crates/compiler/parse/tests/snapshots/pass/apply_two_args.expr.roc similarity index 100% rename from compiler/parse/tests/snapshots/pass/apply_two_args.expr.roc rename to crates/compiler/parse/tests/snapshots/pass/apply_two_args.expr.roc diff --git a/compiler/parse/tests/snapshots/pass/apply_unary_negation.expr.result-ast b/crates/compiler/parse/tests/snapshots/pass/apply_unary_negation.expr.result-ast similarity index 100% rename from compiler/parse/tests/snapshots/pass/apply_unary_negation.expr.result-ast rename to crates/compiler/parse/tests/snapshots/pass/apply_unary_negation.expr.result-ast diff --git a/compiler/parse/tests/snapshots/pass/apply_unary_negation.expr.roc b/crates/compiler/parse/tests/snapshots/pass/apply_unary_negation.expr.roc similarity index 100% rename from compiler/parse/tests/snapshots/pass/apply_unary_negation.expr.roc rename to crates/compiler/parse/tests/snapshots/pass/apply_unary_negation.expr.roc diff --git a/compiler/parse/tests/snapshots/pass/apply_unary_not.expr.result-ast b/crates/compiler/parse/tests/snapshots/pass/apply_unary_not.expr.result-ast similarity index 100% rename from compiler/parse/tests/snapshots/pass/apply_unary_not.expr.result-ast rename to crates/compiler/parse/tests/snapshots/pass/apply_unary_not.expr.result-ast diff --git a/compiler/parse/tests/snapshots/pass/apply_unary_not.expr.roc b/crates/compiler/parse/tests/snapshots/pass/apply_unary_not.expr.roc similarity index 100% rename from compiler/parse/tests/snapshots/pass/apply_unary_not.expr.roc rename to crates/compiler/parse/tests/snapshots/pass/apply_unary_not.expr.roc diff --git a/compiler/parse/tests/snapshots/pass/basic_apply.expr.result-ast b/crates/compiler/parse/tests/snapshots/pass/basic_apply.expr.result-ast similarity index 100% rename from compiler/parse/tests/snapshots/pass/basic_apply.expr.result-ast rename to crates/compiler/parse/tests/snapshots/pass/basic_apply.expr.result-ast diff --git a/compiler/parse/tests/snapshots/pass/basic_apply.expr.roc b/crates/compiler/parse/tests/snapshots/pass/basic_apply.expr.roc similarity index 100% rename from compiler/parse/tests/snapshots/pass/basic_apply.expr.roc rename to crates/compiler/parse/tests/snapshots/pass/basic_apply.expr.roc diff --git a/compiler/parse/tests/snapshots/pass/basic_docs.expr.result-ast b/crates/compiler/parse/tests/snapshots/pass/basic_docs.expr.result-ast similarity index 100% rename from compiler/parse/tests/snapshots/pass/basic_docs.expr.result-ast rename to crates/compiler/parse/tests/snapshots/pass/basic_docs.expr.result-ast diff --git a/compiler/parse/tests/snapshots/pass/basic_docs.expr.roc b/crates/compiler/parse/tests/snapshots/pass/basic_docs.expr.roc similarity index 100% rename from compiler/parse/tests/snapshots/pass/basic_docs.expr.roc rename to crates/compiler/parse/tests/snapshots/pass/basic_docs.expr.roc diff --git a/compiler/parse/tests/snapshots/pass/basic_field.expr.result-ast b/crates/compiler/parse/tests/snapshots/pass/basic_field.expr.result-ast similarity index 100% rename from compiler/parse/tests/snapshots/pass/basic_field.expr.result-ast rename to crates/compiler/parse/tests/snapshots/pass/basic_field.expr.result-ast diff --git a/compiler/parse/tests/snapshots/pass/basic_field.expr.roc b/crates/compiler/parse/tests/snapshots/pass/basic_field.expr.roc similarity index 100% rename from compiler/parse/tests/snapshots/pass/basic_field.expr.roc rename to crates/compiler/parse/tests/snapshots/pass/basic_field.expr.roc diff --git a/compiler/parse/tests/snapshots/pass/basic_tag.expr.result-ast b/crates/compiler/parse/tests/snapshots/pass/basic_tag.expr.result-ast similarity index 100% rename from compiler/parse/tests/snapshots/pass/basic_tag.expr.result-ast rename to crates/compiler/parse/tests/snapshots/pass/basic_tag.expr.result-ast diff --git a/compiler/parse/tests/snapshots/pass/basic_tag.expr.roc b/crates/compiler/parse/tests/snapshots/pass/basic_tag.expr.roc similarity index 100% rename from compiler/parse/tests/snapshots/pass/basic_tag.expr.roc rename to crates/compiler/parse/tests/snapshots/pass/basic_tag.expr.roc diff --git a/compiler/parse/tests/snapshots/pass/basic_var.expr.result-ast b/crates/compiler/parse/tests/snapshots/pass/basic_var.expr.result-ast similarity index 100% rename from compiler/parse/tests/snapshots/pass/basic_var.expr.result-ast rename to crates/compiler/parse/tests/snapshots/pass/basic_var.expr.result-ast diff --git a/compiler/parse/tests/snapshots/pass/basic_var.expr.roc b/crates/compiler/parse/tests/snapshots/pass/basic_var.expr.roc similarity index 100% rename from compiler/parse/tests/snapshots/pass/basic_var.expr.roc rename to crates/compiler/parse/tests/snapshots/pass/basic_var.expr.roc diff --git a/compiler/parse/tests/snapshots/pass/closure_with_underscores.expr.result-ast b/crates/compiler/parse/tests/snapshots/pass/closure_with_underscores.expr.result-ast similarity index 100% rename from compiler/parse/tests/snapshots/pass/closure_with_underscores.expr.result-ast rename to crates/compiler/parse/tests/snapshots/pass/closure_with_underscores.expr.result-ast diff --git a/compiler/parse/tests/snapshots/pass/closure_with_underscores.expr.roc b/crates/compiler/parse/tests/snapshots/pass/closure_with_underscores.expr.roc similarity index 100% rename from compiler/parse/tests/snapshots/pass/closure_with_underscores.expr.roc rename to crates/compiler/parse/tests/snapshots/pass/closure_with_underscores.expr.roc diff --git a/compiler/parse/tests/snapshots/pass/comment_after_def.module.result-ast b/crates/compiler/parse/tests/snapshots/pass/comment_after_def.module.result-ast similarity index 100% rename from compiler/parse/tests/snapshots/pass/comment_after_def.module.result-ast rename to crates/compiler/parse/tests/snapshots/pass/comment_after_def.module.result-ast diff --git a/compiler/parse/tests/snapshots/pass/comment_after_def.module.roc b/crates/compiler/parse/tests/snapshots/pass/comment_after_def.module.roc similarity index 100% rename from compiler/parse/tests/snapshots/pass/comment_after_def.module.roc rename to crates/compiler/parse/tests/snapshots/pass/comment_after_def.module.roc diff --git a/compiler/parse/tests/snapshots/pass/comment_after_op.expr.result-ast b/crates/compiler/parse/tests/snapshots/pass/comment_after_op.expr.result-ast similarity index 100% rename from compiler/parse/tests/snapshots/pass/comment_after_op.expr.result-ast rename to crates/compiler/parse/tests/snapshots/pass/comment_after_op.expr.result-ast diff --git a/compiler/parse/tests/snapshots/pass/comment_after_op.expr.roc b/crates/compiler/parse/tests/snapshots/pass/comment_after_op.expr.roc similarity index 100% rename from compiler/parse/tests/snapshots/pass/comment_after_op.expr.roc rename to crates/compiler/parse/tests/snapshots/pass/comment_after_op.expr.roc diff --git a/compiler/parse/tests/snapshots/pass/comment_before_op.expr.result-ast b/crates/compiler/parse/tests/snapshots/pass/comment_before_op.expr.result-ast similarity index 100% rename from compiler/parse/tests/snapshots/pass/comment_before_op.expr.result-ast rename to crates/compiler/parse/tests/snapshots/pass/comment_before_op.expr.result-ast diff --git a/compiler/parse/tests/snapshots/pass/comment_before_op.expr.roc b/crates/compiler/parse/tests/snapshots/pass/comment_before_op.expr.roc similarity index 100% rename from compiler/parse/tests/snapshots/pass/comment_before_op.expr.roc rename to crates/compiler/parse/tests/snapshots/pass/comment_before_op.expr.roc diff --git a/compiler/parse/tests/snapshots/pass/comment_inside_empty_list.expr.result-ast b/crates/compiler/parse/tests/snapshots/pass/comment_inside_empty_list.expr.result-ast similarity index 100% rename from compiler/parse/tests/snapshots/pass/comment_inside_empty_list.expr.result-ast rename to crates/compiler/parse/tests/snapshots/pass/comment_inside_empty_list.expr.result-ast diff --git a/compiler/parse/tests/snapshots/pass/comment_inside_empty_list.expr.roc b/crates/compiler/parse/tests/snapshots/pass/comment_inside_empty_list.expr.roc similarity index 100% rename from compiler/parse/tests/snapshots/pass/comment_inside_empty_list.expr.roc rename to crates/compiler/parse/tests/snapshots/pass/comment_inside_empty_list.expr.roc diff --git a/compiler/parse/tests/snapshots/pass/comment_with_non_ascii.expr.result-ast b/crates/compiler/parse/tests/snapshots/pass/comment_with_non_ascii.expr.result-ast similarity index 100% rename from compiler/parse/tests/snapshots/pass/comment_with_non_ascii.expr.result-ast rename to crates/compiler/parse/tests/snapshots/pass/comment_with_non_ascii.expr.result-ast diff --git a/compiler/parse/tests/snapshots/pass/comment_with_non_ascii.expr.roc b/crates/compiler/parse/tests/snapshots/pass/comment_with_non_ascii.expr.roc similarity index 100% rename from compiler/parse/tests/snapshots/pass/comment_with_non_ascii.expr.roc rename to crates/compiler/parse/tests/snapshots/pass/comment_with_non_ascii.expr.roc diff --git a/compiler/parse/tests/snapshots/pass/destructure_tag_assignment.expr.result-ast b/crates/compiler/parse/tests/snapshots/pass/destructure_tag_assignment.expr.result-ast similarity index 100% rename from compiler/parse/tests/snapshots/pass/destructure_tag_assignment.expr.result-ast rename to crates/compiler/parse/tests/snapshots/pass/destructure_tag_assignment.expr.result-ast diff --git a/compiler/parse/tests/snapshots/pass/destructure_tag_assignment.expr.roc b/crates/compiler/parse/tests/snapshots/pass/destructure_tag_assignment.expr.roc similarity index 100% rename from compiler/parse/tests/snapshots/pass/destructure_tag_assignment.expr.roc rename to crates/compiler/parse/tests/snapshots/pass/destructure_tag_assignment.expr.roc diff --git a/compiler/parse/tests/snapshots/pass/empty_app_header.header.result-ast b/crates/compiler/parse/tests/snapshots/pass/empty_app_header.header.result-ast similarity index 100% rename from compiler/parse/tests/snapshots/pass/empty_app_header.header.result-ast rename to crates/compiler/parse/tests/snapshots/pass/empty_app_header.header.result-ast diff --git a/compiler/parse/tests/snapshots/pass/empty_app_header.header.roc b/crates/compiler/parse/tests/snapshots/pass/empty_app_header.header.roc similarity index 100% rename from compiler/parse/tests/snapshots/pass/empty_app_header.header.roc rename to crates/compiler/parse/tests/snapshots/pass/empty_app_header.header.roc diff --git a/compiler/parse/tests/snapshots/pass/empty_hosted_header.header.result-ast b/crates/compiler/parse/tests/snapshots/pass/empty_hosted_header.header.result-ast similarity index 100% rename from compiler/parse/tests/snapshots/pass/empty_hosted_header.header.result-ast rename to crates/compiler/parse/tests/snapshots/pass/empty_hosted_header.header.result-ast diff --git a/compiler/parse/tests/snapshots/pass/empty_hosted_header.header.roc b/crates/compiler/parse/tests/snapshots/pass/empty_hosted_header.header.roc similarity index 100% rename from compiler/parse/tests/snapshots/pass/empty_hosted_header.header.roc rename to crates/compiler/parse/tests/snapshots/pass/empty_hosted_header.header.roc diff --git a/compiler/parse/tests/snapshots/pass/empty_interface_header.header.result-ast b/crates/compiler/parse/tests/snapshots/pass/empty_interface_header.header.result-ast similarity index 100% rename from compiler/parse/tests/snapshots/pass/empty_interface_header.header.result-ast rename to crates/compiler/parse/tests/snapshots/pass/empty_interface_header.header.result-ast diff --git a/compiler/parse/tests/snapshots/pass/empty_interface_header.header.roc b/crates/compiler/parse/tests/snapshots/pass/empty_interface_header.header.roc similarity index 100% rename from compiler/parse/tests/snapshots/pass/empty_interface_header.header.roc rename to crates/compiler/parse/tests/snapshots/pass/empty_interface_header.header.roc diff --git a/compiler/parse/tests/snapshots/pass/empty_list.expr.result-ast b/crates/compiler/parse/tests/snapshots/pass/empty_list.expr.result-ast similarity index 100% rename from compiler/parse/tests/snapshots/pass/empty_list.expr.result-ast rename to crates/compiler/parse/tests/snapshots/pass/empty_list.expr.result-ast diff --git a/compiler/parse/tests/snapshots/pass/empty_list.expr.roc b/crates/compiler/parse/tests/snapshots/pass/empty_list.expr.roc similarity index 100% rename from compiler/parse/tests/snapshots/pass/empty_list.expr.roc rename to crates/compiler/parse/tests/snapshots/pass/empty_list.expr.roc diff --git a/compiler/parse/tests/snapshots/pass/empty_platform_header.header.result-ast b/crates/compiler/parse/tests/snapshots/pass/empty_platform_header.header.result-ast similarity index 100% rename from compiler/parse/tests/snapshots/pass/empty_platform_header.header.result-ast rename to crates/compiler/parse/tests/snapshots/pass/empty_platform_header.header.result-ast diff --git a/compiler/parse/tests/snapshots/pass/empty_platform_header.header.roc b/crates/compiler/parse/tests/snapshots/pass/empty_platform_header.header.roc similarity index 100% rename from compiler/parse/tests/snapshots/pass/empty_platform_header.header.roc rename to crates/compiler/parse/tests/snapshots/pass/empty_platform_header.header.roc diff --git a/compiler/parse/tests/snapshots/pass/empty_record.expr.result-ast b/crates/compiler/parse/tests/snapshots/pass/empty_record.expr.result-ast similarity index 100% rename from compiler/parse/tests/snapshots/pass/empty_record.expr.result-ast rename to crates/compiler/parse/tests/snapshots/pass/empty_record.expr.result-ast diff --git a/compiler/parse/tests/snapshots/pass/empty_record.expr.roc b/crates/compiler/parse/tests/snapshots/pass/empty_record.expr.roc similarity index 100% rename from compiler/parse/tests/snapshots/pass/empty_record.expr.roc rename to crates/compiler/parse/tests/snapshots/pass/empty_record.expr.roc diff --git a/compiler/parse/tests/snapshots/pass/empty_string.expr.result-ast b/crates/compiler/parse/tests/snapshots/pass/empty_string.expr.result-ast similarity index 100% rename from compiler/parse/tests/snapshots/pass/empty_string.expr.result-ast rename to crates/compiler/parse/tests/snapshots/pass/empty_string.expr.result-ast diff --git a/compiler/parse/tests/snapshots/pass/empty_string.expr.roc b/crates/compiler/parse/tests/snapshots/pass/empty_string.expr.roc similarity index 100% rename from compiler/parse/tests/snapshots/pass/empty_string.expr.roc rename to crates/compiler/parse/tests/snapshots/pass/empty_string.expr.roc diff --git a/compiler/parse/tests/snapshots/pass/equals.expr.result-ast b/crates/compiler/parse/tests/snapshots/pass/equals.expr.result-ast similarity index 100% rename from compiler/parse/tests/snapshots/pass/equals.expr.result-ast rename to crates/compiler/parse/tests/snapshots/pass/equals.expr.result-ast diff --git a/compiler/parse/tests/snapshots/pass/equals.expr.roc b/crates/compiler/parse/tests/snapshots/pass/equals.expr.roc similarity index 100% rename from compiler/parse/tests/snapshots/pass/equals.expr.roc rename to crates/compiler/parse/tests/snapshots/pass/equals.expr.roc diff --git a/compiler/parse/tests/snapshots/pass/equals_with_spaces.expr.result-ast b/crates/compiler/parse/tests/snapshots/pass/equals_with_spaces.expr.result-ast similarity index 100% rename from compiler/parse/tests/snapshots/pass/equals_with_spaces.expr.result-ast rename to crates/compiler/parse/tests/snapshots/pass/equals_with_spaces.expr.result-ast diff --git a/compiler/parse/tests/snapshots/pass/equals_with_spaces.expr.roc b/crates/compiler/parse/tests/snapshots/pass/equals_with_spaces.expr.roc similarity index 100% rename from compiler/parse/tests/snapshots/pass/equals_with_spaces.expr.roc rename to crates/compiler/parse/tests/snapshots/pass/equals_with_spaces.expr.roc diff --git a/compiler/parse/tests/snapshots/pass/expect.expr.result-ast b/crates/compiler/parse/tests/snapshots/pass/expect.expr.result-ast similarity index 100% rename from compiler/parse/tests/snapshots/pass/expect.expr.result-ast rename to crates/compiler/parse/tests/snapshots/pass/expect.expr.result-ast diff --git a/compiler/parse/tests/snapshots/pass/expect.expr.roc b/crates/compiler/parse/tests/snapshots/pass/expect.expr.roc similarity index 100% rename from compiler/parse/tests/snapshots/pass/expect.expr.roc rename to crates/compiler/parse/tests/snapshots/pass/expect.expr.roc diff --git a/compiler/parse/tests/snapshots/pass/float_with_underscores.expr.result-ast b/crates/compiler/parse/tests/snapshots/pass/float_with_underscores.expr.result-ast similarity index 100% rename from compiler/parse/tests/snapshots/pass/float_with_underscores.expr.result-ast rename to crates/compiler/parse/tests/snapshots/pass/float_with_underscores.expr.result-ast diff --git a/compiler/parse/tests/snapshots/pass/float_with_underscores.expr.roc b/crates/compiler/parse/tests/snapshots/pass/float_with_underscores.expr.roc similarity index 100% rename from compiler/parse/tests/snapshots/pass/float_with_underscores.expr.roc rename to crates/compiler/parse/tests/snapshots/pass/float_with_underscores.expr.roc diff --git a/compiler/parse/tests/snapshots/pass/full_app_header.header.result-ast b/crates/compiler/parse/tests/snapshots/pass/full_app_header.header.result-ast similarity index 100% rename from compiler/parse/tests/snapshots/pass/full_app_header.header.result-ast rename to crates/compiler/parse/tests/snapshots/pass/full_app_header.header.result-ast diff --git a/compiler/parse/tests/snapshots/pass/full_app_header.header.roc b/crates/compiler/parse/tests/snapshots/pass/full_app_header.header.roc similarity index 100% rename from compiler/parse/tests/snapshots/pass/full_app_header.header.roc rename to crates/compiler/parse/tests/snapshots/pass/full_app_header.header.roc diff --git a/compiler/parse/tests/snapshots/pass/full_app_header_trailing_commas.header.result-ast b/crates/compiler/parse/tests/snapshots/pass/full_app_header_trailing_commas.header.result-ast similarity index 100% rename from compiler/parse/tests/snapshots/pass/full_app_header_trailing_commas.header.result-ast rename to crates/compiler/parse/tests/snapshots/pass/full_app_header_trailing_commas.header.result-ast diff --git a/compiler/parse/tests/snapshots/pass/full_app_header_trailing_commas.header.roc b/crates/compiler/parse/tests/snapshots/pass/full_app_header_trailing_commas.header.roc similarity index 100% rename from compiler/parse/tests/snapshots/pass/full_app_header_trailing_commas.header.roc rename to crates/compiler/parse/tests/snapshots/pass/full_app_header_trailing_commas.header.roc diff --git a/compiler/parse/tests/snapshots/pass/function_effect_types.header.result-ast b/crates/compiler/parse/tests/snapshots/pass/function_effect_types.header.result-ast similarity index 100% rename from compiler/parse/tests/snapshots/pass/function_effect_types.header.result-ast rename to crates/compiler/parse/tests/snapshots/pass/function_effect_types.header.result-ast diff --git a/compiler/parse/tests/snapshots/pass/function_effect_types.header.roc b/crates/compiler/parse/tests/snapshots/pass/function_effect_types.header.roc similarity index 100% rename from compiler/parse/tests/snapshots/pass/function_effect_types.header.roc rename to crates/compiler/parse/tests/snapshots/pass/function_effect_types.header.roc diff --git a/compiler/parse/tests/snapshots/pass/highest_float.expr.result-ast b/crates/compiler/parse/tests/snapshots/pass/highest_float.expr.result-ast similarity index 100% rename from compiler/parse/tests/snapshots/pass/highest_float.expr.result-ast rename to crates/compiler/parse/tests/snapshots/pass/highest_float.expr.result-ast diff --git a/compiler/parse/tests/snapshots/pass/highest_float.expr.roc b/crates/compiler/parse/tests/snapshots/pass/highest_float.expr.roc similarity index 100% rename from compiler/parse/tests/snapshots/pass/highest_float.expr.roc rename to crates/compiler/parse/tests/snapshots/pass/highest_float.expr.roc diff --git a/compiler/parse/tests/snapshots/pass/highest_int.expr.result-ast b/crates/compiler/parse/tests/snapshots/pass/highest_int.expr.result-ast similarity index 100% rename from compiler/parse/tests/snapshots/pass/highest_int.expr.result-ast rename to crates/compiler/parse/tests/snapshots/pass/highest_int.expr.result-ast diff --git a/compiler/parse/tests/snapshots/pass/highest_int.expr.roc b/crates/compiler/parse/tests/snapshots/pass/highest_int.expr.roc similarity index 100% rename from compiler/parse/tests/snapshots/pass/highest_int.expr.roc rename to crates/compiler/parse/tests/snapshots/pass/highest_int.expr.roc diff --git a/compiler/parse/tests/snapshots/pass/if_def.expr.result-ast b/crates/compiler/parse/tests/snapshots/pass/if_def.expr.result-ast similarity index 100% rename from compiler/parse/tests/snapshots/pass/if_def.expr.result-ast rename to crates/compiler/parse/tests/snapshots/pass/if_def.expr.result-ast diff --git a/compiler/parse/tests/snapshots/pass/if_def.expr.roc b/crates/compiler/parse/tests/snapshots/pass/if_def.expr.roc similarity index 100% rename from compiler/parse/tests/snapshots/pass/if_def.expr.roc rename to crates/compiler/parse/tests/snapshots/pass/if_def.expr.roc diff --git a/compiler/parse/tests/snapshots/pass/int_with_underscore.expr.result-ast b/crates/compiler/parse/tests/snapshots/pass/int_with_underscore.expr.result-ast similarity index 100% rename from compiler/parse/tests/snapshots/pass/int_with_underscore.expr.result-ast rename to crates/compiler/parse/tests/snapshots/pass/int_with_underscore.expr.result-ast diff --git a/compiler/parse/tests/snapshots/pass/int_with_underscore.expr.roc b/crates/compiler/parse/tests/snapshots/pass/int_with_underscore.expr.roc similarity index 100% rename from compiler/parse/tests/snapshots/pass/int_with_underscore.expr.roc rename to crates/compiler/parse/tests/snapshots/pass/int_with_underscore.expr.roc diff --git a/compiler/parse/tests/snapshots/pass/interface_with_newline.header.result-ast b/crates/compiler/parse/tests/snapshots/pass/interface_with_newline.header.result-ast similarity index 100% rename from compiler/parse/tests/snapshots/pass/interface_with_newline.header.result-ast rename to crates/compiler/parse/tests/snapshots/pass/interface_with_newline.header.result-ast diff --git a/compiler/parse/tests/snapshots/pass/interface_with_newline.header.roc b/crates/compiler/parse/tests/snapshots/pass/interface_with_newline.header.roc similarity index 100% rename from compiler/parse/tests/snapshots/pass/interface_with_newline.header.roc rename to crates/compiler/parse/tests/snapshots/pass/interface_with_newline.header.roc diff --git a/compiler/parse/tests/snapshots/pass/list_closing_indent_not_enough.expr.result-ast b/crates/compiler/parse/tests/snapshots/pass/list_closing_indent_not_enough.expr.result-ast similarity index 100% rename from compiler/parse/tests/snapshots/pass/list_closing_indent_not_enough.expr.result-ast rename to crates/compiler/parse/tests/snapshots/pass/list_closing_indent_not_enough.expr.result-ast diff --git a/compiler/parse/tests/snapshots/pass/list_closing_indent_not_enough.expr.roc b/crates/compiler/parse/tests/snapshots/pass/list_closing_indent_not_enough.expr.roc similarity index 100% rename from compiler/parse/tests/snapshots/pass/list_closing_indent_not_enough.expr.roc rename to crates/compiler/parse/tests/snapshots/pass/list_closing_indent_not_enough.expr.roc diff --git a/compiler/parse/tests/snapshots/pass/list_closing_same_indent_no_trailing_comma.expr.result-ast b/crates/compiler/parse/tests/snapshots/pass/list_closing_same_indent_no_trailing_comma.expr.result-ast similarity index 100% rename from compiler/parse/tests/snapshots/pass/list_closing_same_indent_no_trailing_comma.expr.result-ast rename to crates/compiler/parse/tests/snapshots/pass/list_closing_same_indent_no_trailing_comma.expr.result-ast diff --git a/compiler/parse/tests/snapshots/pass/list_closing_same_indent_no_trailing_comma.expr.roc b/crates/compiler/parse/tests/snapshots/pass/list_closing_same_indent_no_trailing_comma.expr.roc similarity index 100% rename from compiler/parse/tests/snapshots/pass/list_closing_same_indent_no_trailing_comma.expr.roc rename to crates/compiler/parse/tests/snapshots/pass/list_closing_same_indent_no_trailing_comma.expr.roc diff --git a/compiler/parse/tests/snapshots/pass/list_closing_same_indent_with_trailing_comma.expr.result-ast b/crates/compiler/parse/tests/snapshots/pass/list_closing_same_indent_with_trailing_comma.expr.result-ast similarity index 100% rename from compiler/parse/tests/snapshots/pass/list_closing_same_indent_with_trailing_comma.expr.result-ast rename to crates/compiler/parse/tests/snapshots/pass/list_closing_same_indent_with_trailing_comma.expr.result-ast diff --git a/compiler/parse/tests/snapshots/pass/list_closing_same_indent_with_trailing_comma.expr.roc b/crates/compiler/parse/tests/snapshots/pass/list_closing_same_indent_with_trailing_comma.expr.roc similarity index 100% rename from compiler/parse/tests/snapshots/pass/list_closing_same_indent_with_trailing_comma.expr.roc rename to crates/compiler/parse/tests/snapshots/pass/list_closing_same_indent_with_trailing_comma.expr.roc diff --git a/compiler/parse/tests/snapshots/pass/lowest_float.expr.result-ast b/crates/compiler/parse/tests/snapshots/pass/lowest_float.expr.result-ast similarity index 100% rename from compiler/parse/tests/snapshots/pass/lowest_float.expr.result-ast rename to crates/compiler/parse/tests/snapshots/pass/lowest_float.expr.result-ast diff --git a/compiler/parse/tests/snapshots/pass/lowest_float.expr.roc b/crates/compiler/parse/tests/snapshots/pass/lowest_float.expr.roc similarity index 100% rename from compiler/parse/tests/snapshots/pass/lowest_float.expr.roc rename to crates/compiler/parse/tests/snapshots/pass/lowest_float.expr.roc diff --git a/compiler/parse/tests/snapshots/pass/lowest_int.expr.result-ast b/crates/compiler/parse/tests/snapshots/pass/lowest_int.expr.result-ast similarity index 100% rename from compiler/parse/tests/snapshots/pass/lowest_int.expr.result-ast rename to crates/compiler/parse/tests/snapshots/pass/lowest_int.expr.result-ast diff --git a/compiler/parse/tests/snapshots/pass/lowest_int.expr.roc b/crates/compiler/parse/tests/snapshots/pass/lowest_int.expr.roc similarity index 100% rename from compiler/parse/tests/snapshots/pass/lowest_int.expr.roc rename to crates/compiler/parse/tests/snapshots/pass/lowest_int.expr.roc diff --git a/compiler/parse/tests/snapshots/pass/malformed_ident_due_to_underscore.expr.result-ast b/crates/compiler/parse/tests/snapshots/pass/malformed_ident_due_to_underscore.expr.result-ast similarity index 100% rename from compiler/parse/tests/snapshots/pass/malformed_ident_due_to_underscore.expr.result-ast rename to crates/compiler/parse/tests/snapshots/pass/malformed_ident_due_to_underscore.expr.result-ast diff --git a/compiler/parse/tests/snapshots/pass/malformed_ident_due_to_underscore.expr.roc b/crates/compiler/parse/tests/snapshots/pass/malformed_ident_due_to_underscore.expr.roc similarity index 100% rename from compiler/parse/tests/snapshots/pass/malformed_ident_due_to_underscore.expr.roc rename to crates/compiler/parse/tests/snapshots/pass/malformed_ident_due_to_underscore.expr.roc diff --git a/compiler/parse/tests/snapshots/pass/malformed_pattern_field_access.expr.result-ast b/crates/compiler/parse/tests/snapshots/pass/malformed_pattern_field_access.expr.result-ast similarity index 100% rename from compiler/parse/tests/snapshots/pass/malformed_pattern_field_access.expr.result-ast rename to crates/compiler/parse/tests/snapshots/pass/malformed_pattern_field_access.expr.result-ast diff --git a/compiler/parse/tests/snapshots/pass/malformed_pattern_field_access.expr.roc b/crates/compiler/parse/tests/snapshots/pass/malformed_pattern_field_access.expr.roc similarity index 100% rename from compiler/parse/tests/snapshots/pass/malformed_pattern_field_access.expr.roc rename to crates/compiler/parse/tests/snapshots/pass/malformed_pattern_field_access.expr.roc diff --git a/compiler/parse/tests/snapshots/pass/malformed_pattern_module_name.expr.result-ast b/crates/compiler/parse/tests/snapshots/pass/malformed_pattern_module_name.expr.result-ast similarity index 100% rename from compiler/parse/tests/snapshots/pass/malformed_pattern_module_name.expr.result-ast rename to crates/compiler/parse/tests/snapshots/pass/malformed_pattern_module_name.expr.result-ast diff --git a/compiler/parse/tests/snapshots/pass/malformed_pattern_module_name.expr.roc b/crates/compiler/parse/tests/snapshots/pass/malformed_pattern_module_name.expr.roc similarity index 100% rename from compiler/parse/tests/snapshots/pass/malformed_pattern_module_name.expr.roc rename to crates/compiler/parse/tests/snapshots/pass/malformed_pattern_module_name.expr.roc diff --git a/compiler/parse/tests/snapshots/pass/minimal_app_header.header.result-ast b/crates/compiler/parse/tests/snapshots/pass/minimal_app_header.header.result-ast similarity index 100% rename from compiler/parse/tests/snapshots/pass/minimal_app_header.header.result-ast rename to crates/compiler/parse/tests/snapshots/pass/minimal_app_header.header.result-ast diff --git a/compiler/parse/tests/snapshots/pass/minimal_app_header.header.roc b/crates/compiler/parse/tests/snapshots/pass/minimal_app_header.header.roc similarity index 100% rename from compiler/parse/tests/snapshots/pass/minimal_app_header.header.roc rename to crates/compiler/parse/tests/snapshots/pass/minimal_app_header.header.roc diff --git a/compiler/parse/tests/snapshots/pass/minus_twelve_minus_five.expr.result-ast b/crates/compiler/parse/tests/snapshots/pass/minus_twelve_minus_five.expr.result-ast similarity index 100% rename from compiler/parse/tests/snapshots/pass/minus_twelve_minus_five.expr.result-ast rename to crates/compiler/parse/tests/snapshots/pass/minus_twelve_minus_five.expr.result-ast diff --git a/compiler/parse/tests/snapshots/pass/minus_twelve_minus_five.expr.roc b/crates/compiler/parse/tests/snapshots/pass/minus_twelve_minus_five.expr.roc similarity index 100% rename from compiler/parse/tests/snapshots/pass/minus_twelve_minus_five.expr.roc rename to crates/compiler/parse/tests/snapshots/pass/minus_twelve_minus_five.expr.roc diff --git a/compiler/parse/tests/snapshots/pass/mixed_docs.expr.result-ast b/crates/compiler/parse/tests/snapshots/pass/mixed_docs.expr.result-ast similarity index 100% rename from compiler/parse/tests/snapshots/pass/mixed_docs.expr.result-ast rename to crates/compiler/parse/tests/snapshots/pass/mixed_docs.expr.result-ast diff --git a/compiler/parse/tests/snapshots/pass/mixed_docs.expr.roc b/crates/compiler/parse/tests/snapshots/pass/mixed_docs.expr.roc similarity index 100% rename from compiler/parse/tests/snapshots/pass/mixed_docs.expr.roc rename to crates/compiler/parse/tests/snapshots/pass/mixed_docs.expr.roc diff --git a/compiler/parse/tests/snapshots/pass/module_def_newline.module.result-ast b/crates/compiler/parse/tests/snapshots/pass/module_def_newline.module.result-ast similarity index 100% rename from compiler/parse/tests/snapshots/pass/module_def_newline.module.result-ast rename to crates/compiler/parse/tests/snapshots/pass/module_def_newline.module.result-ast diff --git a/compiler/parse/tests/snapshots/pass/module_def_newline.module.roc b/crates/compiler/parse/tests/snapshots/pass/module_def_newline.module.roc similarity index 100% rename from compiler/parse/tests/snapshots/pass/module_def_newline.module.roc rename to crates/compiler/parse/tests/snapshots/pass/module_def_newline.module.roc diff --git a/compiler/parse/tests/snapshots/pass/multi_backpassing.expr.result-ast b/crates/compiler/parse/tests/snapshots/pass/multi_backpassing.expr.result-ast similarity index 100% rename from compiler/parse/tests/snapshots/pass/multi_backpassing.expr.result-ast rename to crates/compiler/parse/tests/snapshots/pass/multi_backpassing.expr.result-ast diff --git a/compiler/parse/tests/snapshots/pass/multi_backpassing.expr.roc b/crates/compiler/parse/tests/snapshots/pass/multi_backpassing.expr.roc similarity index 100% rename from compiler/parse/tests/snapshots/pass/multi_backpassing.expr.roc rename to crates/compiler/parse/tests/snapshots/pass/multi_backpassing.expr.roc diff --git a/compiler/parse/tests/snapshots/pass/multi_char_string.expr.result-ast b/crates/compiler/parse/tests/snapshots/pass/multi_char_string.expr.result-ast similarity index 100% rename from compiler/parse/tests/snapshots/pass/multi_char_string.expr.result-ast rename to crates/compiler/parse/tests/snapshots/pass/multi_char_string.expr.result-ast diff --git a/compiler/parse/tests/snapshots/pass/multi_char_string.expr.roc b/crates/compiler/parse/tests/snapshots/pass/multi_char_string.expr.roc similarity index 100% rename from compiler/parse/tests/snapshots/pass/multi_char_string.expr.roc rename to crates/compiler/parse/tests/snapshots/pass/multi_char_string.expr.roc diff --git a/compiler/parse/tests/snapshots/pass/multiline_type_signature.expr.result-ast b/crates/compiler/parse/tests/snapshots/pass/multiline_type_signature.expr.result-ast similarity index 100% rename from compiler/parse/tests/snapshots/pass/multiline_type_signature.expr.result-ast rename to crates/compiler/parse/tests/snapshots/pass/multiline_type_signature.expr.result-ast diff --git a/compiler/parse/tests/snapshots/pass/multiline_type_signature.expr.roc b/crates/compiler/parse/tests/snapshots/pass/multiline_type_signature.expr.roc similarity index 100% rename from compiler/parse/tests/snapshots/pass/multiline_type_signature.expr.roc rename to crates/compiler/parse/tests/snapshots/pass/multiline_type_signature.expr.roc diff --git a/compiler/parse/tests/snapshots/pass/multiline_type_signature_with_comment.expr.result-ast b/crates/compiler/parse/tests/snapshots/pass/multiline_type_signature_with_comment.expr.result-ast similarity index 100% rename from compiler/parse/tests/snapshots/pass/multiline_type_signature_with_comment.expr.result-ast rename to crates/compiler/parse/tests/snapshots/pass/multiline_type_signature_with_comment.expr.result-ast diff --git a/compiler/parse/tests/snapshots/pass/multiline_type_signature_with_comment.expr.roc b/crates/compiler/parse/tests/snapshots/pass/multiline_type_signature_with_comment.expr.roc similarity index 100% rename from compiler/parse/tests/snapshots/pass/multiline_type_signature_with_comment.expr.roc rename to crates/compiler/parse/tests/snapshots/pass/multiline_type_signature_with_comment.expr.roc diff --git a/compiler/parse/tests/snapshots/pass/multiple_fields.expr.result-ast b/crates/compiler/parse/tests/snapshots/pass/multiple_fields.expr.result-ast similarity index 100% rename from compiler/parse/tests/snapshots/pass/multiple_fields.expr.result-ast rename to crates/compiler/parse/tests/snapshots/pass/multiple_fields.expr.result-ast diff --git a/compiler/parse/tests/snapshots/pass/multiple_fields.expr.roc b/crates/compiler/parse/tests/snapshots/pass/multiple_fields.expr.roc similarity index 100% rename from compiler/parse/tests/snapshots/pass/multiple_fields.expr.roc rename to crates/compiler/parse/tests/snapshots/pass/multiple_fields.expr.roc diff --git a/compiler/parse/tests/snapshots/pass/multiple_operators.expr.result-ast b/crates/compiler/parse/tests/snapshots/pass/multiple_operators.expr.result-ast similarity index 100% rename from compiler/parse/tests/snapshots/pass/multiple_operators.expr.result-ast rename to crates/compiler/parse/tests/snapshots/pass/multiple_operators.expr.result-ast diff --git a/compiler/parse/tests/snapshots/pass/multiple_operators.expr.roc b/crates/compiler/parse/tests/snapshots/pass/multiple_operators.expr.roc similarity index 100% rename from compiler/parse/tests/snapshots/pass/multiple_operators.expr.roc rename to crates/compiler/parse/tests/snapshots/pass/multiple_operators.expr.roc diff --git a/compiler/parse/tests/snapshots/pass/neg_inf_float.expr.result-ast b/crates/compiler/parse/tests/snapshots/pass/neg_inf_float.expr.result-ast similarity index 100% rename from compiler/parse/tests/snapshots/pass/neg_inf_float.expr.result-ast rename to crates/compiler/parse/tests/snapshots/pass/neg_inf_float.expr.result-ast diff --git a/compiler/parse/tests/snapshots/pass/neg_inf_float.expr.roc b/crates/compiler/parse/tests/snapshots/pass/neg_inf_float.expr.roc similarity index 100% rename from compiler/parse/tests/snapshots/pass/neg_inf_float.expr.roc rename to crates/compiler/parse/tests/snapshots/pass/neg_inf_float.expr.roc diff --git a/compiler/parse/tests/snapshots/pass/negative_float.expr.result-ast b/crates/compiler/parse/tests/snapshots/pass/negative_float.expr.result-ast similarity index 100% rename from compiler/parse/tests/snapshots/pass/negative_float.expr.result-ast rename to crates/compiler/parse/tests/snapshots/pass/negative_float.expr.result-ast diff --git a/compiler/parse/tests/snapshots/pass/negative_float.expr.roc b/crates/compiler/parse/tests/snapshots/pass/negative_float.expr.roc similarity index 100% rename from compiler/parse/tests/snapshots/pass/negative_float.expr.roc rename to crates/compiler/parse/tests/snapshots/pass/negative_float.expr.roc diff --git a/compiler/parse/tests/snapshots/pass/negative_int.expr.result-ast b/crates/compiler/parse/tests/snapshots/pass/negative_int.expr.result-ast similarity index 100% rename from compiler/parse/tests/snapshots/pass/negative_int.expr.result-ast rename to crates/compiler/parse/tests/snapshots/pass/negative_int.expr.result-ast diff --git a/compiler/parse/tests/snapshots/pass/negative_int.expr.roc b/crates/compiler/parse/tests/snapshots/pass/negative_int.expr.roc similarity index 100% rename from compiler/parse/tests/snapshots/pass/negative_int.expr.roc rename to crates/compiler/parse/tests/snapshots/pass/negative_int.expr.roc diff --git a/compiler/parse/tests/snapshots/pass/nested_def_annotation.module.result-ast b/crates/compiler/parse/tests/snapshots/pass/nested_def_annotation.module.result-ast similarity index 100% rename from compiler/parse/tests/snapshots/pass/nested_def_annotation.module.result-ast rename to crates/compiler/parse/tests/snapshots/pass/nested_def_annotation.module.result-ast diff --git a/compiler/parse/tests/snapshots/pass/nested_def_annotation.module.roc b/crates/compiler/parse/tests/snapshots/pass/nested_def_annotation.module.roc similarity index 100% rename from compiler/parse/tests/snapshots/pass/nested_def_annotation.module.roc rename to crates/compiler/parse/tests/snapshots/pass/nested_def_annotation.module.roc diff --git a/compiler/parse/tests/snapshots/pass/nested_if.expr.result-ast b/crates/compiler/parse/tests/snapshots/pass/nested_if.expr.result-ast similarity index 100% rename from compiler/parse/tests/snapshots/pass/nested_if.expr.result-ast rename to crates/compiler/parse/tests/snapshots/pass/nested_if.expr.result-ast diff --git a/compiler/parse/tests/snapshots/pass/nested_if.expr.roc b/crates/compiler/parse/tests/snapshots/pass/nested_if.expr.roc similarity index 100% rename from compiler/parse/tests/snapshots/pass/nested_if.expr.roc rename to crates/compiler/parse/tests/snapshots/pass/nested_if.expr.roc diff --git a/compiler/parse/tests/snapshots/pass/nested_module.header.result-ast b/crates/compiler/parse/tests/snapshots/pass/nested_module.header.result-ast similarity index 100% rename from compiler/parse/tests/snapshots/pass/nested_module.header.result-ast rename to crates/compiler/parse/tests/snapshots/pass/nested_module.header.result-ast diff --git a/compiler/parse/tests/snapshots/pass/nested_module.header.roc b/crates/compiler/parse/tests/snapshots/pass/nested_module.header.roc similarity index 100% rename from compiler/parse/tests/snapshots/pass/nested_module.header.roc rename to crates/compiler/parse/tests/snapshots/pass/nested_module.header.roc diff --git a/compiler/parse/tests/snapshots/pass/newline_after_equals.expr.result-ast b/crates/compiler/parse/tests/snapshots/pass/newline_after_equals.expr.result-ast similarity index 100% rename from compiler/parse/tests/snapshots/pass/newline_after_equals.expr.result-ast rename to crates/compiler/parse/tests/snapshots/pass/newline_after_equals.expr.result-ast diff --git a/compiler/parse/tests/snapshots/pass/newline_after_equals.expr.roc b/crates/compiler/parse/tests/snapshots/pass/newline_after_equals.expr.roc similarity index 100% rename from compiler/parse/tests/snapshots/pass/newline_after_equals.expr.roc rename to crates/compiler/parse/tests/snapshots/pass/newline_after_equals.expr.roc diff --git a/compiler/parse/tests/snapshots/pass/newline_after_mul.expr.result-ast b/crates/compiler/parse/tests/snapshots/pass/newline_after_mul.expr.result-ast similarity index 100% rename from compiler/parse/tests/snapshots/pass/newline_after_mul.expr.result-ast rename to crates/compiler/parse/tests/snapshots/pass/newline_after_mul.expr.result-ast diff --git a/compiler/parse/tests/snapshots/pass/newline_after_mul.expr.roc b/crates/compiler/parse/tests/snapshots/pass/newline_after_mul.expr.roc similarity index 100% rename from compiler/parse/tests/snapshots/pass/newline_after_mul.expr.roc rename to crates/compiler/parse/tests/snapshots/pass/newline_after_mul.expr.roc diff --git a/compiler/parse/tests/snapshots/pass/newline_after_sub.expr.result-ast b/crates/compiler/parse/tests/snapshots/pass/newline_after_sub.expr.result-ast similarity index 100% rename from compiler/parse/tests/snapshots/pass/newline_after_sub.expr.result-ast rename to crates/compiler/parse/tests/snapshots/pass/newline_after_sub.expr.result-ast diff --git a/compiler/parse/tests/snapshots/pass/newline_after_sub.expr.roc b/crates/compiler/parse/tests/snapshots/pass/newline_after_sub.expr.roc similarity index 100% rename from compiler/parse/tests/snapshots/pass/newline_after_sub.expr.roc rename to crates/compiler/parse/tests/snapshots/pass/newline_after_sub.expr.roc diff --git a/compiler/parse/tests/snapshots/pass/newline_and_spaces_before_less_than.expr.result-ast b/crates/compiler/parse/tests/snapshots/pass/newline_and_spaces_before_less_than.expr.result-ast similarity index 100% rename from compiler/parse/tests/snapshots/pass/newline_and_spaces_before_less_than.expr.result-ast rename to crates/compiler/parse/tests/snapshots/pass/newline_and_spaces_before_less_than.expr.result-ast diff --git a/compiler/parse/tests/snapshots/pass/newline_and_spaces_before_less_than.expr.roc b/crates/compiler/parse/tests/snapshots/pass/newline_and_spaces_before_less_than.expr.roc similarity index 100% rename from compiler/parse/tests/snapshots/pass/newline_and_spaces_before_less_than.expr.roc rename to crates/compiler/parse/tests/snapshots/pass/newline_and_spaces_before_less_than.expr.roc diff --git a/compiler/parse/tests/snapshots/pass/newline_before_add.expr.result-ast b/crates/compiler/parse/tests/snapshots/pass/newline_before_add.expr.result-ast similarity index 100% rename from compiler/parse/tests/snapshots/pass/newline_before_add.expr.result-ast rename to crates/compiler/parse/tests/snapshots/pass/newline_before_add.expr.result-ast diff --git a/compiler/parse/tests/snapshots/pass/newline_before_add.expr.roc b/crates/compiler/parse/tests/snapshots/pass/newline_before_add.expr.roc similarity index 100% rename from compiler/parse/tests/snapshots/pass/newline_before_add.expr.roc rename to crates/compiler/parse/tests/snapshots/pass/newline_before_add.expr.roc diff --git a/compiler/parse/tests/snapshots/pass/newline_before_sub.expr.result-ast b/crates/compiler/parse/tests/snapshots/pass/newline_before_sub.expr.result-ast similarity index 100% rename from compiler/parse/tests/snapshots/pass/newline_before_sub.expr.result-ast rename to crates/compiler/parse/tests/snapshots/pass/newline_before_sub.expr.result-ast diff --git a/compiler/parse/tests/snapshots/pass/newline_before_sub.expr.roc b/crates/compiler/parse/tests/snapshots/pass/newline_before_sub.expr.roc similarity index 100% rename from compiler/parse/tests/snapshots/pass/newline_before_sub.expr.roc rename to crates/compiler/parse/tests/snapshots/pass/newline_before_sub.expr.roc diff --git a/compiler/parse/tests/snapshots/pass/newline_inside_empty_list.expr.result-ast b/crates/compiler/parse/tests/snapshots/pass/newline_inside_empty_list.expr.result-ast similarity index 100% rename from compiler/parse/tests/snapshots/pass/newline_inside_empty_list.expr.result-ast rename to crates/compiler/parse/tests/snapshots/pass/newline_inside_empty_list.expr.result-ast diff --git a/compiler/parse/tests/snapshots/pass/newline_inside_empty_list.expr.roc b/crates/compiler/parse/tests/snapshots/pass/newline_inside_empty_list.expr.roc similarity index 100% rename from compiler/parse/tests/snapshots/pass/newline_inside_empty_list.expr.roc rename to crates/compiler/parse/tests/snapshots/pass/newline_inside_empty_list.expr.roc diff --git a/compiler/parse/tests/snapshots/pass/newline_singleton_list.expr.result-ast b/crates/compiler/parse/tests/snapshots/pass/newline_singleton_list.expr.result-ast similarity index 100% rename from compiler/parse/tests/snapshots/pass/newline_singleton_list.expr.result-ast rename to crates/compiler/parse/tests/snapshots/pass/newline_singleton_list.expr.result-ast diff --git a/compiler/parse/tests/snapshots/pass/newline_singleton_list.expr.roc b/crates/compiler/parse/tests/snapshots/pass/newline_singleton_list.expr.roc similarity index 100% rename from compiler/parse/tests/snapshots/pass/newline_singleton_list.expr.roc rename to crates/compiler/parse/tests/snapshots/pass/newline_singleton_list.expr.roc diff --git a/compiler/parse/tests/snapshots/pass/nonempty_hosted_header.header.result-ast b/crates/compiler/parse/tests/snapshots/pass/nonempty_hosted_header.header.result-ast similarity index 100% rename from compiler/parse/tests/snapshots/pass/nonempty_hosted_header.header.result-ast rename to crates/compiler/parse/tests/snapshots/pass/nonempty_hosted_header.header.result-ast diff --git a/compiler/parse/tests/snapshots/pass/nonempty_hosted_header.header.roc b/crates/compiler/parse/tests/snapshots/pass/nonempty_hosted_header.header.roc similarity index 100% rename from compiler/parse/tests/snapshots/pass/nonempty_hosted_header.header.roc rename to crates/compiler/parse/tests/snapshots/pass/nonempty_hosted_header.header.roc diff --git a/compiler/parse/tests/snapshots/pass/nonempty_platform_header.header.result-ast b/crates/compiler/parse/tests/snapshots/pass/nonempty_platform_header.header.result-ast similarity index 100% rename from compiler/parse/tests/snapshots/pass/nonempty_platform_header.header.result-ast rename to crates/compiler/parse/tests/snapshots/pass/nonempty_platform_header.header.result-ast diff --git a/compiler/parse/tests/snapshots/pass/nonempty_platform_header.header.roc b/crates/compiler/parse/tests/snapshots/pass/nonempty_platform_header.header.roc similarity index 100% rename from compiler/parse/tests/snapshots/pass/nonempty_platform_header.header.roc rename to crates/compiler/parse/tests/snapshots/pass/nonempty_platform_header.header.roc diff --git a/compiler/parse/tests/snapshots/pass/not_docs.expr.result-ast b/crates/compiler/parse/tests/snapshots/pass/not_docs.expr.result-ast similarity index 100% rename from compiler/parse/tests/snapshots/pass/not_docs.expr.result-ast rename to crates/compiler/parse/tests/snapshots/pass/not_docs.expr.result-ast diff --git a/compiler/parse/tests/snapshots/pass/not_docs.expr.roc b/crates/compiler/parse/tests/snapshots/pass/not_docs.expr.roc similarity index 100% rename from compiler/parse/tests/snapshots/pass/not_docs.expr.roc rename to crates/compiler/parse/tests/snapshots/pass/not_docs.expr.roc diff --git a/compiler/parse/tests/snapshots/pass/number_literal_suffixes.expr.result-ast b/crates/compiler/parse/tests/snapshots/pass/number_literal_suffixes.expr.result-ast similarity index 100% rename from compiler/parse/tests/snapshots/pass/number_literal_suffixes.expr.result-ast rename to crates/compiler/parse/tests/snapshots/pass/number_literal_suffixes.expr.result-ast diff --git a/compiler/parse/tests/snapshots/pass/number_literal_suffixes.expr.roc b/crates/compiler/parse/tests/snapshots/pass/number_literal_suffixes.expr.roc similarity index 100% rename from compiler/parse/tests/snapshots/pass/number_literal_suffixes.expr.roc rename to crates/compiler/parse/tests/snapshots/pass/number_literal_suffixes.expr.roc diff --git a/compiler/parse/tests/snapshots/pass/one_backpassing.expr.result-ast b/crates/compiler/parse/tests/snapshots/pass/one_backpassing.expr.result-ast similarity index 100% rename from compiler/parse/tests/snapshots/pass/one_backpassing.expr.result-ast rename to crates/compiler/parse/tests/snapshots/pass/one_backpassing.expr.result-ast diff --git a/compiler/parse/tests/snapshots/pass/one_backpassing.expr.roc b/crates/compiler/parse/tests/snapshots/pass/one_backpassing.expr.roc similarity index 100% rename from compiler/parse/tests/snapshots/pass/one_backpassing.expr.roc rename to crates/compiler/parse/tests/snapshots/pass/one_backpassing.expr.roc diff --git a/compiler/parse/tests/snapshots/pass/one_char_string.expr.result-ast b/crates/compiler/parse/tests/snapshots/pass/one_char_string.expr.result-ast similarity index 100% rename from compiler/parse/tests/snapshots/pass/one_char_string.expr.result-ast rename to crates/compiler/parse/tests/snapshots/pass/one_char_string.expr.result-ast diff --git a/compiler/parse/tests/snapshots/pass/one_char_string.expr.roc b/crates/compiler/parse/tests/snapshots/pass/one_char_string.expr.roc similarity index 100% rename from compiler/parse/tests/snapshots/pass/one_char_string.expr.roc rename to crates/compiler/parse/tests/snapshots/pass/one_char_string.expr.roc diff --git a/compiler/parse/tests/snapshots/pass/one_def.expr.result-ast b/crates/compiler/parse/tests/snapshots/pass/one_def.expr.result-ast similarity index 100% rename from compiler/parse/tests/snapshots/pass/one_def.expr.result-ast rename to crates/compiler/parse/tests/snapshots/pass/one_def.expr.result-ast diff --git a/compiler/parse/tests/snapshots/pass/one_def.expr.roc b/crates/compiler/parse/tests/snapshots/pass/one_def.expr.roc similarity index 100% rename from compiler/parse/tests/snapshots/pass/one_def.expr.roc rename to crates/compiler/parse/tests/snapshots/pass/one_def.expr.roc diff --git a/compiler/parse/tests/snapshots/pass/one_minus_two.expr.result-ast b/crates/compiler/parse/tests/snapshots/pass/one_minus_two.expr.result-ast similarity index 100% rename from compiler/parse/tests/snapshots/pass/one_minus_two.expr.result-ast rename to crates/compiler/parse/tests/snapshots/pass/one_minus_two.expr.result-ast diff --git a/compiler/parse/tests/snapshots/pass/one_minus_two.expr.roc b/crates/compiler/parse/tests/snapshots/pass/one_minus_two.expr.roc similarity index 100% rename from compiler/parse/tests/snapshots/pass/one_minus_two.expr.roc rename to crates/compiler/parse/tests/snapshots/pass/one_minus_two.expr.roc diff --git a/compiler/parse/tests/snapshots/pass/one_plus_two.expr.result-ast b/crates/compiler/parse/tests/snapshots/pass/one_plus_two.expr.result-ast similarity index 100% rename from compiler/parse/tests/snapshots/pass/one_plus_two.expr.result-ast rename to crates/compiler/parse/tests/snapshots/pass/one_plus_two.expr.result-ast diff --git a/compiler/parse/tests/snapshots/pass/one_plus_two.expr.roc b/crates/compiler/parse/tests/snapshots/pass/one_plus_two.expr.roc similarity index 100% rename from compiler/parse/tests/snapshots/pass/one_plus_two.expr.roc rename to crates/compiler/parse/tests/snapshots/pass/one_plus_two.expr.roc diff --git a/compiler/parse/tests/snapshots/pass/one_spaced_def.expr.result-ast b/crates/compiler/parse/tests/snapshots/pass/one_spaced_def.expr.result-ast similarity index 100% rename from compiler/parse/tests/snapshots/pass/one_spaced_def.expr.result-ast rename to crates/compiler/parse/tests/snapshots/pass/one_spaced_def.expr.result-ast diff --git a/compiler/parse/tests/snapshots/pass/one_spaced_def.expr.roc b/crates/compiler/parse/tests/snapshots/pass/one_spaced_def.expr.roc similarity index 100% rename from compiler/parse/tests/snapshots/pass/one_spaced_def.expr.roc rename to crates/compiler/parse/tests/snapshots/pass/one_spaced_def.expr.roc diff --git a/compiler/parse/tests/snapshots/pass/opaque_has_abilities.expr.result-ast b/crates/compiler/parse/tests/snapshots/pass/opaque_has_abilities.expr.result-ast similarity index 100% rename from compiler/parse/tests/snapshots/pass/opaque_has_abilities.expr.result-ast rename to crates/compiler/parse/tests/snapshots/pass/opaque_has_abilities.expr.result-ast diff --git a/compiler/parse/tests/snapshots/pass/opaque_has_abilities.expr.roc b/crates/compiler/parse/tests/snapshots/pass/opaque_has_abilities.expr.roc similarity index 100% rename from compiler/parse/tests/snapshots/pass/opaque_has_abilities.expr.roc rename to crates/compiler/parse/tests/snapshots/pass/opaque_has_abilities.expr.roc diff --git a/compiler/parse/tests/snapshots/pass/opaque_reference_expr.expr.result-ast b/crates/compiler/parse/tests/snapshots/pass/opaque_reference_expr.expr.result-ast similarity index 100% rename from compiler/parse/tests/snapshots/pass/opaque_reference_expr.expr.result-ast rename to crates/compiler/parse/tests/snapshots/pass/opaque_reference_expr.expr.result-ast diff --git a/compiler/parse/tests/snapshots/pass/opaque_reference_expr.expr.roc b/crates/compiler/parse/tests/snapshots/pass/opaque_reference_expr.expr.roc similarity index 100% rename from compiler/parse/tests/snapshots/pass/opaque_reference_expr.expr.roc rename to crates/compiler/parse/tests/snapshots/pass/opaque_reference_expr.expr.roc diff --git a/compiler/parse/tests/snapshots/pass/opaque_reference_expr_with_arguments.expr.result-ast b/crates/compiler/parse/tests/snapshots/pass/opaque_reference_expr_with_arguments.expr.result-ast similarity index 100% rename from compiler/parse/tests/snapshots/pass/opaque_reference_expr_with_arguments.expr.result-ast rename to crates/compiler/parse/tests/snapshots/pass/opaque_reference_expr_with_arguments.expr.result-ast diff --git a/compiler/parse/tests/snapshots/pass/opaque_reference_expr_with_arguments.expr.roc b/crates/compiler/parse/tests/snapshots/pass/opaque_reference_expr_with_arguments.expr.roc similarity index 100% rename from compiler/parse/tests/snapshots/pass/opaque_reference_expr_with_arguments.expr.roc rename to crates/compiler/parse/tests/snapshots/pass/opaque_reference_expr_with_arguments.expr.roc diff --git a/compiler/parse/tests/snapshots/pass/opaque_reference_pattern.expr.result-ast b/crates/compiler/parse/tests/snapshots/pass/opaque_reference_pattern.expr.result-ast similarity index 100% rename from compiler/parse/tests/snapshots/pass/opaque_reference_pattern.expr.result-ast rename to crates/compiler/parse/tests/snapshots/pass/opaque_reference_pattern.expr.result-ast diff --git a/compiler/parse/tests/snapshots/pass/opaque_reference_pattern.expr.roc b/crates/compiler/parse/tests/snapshots/pass/opaque_reference_pattern.expr.roc similarity index 100% rename from compiler/parse/tests/snapshots/pass/opaque_reference_pattern.expr.roc rename to crates/compiler/parse/tests/snapshots/pass/opaque_reference_pattern.expr.roc diff --git a/compiler/parse/tests/snapshots/pass/opaque_reference_pattern_with_arguments.expr.result-ast b/crates/compiler/parse/tests/snapshots/pass/opaque_reference_pattern_with_arguments.expr.result-ast similarity index 100% rename from compiler/parse/tests/snapshots/pass/opaque_reference_pattern_with_arguments.expr.result-ast rename to crates/compiler/parse/tests/snapshots/pass/opaque_reference_pattern_with_arguments.expr.result-ast diff --git a/compiler/parse/tests/snapshots/pass/opaque_reference_pattern_with_arguments.expr.roc b/crates/compiler/parse/tests/snapshots/pass/opaque_reference_pattern_with_arguments.expr.roc similarity index 100% rename from compiler/parse/tests/snapshots/pass/opaque_reference_pattern_with_arguments.expr.roc rename to crates/compiler/parse/tests/snapshots/pass/opaque_reference_pattern_with_arguments.expr.roc diff --git a/compiler/parse/tests/snapshots/pass/opaque_simple.module.result-ast b/crates/compiler/parse/tests/snapshots/pass/opaque_simple.module.result-ast similarity index 100% rename from compiler/parse/tests/snapshots/pass/opaque_simple.module.result-ast rename to crates/compiler/parse/tests/snapshots/pass/opaque_simple.module.result-ast diff --git a/compiler/parse/tests/snapshots/pass/opaque_simple.module.roc b/crates/compiler/parse/tests/snapshots/pass/opaque_simple.module.roc similarity index 100% rename from compiler/parse/tests/snapshots/pass/opaque_simple.module.roc rename to crates/compiler/parse/tests/snapshots/pass/opaque_simple.module.roc diff --git a/compiler/parse/tests/snapshots/pass/opaque_with_type_arguments.module.result-ast b/crates/compiler/parse/tests/snapshots/pass/opaque_with_type_arguments.module.result-ast similarity index 100% rename from compiler/parse/tests/snapshots/pass/opaque_with_type_arguments.module.result-ast rename to crates/compiler/parse/tests/snapshots/pass/opaque_with_type_arguments.module.result-ast diff --git a/compiler/parse/tests/snapshots/pass/opaque_with_type_arguments.module.roc b/crates/compiler/parse/tests/snapshots/pass/opaque_with_type_arguments.module.roc similarity index 100% rename from compiler/parse/tests/snapshots/pass/opaque_with_type_arguments.module.roc rename to crates/compiler/parse/tests/snapshots/pass/opaque_with_type_arguments.module.roc diff --git a/compiler/parse/tests/snapshots/pass/ops_with_newlines.expr.result-ast b/crates/compiler/parse/tests/snapshots/pass/ops_with_newlines.expr.result-ast similarity index 100% rename from compiler/parse/tests/snapshots/pass/ops_with_newlines.expr.result-ast rename to crates/compiler/parse/tests/snapshots/pass/ops_with_newlines.expr.result-ast diff --git a/compiler/parse/tests/snapshots/pass/ops_with_newlines.expr.roc b/crates/compiler/parse/tests/snapshots/pass/ops_with_newlines.expr.roc similarity index 100% rename from compiler/parse/tests/snapshots/pass/ops_with_newlines.expr.roc rename to crates/compiler/parse/tests/snapshots/pass/ops_with_newlines.expr.roc diff --git a/compiler/parse/tests/snapshots/pass/outdented_app_with_record.expr.result-ast b/crates/compiler/parse/tests/snapshots/pass/outdented_app_with_record.expr.result-ast similarity index 100% rename from compiler/parse/tests/snapshots/pass/outdented_app_with_record.expr.result-ast rename to crates/compiler/parse/tests/snapshots/pass/outdented_app_with_record.expr.result-ast diff --git a/compiler/parse/tests/snapshots/pass/outdented_app_with_record.expr.roc b/crates/compiler/parse/tests/snapshots/pass/outdented_app_with_record.expr.roc similarity index 100% rename from compiler/parse/tests/snapshots/pass/outdented_app_with_record.expr.roc rename to crates/compiler/parse/tests/snapshots/pass/outdented_app_with_record.expr.roc diff --git a/compiler/parse/tests/snapshots/pass/outdented_list.expr.result-ast b/crates/compiler/parse/tests/snapshots/pass/outdented_list.expr.result-ast similarity index 100% rename from compiler/parse/tests/snapshots/pass/outdented_list.expr.result-ast rename to crates/compiler/parse/tests/snapshots/pass/outdented_list.expr.result-ast diff --git a/compiler/parse/tests/snapshots/pass/outdented_list.expr.roc b/crates/compiler/parse/tests/snapshots/pass/outdented_list.expr.roc similarity index 100% rename from compiler/parse/tests/snapshots/pass/outdented_list.expr.roc rename to crates/compiler/parse/tests/snapshots/pass/outdented_list.expr.roc diff --git a/compiler/parse/tests/snapshots/pass/outdented_record.expr.result-ast b/crates/compiler/parse/tests/snapshots/pass/outdented_record.expr.result-ast similarity index 100% rename from compiler/parse/tests/snapshots/pass/outdented_record.expr.result-ast rename to crates/compiler/parse/tests/snapshots/pass/outdented_record.expr.result-ast diff --git a/compiler/parse/tests/snapshots/pass/outdented_record.expr.roc b/crates/compiler/parse/tests/snapshots/pass/outdented_record.expr.roc similarity index 100% rename from compiler/parse/tests/snapshots/pass/outdented_record.expr.roc rename to crates/compiler/parse/tests/snapshots/pass/outdented_record.expr.roc diff --git a/compiler/parse/tests/snapshots/pass/packed_singleton_list.expr.result-ast b/crates/compiler/parse/tests/snapshots/pass/packed_singleton_list.expr.result-ast similarity index 100% rename from compiler/parse/tests/snapshots/pass/packed_singleton_list.expr.result-ast rename to crates/compiler/parse/tests/snapshots/pass/packed_singleton_list.expr.result-ast diff --git a/compiler/parse/tests/snapshots/pass/packed_singleton_list.expr.roc b/crates/compiler/parse/tests/snapshots/pass/packed_singleton_list.expr.roc similarity index 100% rename from compiler/parse/tests/snapshots/pass/packed_singleton_list.expr.roc rename to crates/compiler/parse/tests/snapshots/pass/packed_singleton_list.expr.roc diff --git a/compiler/parse/tests/snapshots/pass/parenthetical_apply.expr.result-ast b/crates/compiler/parse/tests/snapshots/pass/parenthetical_apply.expr.result-ast similarity index 100% rename from compiler/parse/tests/snapshots/pass/parenthetical_apply.expr.result-ast rename to crates/compiler/parse/tests/snapshots/pass/parenthetical_apply.expr.result-ast diff --git a/compiler/parse/tests/snapshots/pass/parenthetical_apply.expr.roc b/crates/compiler/parse/tests/snapshots/pass/parenthetical_apply.expr.roc similarity index 100% rename from compiler/parse/tests/snapshots/pass/parenthetical_apply.expr.roc rename to crates/compiler/parse/tests/snapshots/pass/parenthetical_apply.expr.roc diff --git a/compiler/parse/tests/snapshots/pass/parenthetical_basic_field.expr.result-ast b/crates/compiler/parse/tests/snapshots/pass/parenthetical_basic_field.expr.result-ast similarity index 100% rename from compiler/parse/tests/snapshots/pass/parenthetical_basic_field.expr.result-ast rename to crates/compiler/parse/tests/snapshots/pass/parenthetical_basic_field.expr.result-ast diff --git a/compiler/parse/tests/snapshots/pass/parenthetical_basic_field.expr.roc b/crates/compiler/parse/tests/snapshots/pass/parenthetical_basic_field.expr.roc similarity index 100% rename from compiler/parse/tests/snapshots/pass/parenthetical_basic_field.expr.roc rename to crates/compiler/parse/tests/snapshots/pass/parenthetical_basic_field.expr.roc diff --git a/compiler/parse/tests/snapshots/pass/parenthetical_field_qualified_var.expr.result-ast b/crates/compiler/parse/tests/snapshots/pass/parenthetical_field_qualified_var.expr.result-ast similarity index 100% rename from compiler/parse/tests/snapshots/pass/parenthetical_field_qualified_var.expr.result-ast rename to crates/compiler/parse/tests/snapshots/pass/parenthetical_field_qualified_var.expr.result-ast diff --git a/compiler/parse/tests/snapshots/pass/parenthetical_field_qualified_var.expr.roc b/crates/compiler/parse/tests/snapshots/pass/parenthetical_field_qualified_var.expr.roc similarity index 100% rename from compiler/parse/tests/snapshots/pass/parenthetical_field_qualified_var.expr.roc rename to crates/compiler/parse/tests/snapshots/pass/parenthetical_field_qualified_var.expr.roc diff --git a/compiler/parse/tests/snapshots/pass/parenthetical_var.expr.result-ast b/crates/compiler/parse/tests/snapshots/pass/parenthetical_var.expr.result-ast similarity index 100% rename from compiler/parse/tests/snapshots/pass/parenthetical_var.expr.result-ast rename to crates/compiler/parse/tests/snapshots/pass/parenthetical_var.expr.result-ast diff --git a/compiler/parse/tests/snapshots/pass/parenthetical_var.expr.roc b/crates/compiler/parse/tests/snapshots/pass/parenthetical_var.expr.roc similarity index 100% rename from compiler/parse/tests/snapshots/pass/parenthetical_var.expr.roc rename to crates/compiler/parse/tests/snapshots/pass/parenthetical_var.expr.roc diff --git a/compiler/parse/tests/snapshots/pass/parse_alias.expr.result-ast b/crates/compiler/parse/tests/snapshots/pass/parse_alias.expr.result-ast similarity index 100% rename from compiler/parse/tests/snapshots/pass/parse_alias.expr.result-ast rename to crates/compiler/parse/tests/snapshots/pass/parse_alias.expr.result-ast diff --git a/compiler/parse/tests/snapshots/pass/parse_alias.expr.roc b/crates/compiler/parse/tests/snapshots/pass/parse_alias.expr.roc similarity index 100% rename from compiler/parse/tests/snapshots/pass/parse_alias.expr.roc rename to crates/compiler/parse/tests/snapshots/pass/parse_alias.expr.roc diff --git a/compiler/parse/tests/snapshots/pass/parse_as_ann.expr.result-ast b/crates/compiler/parse/tests/snapshots/pass/parse_as_ann.expr.result-ast similarity index 100% rename from compiler/parse/tests/snapshots/pass/parse_as_ann.expr.result-ast rename to crates/compiler/parse/tests/snapshots/pass/parse_as_ann.expr.result-ast diff --git a/compiler/parse/tests/snapshots/pass/parse_as_ann.expr.roc b/crates/compiler/parse/tests/snapshots/pass/parse_as_ann.expr.roc similarity index 100% rename from compiler/parse/tests/snapshots/pass/parse_as_ann.expr.roc rename to crates/compiler/parse/tests/snapshots/pass/parse_as_ann.expr.roc diff --git a/compiler/parse/tests/snapshots/pass/pattern_with_space_in_parens.expr.result-ast b/crates/compiler/parse/tests/snapshots/pass/pattern_with_space_in_parens.expr.result-ast similarity index 100% rename from compiler/parse/tests/snapshots/pass/pattern_with_space_in_parens.expr.result-ast rename to crates/compiler/parse/tests/snapshots/pass/pattern_with_space_in_parens.expr.result-ast diff --git a/compiler/parse/tests/snapshots/pass/pattern_with_space_in_parens.expr.roc b/crates/compiler/parse/tests/snapshots/pass/pattern_with_space_in_parens.expr.roc similarity index 100% rename from compiler/parse/tests/snapshots/pass/pattern_with_space_in_parens.expr.roc rename to crates/compiler/parse/tests/snapshots/pass/pattern_with_space_in_parens.expr.roc diff --git a/compiler/parse/tests/snapshots/pass/plus_if.expr.result-ast b/crates/compiler/parse/tests/snapshots/pass/plus_if.expr.result-ast similarity index 100% rename from compiler/parse/tests/snapshots/pass/plus_if.expr.result-ast rename to crates/compiler/parse/tests/snapshots/pass/plus_if.expr.result-ast diff --git a/compiler/parse/tests/snapshots/pass/plus_if.expr.roc b/crates/compiler/parse/tests/snapshots/pass/plus_if.expr.roc similarity index 100% rename from compiler/parse/tests/snapshots/pass/plus_if.expr.roc rename to crates/compiler/parse/tests/snapshots/pass/plus_if.expr.roc diff --git a/compiler/parse/tests/snapshots/pass/pos_inf_float.expr.result-ast b/crates/compiler/parse/tests/snapshots/pass/pos_inf_float.expr.result-ast similarity index 100% rename from compiler/parse/tests/snapshots/pass/pos_inf_float.expr.result-ast rename to crates/compiler/parse/tests/snapshots/pass/pos_inf_float.expr.result-ast diff --git a/compiler/parse/tests/snapshots/pass/pos_inf_float.expr.roc b/crates/compiler/parse/tests/snapshots/pass/pos_inf_float.expr.roc similarity index 100% rename from compiler/parse/tests/snapshots/pass/pos_inf_float.expr.roc rename to crates/compiler/parse/tests/snapshots/pass/pos_inf_float.expr.roc diff --git a/compiler/parse/tests/snapshots/pass/positive_float.expr.result-ast b/crates/compiler/parse/tests/snapshots/pass/positive_float.expr.result-ast similarity index 100% rename from compiler/parse/tests/snapshots/pass/positive_float.expr.result-ast rename to crates/compiler/parse/tests/snapshots/pass/positive_float.expr.result-ast diff --git a/compiler/parse/tests/snapshots/pass/positive_float.expr.roc b/crates/compiler/parse/tests/snapshots/pass/positive_float.expr.roc similarity index 100% rename from compiler/parse/tests/snapshots/pass/positive_float.expr.roc rename to crates/compiler/parse/tests/snapshots/pass/positive_float.expr.roc diff --git a/compiler/parse/tests/snapshots/pass/positive_int.expr.result-ast b/crates/compiler/parse/tests/snapshots/pass/positive_int.expr.result-ast similarity index 100% rename from compiler/parse/tests/snapshots/pass/positive_int.expr.result-ast rename to crates/compiler/parse/tests/snapshots/pass/positive_int.expr.result-ast diff --git a/compiler/parse/tests/snapshots/pass/positive_int.expr.roc b/crates/compiler/parse/tests/snapshots/pass/positive_int.expr.roc similarity index 100% rename from compiler/parse/tests/snapshots/pass/positive_int.expr.roc rename to crates/compiler/parse/tests/snapshots/pass/positive_int.expr.roc diff --git a/compiler/parse/tests/snapshots/pass/provides_type.header.result-ast b/crates/compiler/parse/tests/snapshots/pass/provides_type.header.result-ast similarity index 100% rename from compiler/parse/tests/snapshots/pass/provides_type.header.result-ast rename to crates/compiler/parse/tests/snapshots/pass/provides_type.header.result-ast diff --git a/compiler/parse/tests/snapshots/pass/provides_type.header.roc b/crates/compiler/parse/tests/snapshots/pass/provides_type.header.roc similarity index 100% rename from compiler/parse/tests/snapshots/pass/provides_type.header.roc rename to crates/compiler/parse/tests/snapshots/pass/provides_type.header.roc diff --git a/compiler/parse/tests/snapshots/pass/qualified_field.expr.result-ast b/crates/compiler/parse/tests/snapshots/pass/qualified_field.expr.result-ast similarity index 100% rename from compiler/parse/tests/snapshots/pass/qualified_field.expr.result-ast rename to crates/compiler/parse/tests/snapshots/pass/qualified_field.expr.result-ast diff --git a/compiler/parse/tests/snapshots/pass/qualified_field.expr.roc b/crates/compiler/parse/tests/snapshots/pass/qualified_field.expr.roc similarity index 100% rename from compiler/parse/tests/snapshots/pass/qualified_field.expr.roc rename to crates/compiler/parse/tests/snapshots/pass/qualified_field.expr.roc diff --git a/compiler/parse/tests/snapshots/pass/qualified_tag.expr.result-ast b/crates/compiler/parse/tests/snapshots/pass/qualified_tag.expr.result-ast similarity index 100% rename from compiler/parse/tests/snapshots/pass/qualified_tag.expr.result-ast rename to crates/compiler/parse/tests/snapshots/pass/qualified_tag.expr.result-ast diff --git a/compiler/parse/tests/snapshots/pass/qualified_tag.expr.roc b/crates/compiler/parse/tests/snapshots/pass/qualified_tag.expr.roc similarity index 100% rename from compiler/parse/tests/snapshots/pass/qualified_tag.expr.roc rename to crates/compiler/parse/tests/snapshots/pass/qualified_tag.expr.roc diff --git a/compiler/parse/tests/snapshots/pass/qualified_var.expr.result-ast b/crates/compiler/parse/tests/snapshots/pass/qualified_var.expr.result-ast similarity index 100% rename from compiler/parse/tests/snapshots/pass/qualified_var.expr.result-ast rename to crates/compiler/parse/tests/snapshots/pass/qualified_var.expr.result-ast diff --git a/compiler/parse/tests/snapshots/pass/qualified_var.expr.roc b/crates/compiler/parse/tests/snapshots/pass/qualified_var.expr.roc similarity index 100% rename from compiler/parse/tests/snapshots/pass/qualified_var.expr.roc rename to crates/compiler/parse/tests/snapshots/pass/qualified_var.expr.roc diff --git a/compiler/parse/tests/snapshots/pass/record_destructure_def.expr.result-ast b/crates/compiler/parse/tests/snapshots/pass/record_destructure_def.expr.result-ast similarity index 100% rename from compiler/parse/tests/snapshots/pass/record_destructure_def.expr.result-ast rename to crates/compiler/parse/tests/snapshots/pass/record_destructure_def.expr.result-ast diff --git a/compiler/parse/tests/snapshots/pass/record_destructure_def.expr.roc b/crates/compiler/parse/tests/snapshots/pass/record_destructure_def.expr.roc similarity index 100% rename from compiler/parse/tests/snapshots/pass/record_destructure_def.expr.roc rename to crates/compiler/parse/tests/snapshots/pass/record_destructure_def.expr.roc diff --git a/compiler/parse/tests/snapshots/pass/record_func_type_decl.expr.result-ast b/crates/compiler/parse/tests/snapshots/pass/record_func_type_decl.expr.result-ast similarity index 100% rename from compiler/parse/tests/snapshots/pass/record_func_type_decl.expr.result-ast rename to crates/compiler/parse/tests/snapshots/pass/record_func_type_decl.expr.result-ast diff --git a/compiler/parse/tests/snapshots/pass/record_func_type_decl.expr.roc b/crates/compiler/parse/tests/snapshots/pass/record_func_type_decl.expr.roc similarity index 100% rename from compiler/parse/tests/snapshots/pass/record_func_type_decl.expr.roc rename to crates/compiler/parse/tests/snapshots/pass/record_func_type_decl.expr.roc diff --git a/compiler/parse/tests/snapshots/pass/record_type_with_function.expr.result-ast b/crates/compiler/parse/tests/snapshots/pass/record_type_with_function.expr.result-ast similarity index 100% rename from compiler/parse/tests/snapshots/pass/record_type_with_function.expr.result-ast rename to crates/compiler/parse/tests/snapshots/pass/record_type_with_function.expr.result-ast diff --git a/compiler/parse/tests/snapshots/pass/record_type_with_function.expr.roc b/crates/compiler/parse/tests/snapshots/pass/record_type_with_function.expr.roc similarity index 100% rename from compiler/parse/tests/snapshots/pass/record_type_with_function.expr.roc rename to crates/compiler/parse/tests/snapshots/pass/record_type_with_function.expr.roc diff --git a/compiler/parse/tests/snapshots/pass/record_update.expr.result-ast b/crates/compiler/parse/tests/snapshots/pass/record_update.expr.result-ast similarity index 100% rename from compiler/parse/tests/snapshots/pass/record_update.expr.result-ast rename to crates/compiler/parse/tests/snapshots/pass/record_update.expr.result-ast diff --git a/compiler/parse/tests/snapshots/pass/record_update.expr.roc b/crates/compiler/parse/tests/snapshots/pass/record_update.expr.roc similarity index 100% rename from compiler/parse/tests/snapshots/pass/record_update.expr.roc rename to crates/compiler/parse/tests/snapshots/pass/record_update.expr.roc diff --git a/compiler/parse/tests/snapshots/pass/record_with_if.expr.result-ast b/crates/compiler/parse/tests/snapshots/pass/record_with_if.expr.result-ast similarity index 100% rename from compiler/parse/tests/snapshots/pass/record_with_if.expr.result-ast rename to crates/compiler/parse/tests/snapshots/pass/record_with_if.expr.result-ast diff --git a/compiler/parse/tests/snapshots/pass/record_with_if.expr.roc b/crates/compiler/parse/tests/snapshots/pass/record_with_if.expr.roc similarity index 100% rename from compiler/parse/tests/snapshots/pass/record_with_if.expr.roc rename to crates/compiler/parse/tests/snapshots/pass/record_with_if.expr.roc diff --git a/compiler/parse/tests/snapshots/pass/requires_type.header.result-ast b/crates/compiler/parse/tests/snapshots/pass/requires_type.header.result-ast similarity index 100% rename from compiler/parse/tests/snapshots/pass/requires_type.header.result-ast rename to crates/compiler/parse/tests/snapshots/pass/requires_type.header.result-ast diff --git a/compiler/parse/tests/snapshots/pass/requires_type.header.roc b/crates/compiler/parse/tests/snapshots/pass/requires_type.header.roc similarity index 100% rename from compiler/parse/tests/snapshots/pass/requires_type.header.roc rename to crates/compiler/parse/tests/snapshots/pass/requires_type.header.roc diff --git a/compiler/parse/tests/snapshots/pass/single_arg_closure.expr.result-ast b/crates/compiler/parse/tests/snapshots/pass/single_arg_closure.expr.result-ast similarity index 100% rename from compiler/parse/tests/snapshots/pass/single_arg_closure.expr.result-ast rename to crates/compiler/parse/tests/snapshots/pass/single_arg_closure.expr.result-ast diff --git a/compiler/parse/tests/snapshots/pass/single_arg_closure.expr.roc b/crates/compiler/parse/tests/snapshots/pass/single_arg_closure.expr.roc similarity index 100% rename from compiler/parse/tests/snapshots/pass/single_arg_closure.expr.roc rename to crates/compiler/parse/tests/snapshots/pass/single_arg_closure.expr.roc diff --git a/compiler/parse/tests/snapshots/pass/single_underscore_closure.expr.result-ast b/crates/compiler/parse/tests/snapshots/pass/single_underscore_closure.expr.result-ast similarity index 100% rename from compiler/parse/tests/snapshots/pass/single_underscore_closure.expr.result-ast rename to crates/compiler/parse/tests/snapshots/pass/single_underscore_closure.expr.result-ast diff --git a/compiler/parse/tests/snapshots/pass/single_underscore_closure.expr.roc b/crates/compiler/parse/tests/snapshots/pass/single_underscore_closure.expr.roc similarity index 100% rename from compiler/parse/tests/snapshots/pass/single_underscore_closure.expr.roc rename to crates/compiler/parse/tests/snapshots/pass/single_underscore_closure.expr.roc diff --git a/compiler/parse/tests/snapshots/pass/space_only_after_minus.expr.result-ast b/crates/compiler/parse/tests/snapshots/pass/space_only_after_minus.expr.result-ast similarity index 100% rename from compiler/parse/tests/snapshots/pass/space_only_after_minus.expr.result-ast rename to crates/compiler/parse/tests/snapshots/pass/space_only_after_minus.expr.result-ast diff --git a/compiler/parse/tests/snapshots/pass/space_only_after_minus.expr.roc b/crates/compiler/parse/tests/snapshots/pass/space_only_after_minus.expr.roc similarity index 100% rename from compiler/parse/tests/snapshots/pass/space_only_after_minus.expr.roc rename to crates/compiler/parse/tests/snapshots/pass/space_only_after_minus.expr.roc diff --git a/compiler/parse/tests/snapshots/pass/spaced_singleton_list.expr.result-ast b/crates/compiler/parse/tests/snapshots/pass/spaced_singleton_list.expr.result-ast similarity index 100% rename from compiler/parse/tests/snapshots/pass/spaced_singleton_list.expr.result-ast rename to crates/compiler/parse/tests/snapshots/pass/spaced_singleton_list.expr.result-ast diff --git a/compiler/parse/tests/snapshots/pass/spaced_singleton_list.expr.roc b/crates/compiler/parse/tests/snapshots/pass/spaced_singleton_list.expr.roc similarity index 100% rename from compiler/parse/tests/snapshots/pass/spaced_singleton_list.expr.roc rename to crates/compiler/parse/tests/snapshots/pass/spaced_singleton_list.expr.roc diff --git a/compiler/parse/tests/snapshots/pass/spaces_inside_empty_list.expr.result-ast b/crates/compiler/parse/tests/snapshots/pass/spaces_inside_empty_list.expr.result-ast similarity index 100% rename from compiler/parse/tests/snapshots/pass/spaces_inside_empty_list.expr.result-ast rename to crates/compiler/parse/tests/snapshots/pass/spaces_inside_empty_list.expr.result-ast diff --git a/compiler/parse/tests/snapshots/pass/spaces_inside_empty_list.expr.roc b/crates/compiler/parse/tests/snapshots/pass/spaces_inside_empty_list.expr.roc similarity index 100% rename from compiler/parse/tests/snapshots/pass/spaces_inside_empty_list.expr.roc rename to crates/compiler/parse/tests/snapshots/pass/spaces_inside_empty_list.expr.roc diff --git a/compiler/parse/tests/snapshots/pass/standalone_module_defs.module.result-ast b/crates/compiler/parse/tests/snapshots/pass/standalone_module_defs.module.result-ast similarity index 100% rename from compiler/parse/tests/snapshots/pass/standalone_module_defs.module.result-ast rename to crates/compiler/parse/tests/snapshots/pass/standalone_module_defs.module.result-ast diff --git a/compiler/parse/tests/snapshots/pass/standalone_module_defs.module.roc b/crates/compiler/parse/tests/snapshots/pass/standalone_module_defs.module.roc similarity index 100% rename from compiler/parse/tests/snapshots/pass/standalone_module_defs.module.roc rename to crates/compiler/parse/tests/snapshots/pass/standalone_module_defs.module.roc diff --git a/compiler/parse/tests/snapshots/pass/string_without_escape.expr.result-ast b/crates/compiler/parse/tests/snapshots/pass/string_without_escape.expr.result-ast similarity index 100% rename from compiler/parse/tests/snapshots/pass/string_without_escape.expr.result-ast rename to crates/compiler/parse/tests/snapshots/pass/string_without_escape.expr.result-ast diff --git a/compiler/parse/tests/snapshots/pass/string_without_escape.expr.roc b/crates/compiler/parse/tests/snapshots/pass/string_without_escape.expr.roc similarity index 100% rename from compiler/parse/tests/snapshots/pass/string_without_escape.expr.roc rename to crates/compiler/parse/tests/snapshots/pass/string_without_escape.expr.roc diff --git a/compiler/parse/tests/snapshots/pass/sub_var_with_spaces.expr.result-ast b/crates/compiler/parse/tests/snapshots/pass/sub_var_with_spaces.expr.result-ast similarity index 100% rename from compiler/parse/tests/snapshots/pass/sub_var_with_spaces.expr.result-ast rename to crates/compiler/parse/tests/snapshots/pass/sub_var_with_spaces.expr.result-ast diff --git a/compiler/parse/tests/snapshots/pass/sub_var_with_spaces.expr.roc b/crates/compiler/parse/tests/snapshots/pass/sub_var_with_spaces.expr.roc similarity index 100% rename from compiler/parse/tests/snapshots/pass/sub_var_with_spaces.expr.roc rename to crates/compiler/parse/tests/snapshots/pass/sub_var_with_spaces.expr.roc diff --git a/compiler/parse/tests/snapshots/pass/sub_with_spaces.expr.result-ast b/crates/compiler/parse/tests/snapshots/pass/sub_with_spaces.expr.result-ast similarity index 100% rename from compiler/parse/tests/snapshots/pass/sub_with_spaces.expr.result-ast rename to crates/compiler/parse/tests/snapshots/pass/sub_with_spaces.expr.result-ast diff --git a/compiler/parse/tests/snapshots/pass/sub_with_spaces.expr.roc b/crates/compiler/parse/tests/snapshots/pass/sub_with_spaces.expr.roc similarity index 100% rename from compiler/parse/tests/snapshots/pass/sub_with_spaces.expr.roc rename to crates/compiler/parse/tests/snapshots/pass/sub_with_spaces.expr.roc diff --git a/compiler/parse/tests/snapshots/pass/tag_pattern.expr.result-ast b/crates/compiler/parse/tests/snapshots/pass/tag_pattern.expr.result-ast similarity index 100% rename from compiler/parse/tests/snapshots/pass/tag_pattern.expr.result-ast rename to crates/compiler/parse/tests/snapshots/pass/tag_pattern.expr.result-ast diff --git a/compiler/parse/tests/snapshots/pass/tag_pattern.expr.roc b/crates/compiler/parse/tests/snapshots/pass/tag_pattern.expr.roc similarity index 100% rename from compiler/parse/tests/snapshots/pass/tag_pattern.expr.roc rename to crates/compiler/parse/tests/snapshots/pass/tag_pattern.expr.roc diff --git a/compiler/parse/tests/snapshots/pass/ten_times_eleven.expr.result-ast b/crates/compiler/parse/tests/snapshots/pass/ten_times_eleven.expr.result-ast similarity index 100% rename from compiler/parse/tests/snapshots/pass/ten_times_eleven.expr.result-ast rename to crates/compiler/parse/tests/snapshots/pass/ten_times_eleven.expr.result-ast diff --git a/compiler/parse/tests/snapshots/pass/ten_times_eleven.expr.roc b/crates/compiler/parse/tests/snapshots/pass/ten_times_eleven.expr.roc similarity index 100% rename from compiler/parse/tests/snapshots/pass/ten_times_eleven.expr.roc rename to crates/compiler/parse/tests/snapshots/pass/ten_times_eleven.expr.roc diff --git a/compiler/parse/tests/snapshots/pass/three_arg_closure.expr.result-ast b/crates/compiler/parse/tests/snapshots/pass/three_arg_closure.expr.result-ast similarity index 100% rename from compiler/parse/tests/snapshots/pass/three_arg_closure.expr.result-ast rename to crates/compiler/parse/tests/snapshots/pass/three_arg_closure.expr.result-ast diff --git a/compiler/parse/tests/snapshots/pass/three_arg_closure.expr.roc b/crates/compiler/parse/tests/snapshots/pass/three_arg_closure.expr.roc similarity index 100% rename from compiler/parse/tests/snapshots/pass/three_arg_closure.expr.roc rename to crates/compiler/parse/tests/snapshots/pass/three_arg_closure.expr.roc diff --git a/compiler/parse/tests/snapshots/pass/two_arg_closure.expr.result-ast b/crates/compiler/parse/tests/snapshots/pass/two_arg_closure.expr.result-ast similarity index 100% rename from compiler/parse/tests/snapshots/pass/two_arg_closure.expr.result-ast rename to crates/compiler/parse/tests/snapshots/pass/two_arg_closure.expr.result-ast diff --git a/compiler/parse/tests/snapshots/pass/two_arg_closure.expr.roc b/crates/compiler/parse/tests/snapshots/pass/two_arg_closure.expr.roc similarity index 100% rename from compiler/parse/tests/snapshots/pass/two_arg_closure.expr.roc rename to crates/compiler/parse/tests/snapshots/pass/two_arg_closure.expr.roc diff --git a/compiler/parse/tests/snapshots/pass/two_backpassing.expr.result-ast b/crates/compiler/parse/tests/snapshots/pass/two_backpassing.expr.result-ast similarity index 100% rename from compiler/parse/tests/snapshots/pass/two_backpassing.expr.result-ast rename to crates/compiler/parse/tests/snapshots/pass/two_backpassing.expr.result-ast diff --git a/compiler/parse/tests/snapshots/pass/two_backpassing.expr.roc b/crates/compiler/parse/tests/snapshots/pass/two_backpassing.expr.roc similarity index 100% rename from compiler/parse/tests/snapshots/pass/two_backpassing.expr.roc rename to crates/compiler/parse/tests/snapshots/pass/two_backpassing.expr.roc diff --git a/compiler/parse/tests/snapshots/pass/two_branch_when.expr.result-ast b/crates/compiler/parse/tests/snapshots/pass/two_branch_when.expr.result-ast similarity index 100% rename from compiler/parse/tests/snapshots/pass/two_branch_when.expr.result-ast rename to crates/compiler/parse/tests/snapshots/pass/two_branch_when.expr.result-ast diff --git a/compiler/parse/tests/snapshots/pass/two_branch_when.expr.roc b/crates/compiler/parse/tests/snapshots/pass/two_branch_when.expr.roc similarity index 100% rename from compiler/parse/tests/snapshots/pass/two_branch_when.expr.roc rename to crates/compiler/parse/tests/snapshots/pass/two_branch_when.expr.roc diff --git a/compiler/parse/tests/snapshots/pass/two_spaced_def.expr.result-ast b/crates/compiler/parse/tests/snapshots/pass/two_spaced_def.expr.result-ast similarity index 100% rename from compiler/parse/tests/snapshots/pass/two_spaced_def.expr.result-ast rename to crates/compiler/parse/tests/snapshots/pass/two_spaced_def.expr.result-ast diff --git a/compiler/parse/tests/snapshots/pass/two_spaced_def.expr.roc b/crates/compiler/parse/tests/snapshots/pass/two_spaced_def.expr.roc similarity index 100% rename from compiler/parse/tests/snapshots/pass/two_spaced_def.expr.roc rename to crates/compiler/parse/tests/snapshots/pass/two_spaced_def.expr.roc diff --git a/compiler/parse/tests/snapshots/pass/type_decl_with_underscore.expr.result-ast b/crates/compiler/parse/tests/snapshots/pass/type_decl_with_underscore.expr.result-ast similarity index 100% rename from compiler/parse/tests/snapshots/pass/type_decl_with_underscore.expr.result-ast rename to crates/compiler/parse/tests/snapshots/pass/type_decl_with_underscore.expr.result-ast diff --git a/compiler/parse/tests/snapshots/pass/type_decl_with_underscore.expr.roc b/crates/compiler/parse/tests/snapshots/pass/type_decl_with_underscore.expr.roc similarity index 100% rename from compiler/parse/tests/snapshots/pass/type_decl_with_underscore.expr.roc rename to crates/compiler/parse/tests/snapshots/pass/type_decl_with_underscore.expr.roc diff --git a/compiler/parse/tests/snapshots/pass/unary_negation.expr.result-ast b/crates/compiler/parse/tests/snapshots/pass/unary_negation.expr.result-ast similarity index 100% rename from compiler/parse/tests/snapshots/pass/unary_negation.expr.result-ast rename to crates/compiler/parse/tests/snapshots/pass/unary_negation.expr.result-ast diff --git a/compiler/parse/tests/snapshots/pass/unary_negation.expr.roc b/crates/compiler/parse/tests/snapshots/pass/unary_negation.expr.roc similarity index 100% rename from compiler/parse/tests/snapshots/pass/unary_negation.expr.roc rename to crates/compiler/parse/tests/snapshots/pass/unary_negation.expr.roc diff --git a/compiler/parse/tests/snapshots/pass/unary_negation_access.expr.result-ast b/crates/compiler/parse/tests/snapshots/pass/unary_negation_access.expr.result-ast similarity index 100% rename from compiler/parse/tests/snapshots/pass/unary_negation_access.expr.result-ast rename to crates/compiler/parse/tests/snapshots/pass/unary_negation_access.expr.result-ast diff --git a/compiler/parse/tests/snapshots/pass/unary_negation_access.expr.roc b/crates/compiler/parse/tests/snapshots/pass/unary_negation_access.expr.roc similarity index 100% rename from compiler/parse/tests/snapshots/pass/unary_negation_access.expr.roc rename to crates/compiler/parse/tests/snapshots/pass/unary_negation_access.expr.roc diff --git a/compiler/parse/tests/snapshots/pass/unary_negation_arg.expr.result-ast b/crates/compiler/parse/tests/snapshots/pass/unary_negation_arg.expr.result-ast similarity index 100% rename from compiler/parse/tests/snapshots/pass/unary_negation_arg.expr.result-ast rename to crates/compiler/parse/tests/snapshots/pass/unary_negation_arg.expr.result-ast diff --git a/compiler/parse/tests/snapshots/pass/unary_negation_arg.expr.roc b/crates/compiler/parse/tests/snapshots/pass/unary_negation_arg.expr.roc similarity index 100% rename from compiler/parse/tests/snapshots/pass/unary_negation_arg.expr.roc rename to crates/compiler/parse/tests/snapshots/pass/unary_negation_arg.expr.roc diff --git a/compiler/parse/tests/snapshots/pass/unary_negation_with_parens.expr.result-ast b/crates/compiler/parse/tests/snapshots/pass/unary_negation_with_parens.expr.result-ast similarity index 100% rename from compiler/parse/tests/snapshots/pass/unary_negation_with_parens.expr.result-ast rename to crates/compiler/parse/tests/snapshots/pass/unary_negation_with_parens.expr.result-ast diff --git a/compiler/parse/tests/snapshots/pass/unary_negation_with_parens.expr.roc b/crates/compiler/parse/tests/snapshots/pass/unary_negation_with_parens.expr.roc similarity index 100% rename from compiler/parse/tests/snapshots/pass/unary_negation_with_parens.expr.roc rename to crates/compiler/parse/tests/snapshots/pass/unary_negation_with_parens.expr.roc diff --git a/compiler/parse/tests/snapshots/pass/unary_not.expr.result-ast b/crates/compiler/parse/tests/snapshots/pass/unary_not.expr.result-ast similarity index 100% rename from compiler/parse/tests/snapshots/pass/unary_not.expr.result-ast rename to crates/compiler/parse/tests/snapshots/pass/unary_not.expr.result-ast diff --git a/compiler/parse/tests/snapshots/pass/unary_not.expr.roc b/crates/compiler/parse/tests/snapshots/pass/unary_not.expr.roc similarity index 100% rename from compiler/parse/tests/snapshots/pass/unary_not.expr.roc rename to crates/compiler/parse/tests/snapshots/pass/unary_not.expr.roc diff --git a/compiler/parse/tests/snapshots/pass/unary_not_with_parens.expr.result-ast b/crates/compiler/parse/tests/snapshots/pass/unary_not_with_parens.expr.result-ast similarity index 100% rename from compiler/parse/tests/snapshots/pass/unary_not_with_parens.expr.result-ast rename to crates/compiler/parse/tests/snapshots/pass/unary_not_with_parens.expr.result-ast diff --git a/compiler/parse/tests/snapshots/pass/unary_not_with_parens.expr.roc b/crates/compiler/parse/tests/snapshots/pass/unary_not_with_parens.expr.roc similarity index 100% rename from compiler/parse/tests/snapshots/pass/unary_not_with_parens.expr.roc rename to crates/compiler/parse/tests/snapshots/pass/unary_not_with_parens.expr.roc diff --git a/compiler/parse/tests/snapshots/pass/underscore_backpassing.expr.result-ast b/crates/compiler/parse/tests/snapshots/pass/underscore_backpassing.expr.result-ast similarity index 100% rename from compiler/parse/tests/snapshots/pass/underscore_backpassing.expr.result-ast rename to crates/compiler/parse/tests/snapshots/pass/underscore_backpassing.expr.result-ast diff --git a/compiler/parse/tests/snapshots/pass/underscore_backpassing.expr.roc b/crates/compiler/parse/tests/snapshots/pass/underscore_backpassing.expr.roc similarity index 100% rename from compiler/parse/tests/snapshots/pass/underscore_backpassing.expr.roc rename to crates/compiler/parse/tests/snapshots/pass/underscore_backpassing.expr.roc diff --git a/compiler/parse/tests/snapshots/pass/var_else.expr.result-ast b/crates/compiler/parse/tests/snapshots/pass/var_else.expr.result-ast similarity index 100% rename from compiler/parse/tests/snapshots/pass/var_else.expr.result-ast rename to crates/compiler/parse/tests/snapshots/pass/var_else.expr.result-ast diff --git a/compiler/parse/tests/snapshots/pass/var_else.expr.roc b/crates/compiler/parse/tests/snapshots/pass/var_else.expr.roc similarity index 100% rename from compiler/parse/tests/snapshots/pass/var_else.expr.roc rename to crates/compiler/parse/tests/snapshots/pass/var_else.expr.roc diff --git a/compiler/parse/tests/snapshots/pass/var_if.expr.result-ast b/crates/compiler/parse/tests/snapshots/pass/var_if.expr.result-ast similarity index 100% rename from compiler/parse/tests/snapshots/pass/var_if.expr.result-ast rename to crates/compiler/parse/tests/snapshots/pass/var_if.expr.result-ast diff --git a/compiler/parse/tests/snapshots/pass/var_if.expr.roc b/crates/compiler/parse/tests/snapshots/pass/var_if.expr.roc similarity index 100% rename from compiler/parse/tests/snapshots/pass/var_if.expr.roc rename to crates/compiler/parse/tests/snapshots/pass/var_if.expr.roc diff --git a/compiler/parse/tests/snapshots/pass/var_is.expr.result-ast b/crates/compiler/parse/tests/snapshots/pass/var_is.expr.result-ast similarity index 100% rename from compiler/parse/tests/snapshots/pass/var_is.expr.result-ast rename to crates/compiler/parse/tests/snapshots/pass/var_is.expr.result-ast diff --git a/compiler/parse/tests/snapshots/pass/var_is.expr.roc b/crates/compiler/parse/tests/snapshots/pass/var_is.expr.roc similarity index 100% rename from compiler/parse/tests/snapshots/pass/var_is.expr.roc rename to crates/compiler/parse/tests/snapshots/pass/var_is.expr.roc diff --git a/compiler/parse/tests/snapshots/pass/var_minus_two.expr.result-ast b/crates/compiler/parse/tests/snapshots/pass/var_minus_two.expr.result-ast similarity index 100% rename from compiler/parse/tests/snapshots/pass/var_minus_two.expr.result-ast rename to crates/compiler/parse/tests/snapshots/pass/var_minus_two.expr.result-ast diff --git a/compiler/parse/tests/snapshots/pass/var_minus_two.expr.roc b/crates/compiler/parse/tests/snapshots/pass/var_minus_two.expr.roc similarity index 100% rename from compiler/parse/tests/snapshots/pass/var_minus_two.expr.roc rename to crates/compiler/parse/tests/snapshots/pass/var_minus_two.expr.roc diff --git a/compiler/parse/tests/snapshots/pass/var_then.expr.result-ast b/crates/compiler/parse/tests/snapshots/pass/var_then.expr.result-ast similarity index 100% rename from compiler/parse/tests/snapshots/pass/var_then.expr.result-ast rename to crates/compiler/parse/tests/snapshots/pass/var_then.expr.result-ast diff --git a/compiler/parse/tests/snapshots/pass/var_then.expr.roc b/crates/compiler/parse/tests/snapshots/pass/var_then.expr.roc similarity index 100% rename from compiler/parse/tests/snapshots/pass/var_then.expr.roc rename to crates/compiler/parse/tests/snapshots/pass/var_then.expr.roc diff --git a/compiler/parse/tests/snapshots/pass/var_when.expr.result-ast b/crates/compiler/parse/tests/snapshots/pass/var_when.expr.result-ast similarity index 100% rename from compiler/parse/tests/snapshots/pass/var_when.expr.result-ast rename to crates/compiler/parse/tests/snapshots/pass/var_when.expr.result-ast diff --git a/compiler/parse/tests/snapshots/pass/var_when.expr.roc b/crates/compiler/parse/tests/snapshots/pass/var_when.expr.roc similarity index 100% rename from compiler/parse/tests/snapshots/pass/var_when.expr.roc rename to crates/compiler/parse/tests/snapshots/pass/var_when.expr.roc diff --git a/compiler/parse/tests/snapshots/pass/when_if_guard.expr.result-ast b/crates/compiler/parse/tests/snapshots/pass/when_if_guard.expr.result-ast similarity index 100% rename from compiler/parse/tests/snapshots/pass/when_if_guard.expr.result-ast rename to crates/compiler/parse/tests/snapshots/pass/when_if_guard.expr.result-ast diff --git a/compiler/parse/tests/snapshots/pass/when_if_guard.expr.roc b/crates/compiler/parse/tests/snapshots/pass/when_if_guard.expr.roc similarity index 100% rename from compiler/parse/tests/snapshots/pass/when_if_guard.expr.roc rename to crates/compiler/parse/tests/snapshots/pass/when_if_guard.expr.roc diff --git a/compiler/parse/tests/snapshots/pass/when_in_parens.expr.result-ast b/crates/compiler/parse/tests/snapshots/pass/when_in_parens.expr.result-ast similarity index 100% rename from compiler/parse/tests/snapshots/pass/when_in_parens.expr.result-ast rename to crates/compiler/parse/tests/snapshots/pass/when_in_parens.expr.result-ast diff --git a/compiler/parse/tests/snapshots/pass/when_in_parens.expr.roc b/crates/compiler/parse/tests/snapshots/pass/when_in_parens.expr.roc similarity index 100% rename from compiler/parse/tests/snapshots/pass/when_in_parens.expr.roc rename to crates/compiler/parse/tests/snapshots/pass/when_in_parens.expr.roc diff --git a/compiler/parse/tests/snapshots/pass/when_in_parens_indented.expr.result-ast b/crates/compiler/parse/tests/snapshots/pass/when_in_parens_indented.expr.result-ast similarity index 100% rename from compiler/parse/tests/snapshots/pass/when_in_parens_indented.expr.result-ast rename to crates/compiler/parse/tests/snapshots/pass/when_in_parens_indented.expr.result-ast diff --git a/compiler/parse/tests/snapshots/pass/when_in_parens_indented.expr.roc b/crates/compiler/parse/tests/snapshots/pass/when_in_parens_indented.expr.roc similarity index 100% rename from compiler/parse/tests/snapshots/pass/when_in_parens_indented.expr.roc rename to crates/compiler/parse/tests/snapshots/pass/when_in_parens_indented.expr.roc diff --git a/compiler/parse/tests/snapshots/pass/when_with_alternative_patterns.expr.result-ast b/crates/compiler/parse/tests/snapshots/pass/when_with_alternative_patterns.expr.result-ast similarity index 100% rename from compiler/parse/tests/snapshots/pass/when_with_alternative_patterns.expr.result-ast rename to crates/compiler/parse/tests/snapshots/pass/when_with_alternative_patterns.expr.result-ast diff --git a/compiler/parse/tests/snapshots/pass/when_with_alternative_patterns.expr.roc b/crates/compiler/parse/tests/snapshots/pass/when_with_alternative_patterns.expr.roc similarity index 100% rename from compiler/parse/tests/snapshots/pass/when_with_alternative_patterns.expr.roc rename to crates/compiler/parse/tests/snapshots/pass/when_with_alternative_patterns.expr.roc diff --git a/compiler/parse/tests/snapshots/pass/when_with_function_application.expr.result-ast b/crates/compiler/parse/tests/snapshots/pass/when_with_function_application.expr.result-ast similarity index 100% rename from compiler/parse/tests/snapshots/pass/when_with_function_application.expr.result-ast rename to crates/compiler/parse/tests/snapshots/pass/when_with_function_application.expr.result-ast diff --git a/compiler/parse/tests/snapshots/pass/when_with_function_application.expr.roc b/crates/compiler/parse/tests/snapshots/pass/when_with_function_application.expr.roc similarity index 100% rename from compiler/parse/tests/snapshots/pass/when_with_function_application.expr.roc rename to crates/compiler/parse/tests/snapshots/pass/when_with_function_application.expr.roc diff --git a/compiler/parse/tests/snapshots/pass/when_with_negative_numbers.expr.result-ast b/crates/compiler/parse/tests/snapshots/pass/when_with_negative_numbers.expr.result-ast similarity index 100% rename from compiler/parse/tests/snapshots/pass/when_with_negative_numbers.expr.result-ast rename to crates/compiler/parse/tests/snapshots/pass/when_with_negative_numbers.expr.result-ast diff --git a/compiler/parse/tests/snapshots/pass/when_with_negative_numbers.expr.roc b/crates/compiler/parse/tests/snapshots/pass/when_with_negative_numbers.expr.roc similarity index 100% rename from compiler/parse/tests/snapshots/pass/when_with_negative_numbers.expr.roc rename to crates/compiler/parse/tests/snapshots/pass/when_with_negative_numbers.expr.roc diff --git a/compiler/parse/tests/snapshots/pass/when_with_numbers.expr.result-ast b/crates/compiler/parse/tests/snapshots/pass/when_with_numbers.expr.result-ast similarity index 100% rename from compiler/parse/tests/snapshots/pass/when_with_numbers.expr.result-ast rename to crates/compiler/parse/tests/snapshots/pass/when_with_numbers.expr.result-ast diff --git a/compiler/parse/tests/snapshots/pass/when_with_numbers.expr.roc b/crates/compiler/parse/tests/snapshots/pass/when_with_numbers.expr.roc similarity index 100% rename from compiler/parse/tests/snapshots/pass/when_with_numbers.expr.roc rename to crates/compiler/parse/tests/snapshots/pass/when_with_numbers.expr.roc diff --git a/compiler/parse/tests/snapshots/pass/when_with_records.expr.result-ast b/crates/compiler/parse/tests/snapshots/pass/when_with_records.expr.result-ast similarity index 100% rename from compiler/parse/tests/snapshots/pass/when_with_records.expr.result-ast rename to crates/compiler/parse/tests/snapshots/pass/when_with_records.expr.result-ast diff --git a/compiler/parse/tests/snapshots/pass/when_with_records.expr.roc b/crates/compiler/parse/tests/snapshots/pass/when_with_records.expr.roc similarity index 100% rename from compiler/parse/tests/snapshots/pass/when_with_records.expr.roc rename to crates/compiler/parse/tests/snapshots/pass/when_with_records.expr.roc diff --git a/compiler/parse/tests/snapshots/pass/where_clause_function.expr.result-ast b/crates/compiler/parse/tests/snapshots/pass/where_clause_function.expr.result-ast similarity index 100% rename from compiler/parse/tests/snapshots/pass/where_clause_function.expr.result-ast rename to crates/compiler/parse/tests/snapshots/pass/where_clause_function.expr.result-ast diff --git a/compiler/parse/tests/snapshots/pass/where_clause_function.expr.roc b/crates/compiler/parse/tests/snapshots/pass/where_clause_function.expr.roc similarity index 100% rename from compiler/parse/tests/snapshots/pass/where_clause_function.expr.roc rename to crates/compiler/parse/tests/snapshots/pass/where_clause_function.expr.roc diff --git a/compiler/parse/tests/snapshots/pass/where_clause_multiple_has.expr.result-ast b/crates/compiler/parse/tests/snapshots/pass/where_clause_multiple_has.expr.result-ast similarity index 100% rename from compiler/parse/tests/snapshots/pass/where_clause_multiple_has.expr.result-ast rename to crates/compiler/parse/tests/snapshots/pass/where_clause_multiple_has.expr.result-ast diff --git a/compiler/parse/tests/snapshots/pass/where_clause_multiple_has.expr.roc b/crates/compiler/parse/tests/snapshots/pass/where_clause_multiple_has.expr.roc similarity index 100% rename from compiler/parse/tests/snapshots/pass/where_clause_multiple_has.expr.roc rename to crates/compiler/parse/tests/snapshots/pass/where_clause_multiple_has.expr.roc diff --git a/compiler/parse/tests/snapshots/pass/where_clause_multiple_has_across_newlines.expr.result-ast b/crates/compiler/parse/tests/snapshots/pass/where_clause_multiple_has_across_newlines.expr.result-ast similarity index 100% rename from compiler/parse/tests/snapshots/pass/where_clause_multiple_has_across_newlines.expr.result-ast rename to crates/compiler/parse/tests/snapshots/pass/where_clause_multiple_has_across_newlines.expr.result-ast diff --git a/compiler/parse/tests/snapshots/pass/where_clause_multiple_has_across_newlines.expr.roc b/crates/compiler/parse/tests/snapshots/pass/where_clause_multiple_has_across_newlines.expr.roc similarity index 100% rename from compiler/parse/tests/snapshots/pass/where_clause_multiple_has_across_newlines.expr.roc rename to crates/compiler/parse/tests/snapshots/pass/where_clause_multiple_has_across_newlines.expr.roc diff --git a/compiler/parse/tests/snapshots/pass/where_clause_non_function.expr.result-ast b/crates/compiler/parse/tests/snapshots/pass/where_clause_non_function.expr.result-ast similarity index 100% rename from compiler/parse/tests/snapshots/pass/where_clause_non_function.expr.result-ast rename to crates/compiler/parse/tests/snapshots/pass/where_clause_non_function.expr.result-ast diff --git a/compiler/parse/tests/snapshots/pass/where_clause_non_function.expr.roc b/crates/compiler/parse/tests/snapshots/pass/where_clause_non_function.expr.roc similarity index 100% rename from compiler/parse/tests/snapshots/pass/where_clause_non_function.expr.roc rename to crates/compiler/parse/tests/snapshots/pass/where_clause_non_function.expr.roc diff --git a/compiler/parse/tests/snapshots/pass/where_clause_on_newline.expr.result-ast b/crates/compiler/parse/tests/snapshots/pass/where_clause_on_newline.expr.result-ast similarity index 100% rename from compiler/parse/tests/snapshots/pass/where_clause_on_newline.expr.result-ast rename to crates/compiler/parse/tests/snapshots/pass/where_clause_on_newline.expr.result-ast diff --git a/compiler/parse/tests/snapshots/pass/where_clause_on_newline.expr.roc b/crates/compiler/parse/tests/snapshots/pass/where_clause_on_newline.expr.roc similarity index 100% rename from compiler/parse/tests/snapshots/pass/where_clause_on_newline.expr.roc rename to crates/compiler/parse/tests/snapshots/pass/where_clause_on_newline.expr.roc diff --git a/compiler/parse/tests/snapshots/pass/zero_float.expr.result-ast b/crates/compiler/parse/tests/snapshots/pass/zero_float.expr.result-ast similarity index 100% rename from compiler/parse/tests/snapshots/pass/zero_float.expr.result-ast rename to crates/compiler/parse/tests/snapshots/pass/zero_float.expr.result-ast diff --git a/compiler/parse/tests/snapshots/pass/zero_float.expr.roc b/crates/compiler/parse/tests/snapshots/pass/zero_float.expr.roc similarity index 100% rename from compiler/parse/tests/snapshots/pass/zero_float.expr.roc rename to crates/compiler/parse/tests/snapshots/pass/zero_float.expr.roc diff --git a/compiler/parse/tests/snapshots/pass/zero_int.expr.result-ast b/crates/compiler/parse/tests/snapshots/pass/zero_int.expr.result-ast similarity index 100% rename from compiler/parse/tests/snapshots/pass/zero_int.expr.result-ast rename to crates/compiler/parse/tests/snapshots/pass/zero_int.expr.result-ast diff --git a/compiler/parse/tests/snapshots/pass/zero_int.expr.roc b/crates/compiler/parse/tests/snapshots/pass/zero_int.expr.roc similarity index 100% rename from compiler/parse/tests/snapshots/pass/zero_int.expr.roc rename to crates/compiler/parse/tests/snapshots/pass/zero_int.expr.roc diff --git a/compiler/parse/tests/test_parse.rs b/crates/compiler/parse/tests/test_parse.rs similarity index 100% rename from compiler/parse/tests/test_parse.rs rename to crates/compiler/parse/tests/test_parse.rs diff --git a/compiler/problem/Cargo.toml b/crates/compiler/problem/Cargo.toml similarity index 100% rename from compiler/problem/Cargo.toml rename to crates/compiler/problem/Cargo.toml diff --git a/compiler/problem/src/can.rs b/crates/compiler/problem/src/can.rs similarity index 100% rename from compiler/problem/src/can.rs rename to crates/compiler/problem/src/can.rs diff --git a/compiler/problem/src/lib.rs b/crates/compiler/problem/src/lib.rs similarity index 100% rename from compiler/problem/src/lib.rs rename to crates/compiler/problem/src/lib.rs diff --git a/compiler/region/Cargo.toml b/crates/compiler/region/Cargo.toml similarity index 100% rename from compiler/region/Cargo.toml rename to crates/compiler/region/Cargo.toml diff --git a/compiler/region/src/all.rs b/crates/compiler/region/src/all.rs similarity index 100% rename from compiler/region/src/all.rs rename to crates/compiler/region/src/all.rs diff --git a/compiler/region/src/lib.rs b/crates/compiler/region/src/lib.rs similarity index 100% rename from compiler/region/src/lib.rs rename to crates/compiler/region/src/lib.rs diff --git a/compiler/roc_target/Cargo.toml b/crates/compiler/roc_target/Cargo.toml similarity index 100% rename from compiler/roc_target/Cargo.toml rename to crates/compiler/roc_target/Cargo.toml diff --git a/compiler/roc_target/src/lib.rs b/crates/compiler/roc_target/src/lib.rs similarity index 100% rename from compiler/roc_target/src/lib.rs rename to crates/compiler/roc_target/src/lib.rs diff --git a/compiler/solve/Cargo.toml b/crates/compiler/solve/Cargo.toml similarity index 100% rename from compiler/solve/Cargo.toml rename to crates/compiler/solve/Cargo.toml diff --git a/compiler/solve/src/ability.rs b/crates/compiler/solve/src/ability.rs similarity index 100% rename from compiler/solve/src/ability.rs rename to crates/compiler/solve/src/ability.rs diff --git a/compiler/solve/src/lib.rs b/crates/compiler/solve/src/lib.rs similarity index 100% rename from compiler/solve/src/lib.rs rename to crates/compiler/solve/src/lib.rs diff --git a/compiler/solve/src/module.rs b/crates/compiler/solve/src/module.rs similarity index 100% rename from compiler/solve/src/module.rs rename to crates/compiler/solve/src/module.rs diff --git a/compiler/solve/src/solve.rs b/crates/compiler/solve/src/solve.rs similarity index 100% rename from compiler/solve/src/solve.rs rename to crates/compiler/solve/src/solve.rs diff --git a/compiler/solve/tests/helpers/mod.rs b/crates/compiler/solve/tests/helpers/mod.rs similarity index 100% rename from compiler/solve/tests/helpers/mod.rs rename to crates/compiler/solve/tests/helpers/mod.rs diff --git a/compiler/solve/tests/solve_expr.rs b/crates/compiler/solve/tests/solve_expr.rs similarity index 100% rename from compiler/solve/tests/solve_expr.rs rename to crates/compiler/solve/tests/solve_expr.rs diff --git a/compiler/str/Cargo.toml b/crates/compiler/str/Cargo.toml similarity index 100% rename from compiler/str/Cargo.toml rename to crates/compiler/str/Cargo.toml diff --git a/compiler/str/README.md b/crates/compiler/str/README.md similarity index 100% rename from compiler/str/README.md rename to crates/compiler/str/README.md diff --git a/compiler/str/src/lib.rs b/crates/compiler/str/src/lib.rs similarity index 100% rename from compiler/str/src/lib.rs rename to crates/compiler/str/src/lib.rs diff --git a/compiler/test_derive/Cargo.toml b/crates/compiler/test_derive/Cargo.toml similarity index 100% rename from compiler/test_derive/Cargo.toml rename to crates/compiler/test_derive/Cargo.toml diff --git a/compiler/test_derive/src/encoding.rs b/crates/compiler/test_derive/src/encoding.rs similarity index 100% rename from compiler/test_derive/src/encoding.rs rename to crates/compiler/test_derive/src/encoding.rs diff --git a/compiler/test_derive/src/pretty_print.rs b/crates/compiler/test_derive/src/pretty_print.rs similarity index 100% rename from compiler/test_derive/src/pretty_print.rs rename to crates/compiler/test_derive/src/pretty_print.rs diff --git a/compiler/test_derive/src/tests.rs b/crates/compiler/test_derive/src/tests.rs similarity index 100% rename from compiler/test_derive/src/tests.rs rename to crates/compiler/test_derive/src/tests.rs diff --git a/compiler/test_gen/.gitignore b/crates/compiler/test_gen/.gitignore similarity index 100% rename from compiler/test_gen/.gitignore rename to crates/compiler/test_gen/.gitignore diff --git a/compiler/test_gen/Cargo.toml b/crates/compiler/test_gen/Cargo.toml similarity index 100% rename from compiler/test_gen/Cargo.toml rename to crates/compiler/test_gen/Cargo.toml diff --git a/compiler/test_gen/README.md b/crates/compiler/test_gen/README.md similarity index 100% rename from compiler/test_gen/README.md rename to crates/compiler/test_gen/README.md diff --git a/compiler/test_gen/build.rs b/crates/compiler/test_gen/build.rs similarity index 100% rename from compiler/test_gen/build.rs rename to crates/compiler/test_gen/build.rs diff --git a/compiler/test_gen/src/gen_abilities.rs b/crates/compiler/test_gen/src/gen_abilities.rs similarity index 100% rename from compiler/test_gen/src/gen_abilities.rs rename to crates/compiler/test_gen/src/gen_abilities.rs diff --git a/compiler/test_gen/src/gen_compare.rs b/crates/compiler/test_gen/src/gen_compare.rs similarity index 100% rename from compiler/test_gen/src/gen_compare.rs rename to crates/compiler/test_gen/src/gen_compare.rs diff --git a/compiler/test_gen/src/gen_dict.rs b/crates/compiler/test_gen/src/gen_dict.rs similarity index 100% rename from compiler/test_gen/src/gen_dict.rs rename to crates/compiler/test_gen/src/gen_dict.rs diff --git a/compiler/test_gen/src/gen_list.rs b/crates/compiler/test_gen/src/gen_list.rs similarity index 100% rename from compiler/test_gen/src/gen_list.rs rename to crates/compiler/test_gen/src/gen_list.rs diff --git a/compiler/test_gen/src/gen_num.rs b/crates/compiler/test_gen/src/gen_num.rs similarity index 100% rename from compiler/test_gen/src/gen_num.rs rename to crates/compiler/test_gen/src/gen_num.rs diff --git a/compiler/test_gen/src/gen_primitives.rs b/crates/compiler/test_gen/src/gen_primitives.rs similarity index 100% rename from compiler/test_gen/src/gen_primitives.rs rename to crates/compiler/test_gen/src/gen_primitives.rs diff --git a/compiler/test_gen/src/gen_records.rs b/crates/compiler/test_gen/src/gen_records.rs similarity index 100% rename from compiler/test_gen/src/gen_records.rs rename to crates/compiler/test_gen/src/gen_records.rs diff --git a/compiler/test_gen/src/gen_refcount.rs b/crates/compiler/test_gen/src/gen_refcount.rs similarity index 100% rename from compiler/test_gen/src/gen_refcount.rs rename to crates/compiler/test_gen/src/gen_refcount.rs diff --git a/compiler/test_gen/src/gen_result.rs b/crates/compiler/test_gen/src/gen_result.rs similarity index 100% rename from compiler/test_gen/src/gen_result.rs rename to crates/compiler/test_gen/src/gen_result.rs diff --git a/compiler/test_gen/src/gen_set.rs b/crates/compiler/test_gen/src/gen_set.rs similarity index 100% rename from compiler/test_gen/src/gen_set.rs rename to crates/compiler/test_gen/src/gen_set.rs diff --git a/compiler/test_gen/src/gen_str.rs b/crates/compiler/test_gen/src/gen_str.rs similarity index 100% rename from compiler/test_gen/src/gen_str.rs rename to crates/compiler/test_gen/src/gen_str.rs diff --git a/compiler/test_gen/src/gen_tags.rs b/crates/compiler/test_gen/src/gen_tags.rs similarity index 100% rename from compiler/test_gen/src/gen_tags.rs rename to crates/compiler/test_gen/src/gen_tags.rs diff --git a/compiler/test_gen/src/helpers/debug-wasm-test.html b/crates/compiler/test_gen/src/helpers/debug-wasm-test.html similarity index 100% rename from compiler/test_gen/src/helpers/debug-wasm-test.html rename to crates/compiler/test_gen/src/helpers/debug-wasm-test.html diff --git a/compiler/test_gen/src/helpers/dev.rs b/crates/compiler/test_gen/src/helpers/dev.rs similarity index 100% rename from compiler/test_gen/src/helpers/dev.rs rename to crates/compiler/test_gen/src/helpers/dev.rs diff --git a/compiler/test_gen/src/helpers/from_wasmer_memory.rs b/crates/compiler/test_gen/src/helpers/from_wasmer_memory.rs similarity index 100% rename from compiler/test_gen/src/helpers/from_wasmer_memory.rs rename to crates/compiler/test_gen/src/helpers/from_wasmer_memory.rs diff --git a/compiler/test_gen/src/helpers/llvm.rs b/crates/compiler/test_gen/src/helpers/llvm.rs similarity index 100% rename from compiler/test_gen/src/helpers/llvm.rs rename to crates/compiler/test_gen/src/helpers/llvm.rs diff --git a/compiler/test_gen/src/helpers/mod.rs b/crates/compiler/test_gen/src/helpers/mod.rs similarity index 100% rename from compiler/test_gen/src/helpers/mod.rs rename to crates/compiler/test_gen/src/helpers/mod.rs diff --git a/compiler/test_gen/src/helpers/wasm.rs b/crates/compiler/test_gen/src/helpers/wasm.rs similarity index 100% rename from compiler/test_gen/src/helpers/wasm.rs rename to crates/compiler/test_gen/src/helpers/wasm.rs diff --git a/compiler/test_gen/src/helpers/wasm_linking_host_imports.zig b/crates/compiler/test_gen/src/helpers/wasm_linking_host_imports.zig similarity index 100% rename from compiler/test_gen/src/helpers/wasm_linking_host_imports.zig rename to crates/compiler/test_gen/src/helpers/wasm_linking_host_imports.zig diff --git a/compiler/test_gen/src/helpers/wasm_linking_test_host.zig b/crates/compiler/test_gen/src/helpers/wasm_linking_test_host.zig similarity index 100% rename from compiler/test_gen/src/helpers/wasm_linking_test_host.zig rename to crates/compiler/test_gen/src/helpers/wasm_linking_test_host.zig diff --git a/compiler/test_gen/src/helpers/wasm_test_platform.c b/crates/compiler/test_gen/src/helpers/wasm_test_platform.c similarity index 100% rename from compiler/test_gen/src/helpers/wasm_test_platform.c rename to crates/compiler/test_gen/src/helpers/wasm_test_platform.c diff --git a/compiler/test_gen/src/tests.rs b/crates/compiler/test_gen/src/tests.rs similarity index 100% rename from compiler/test_gen/src/tests.rs rename to crates/compiler/test_gen/src/tests.rs diff --git a/compiler/test_gen/src/wasm_linking.rs b/crates/compiler/test_gen/src/wasm_linking.rs similarity index 100% rename from compiler/test_gen/src/wasm_linking.rs rename to crates/compiler/test_gen/src/wasm_linking.rs diff --git a/compiler/test_gen/src/wasm_str.rs b/crates/compiler/test_gen/src/wasm_str.rs similarity index 100% rename from compiler/test_gen/src/wasm_str.rs rename to crates/compiler/test_gen/src/wasm_str.rs diff --git a/compiler/test_mono/Cargo.toml b/crates/compiler/test_mono/Cargo.toml similarity index 100% rename from compiler/test_mono/Cargo.toml rename to crates/compiler/test_mono/Cargo.toml diff --git a/compiler/test_mono/generated/alias_variable.txt b/crates/compiler/test_mono/generated/alias_variable.txt similarity index 100% rename from compiler/test_mono/generated/alias_variable.txt rename to crates/compiler/test_mono/generated/alias_variable.txt diff --git a/compiler/test_mono/generated/alias_variable_and_return_it.txt b/crates/compiler/test_mono/generated/alias_variable_and_return_it.txt similarity index 100% rename from compiler/test_mono/generated/alias_variable_and_return_it.txt rename to crates/compiler/test_mono/generated/alias_variable_and_return_it.txt diff --git a/compiler/test_mono/generated/aliased_polymorphic_closure.txt b/crates/compiler/test_mono/generated/aliased_polymorphic_closure.txt similarity index 100% rename from compiler/test_mono/generated/aliased_polymorphic_closure.txt rename to crates/compiler/test_mono/generated/aliased_polymorphic_closure.txt diff --git a/compiler/test_mono/generated/branch_store_variable.txt b/crates/compiler/test_mono/generated/branch_store_variable.txt similarity index 100% rename from compiler/test_mono/generated/branch_store_variable.txt rename to crates/compiler/test_mono/generated/branch_store_variable.txt diff --git a/compiler/test_mono/generated/closure_in_list.txt b/crates/compiler/test_mono/generated/closure_in_list.txt similarity index 100% rename from compiler/test_mono/generated/closure_in_list.txt rename to crates/compiler/test_mono/generated/closure_in_list.txt diff --git a/compiler/test_mono/generated/dict.txt b/crates/compiler/test_mono/generated/dict.txt similarity index 100% rename from compiler/test_mono/generated/dict.txt rename to crates/compiler/test_mono/generated/dict.txt diff --git a/compiler/test_mono/generated/empty_list_of_function_type.txt b/crates/compiler/test_mono/generated/empty_list_of_function_type.txt similarity index 100% rename from compiler/test_mono/generated/empty_list_of_function_type.txt rename to crates/compiler/test_mono/generated/empty_list_of_function_type.txt diff --git a/compiler/test_mono/generated/encode.txt b/crates/compiler/test_mono/generated/encode.txt similarity index 100% rename from compiler/test_mono/generated/encode.txt rename to crates/compiler/test_mono/generated/encode.txt diff --git a/compiler/test_mono/generated/encode_custom_type.txt b/crates/compiler/test_mono/generated/encode_custom_type.txt similarity index 100% rename from compiler/test_mono/generated/encode_custom_type.txt rename to crates/compiler/test_mono/generated/encode_custom_type.txt diff --git a/compiler/test_mono/generated/factorial.txt b/crates/compiler/test_mono/generated/factorial.txt similarity index 100% rename from compiler/test_mono/generated/factorial.txt rename to crates/compiler/test_mono/generated/factorial.txt diff --git a/compiler/test_mono/generated/fst.txt b/crates/compiler/test_mono/generated/fst.txt similarity index 100% rename from compiler/test_mono/generated/fst.txt rename to crates/compiler/test_mono/generated/fst.txt diff --git a/compiler/test_mono/generated/guard_pattern_true.txt b/crates/compiler/test_mono/generated/guard_pattern_true.txt similarity index 100% rename from compiler/test_mono/generated/guard_pattern_true.txt rename to crates/compiler/test_mono/generated/guard_pattern_true.txt diff --git a/compiler/test_mono/generated/has_none.txt b/crates/compiler/test_mono/generated/has_none.txt similarity index 100% rename from compiler/test_mono/generated/has_none.txt rename to crates/compiler/test_mono/generated/has_none.txt diff --git a/compiler/test_mono/generated/if_guard_bind_variable_false.txt b/crates/compiler/test_mono/generated/if_guard_bind_variable_false.txt similarity index 100% rename from compiler/test_mono/generated/if_guard_bind_variable_false.txt rename to crates/compiler/test_mono/generated/if_guard_bind_variable_false.txt diff --git a/compiler/test_mono/generated/if_multi_branch.txt b/crates/compiler/test_mono/generated/if_multi_branch.txt similarity index 100% rename from compiler/test_mono/generated/if_multi_branch.txt rename to crates/compiler/test_mono/generated/if_multi_branch.txt diff --git a/compiler/test_mono/generated/ir_assignment.txt b/crates/compiler/test_mono/generated/ir_assignment.txt similarity index 100% rename from compiler/test_mono/generated/ir_assignment.txt rename to crates/compiler/test_mono/generated/ir_assignment.txt diff --git a/compiler/test_mono/generated/ir_int_add.txt b/crates/compiler/test_mono/generated/ir_int_add.txt similarity index 100% rename from compiler/test_mono/generated/ir_int_add.txt rename to crates/compiler/test_mono/generated/ir_int_add.txt diff --git a/compiler/test_mono/generated/ir_int_literal.txt b/crates/compiler/test_mono/generated/ir_int_literal.txt similarity index 100% rename from compiler/test_mono/generated/ir_int_literal.txt rename to crates/compiler/test_mono/generated/ir_int_literal.txt diff --git a/compiler/test_mono/generated/ir_plus.txt b/crates/compiler/test_mono/generated/ir_plus.txt similarity index 100% rename from compiler/test_mono/generated/ir_plus.txt rename to crates/compiler/test_mono/generated/ir_plus.txt diff --git a/compiler/test_mono/generated/ir_round.txt b/crates/compiler/test_mono/generated/ir_round.txt similarity index 100% rename from compiler/test_mono/generated/ir_round.txt rename to crates/compiler/test_mono/generated/ir_round.txt diff --git a/compiler/test_mono/generated/ir_two_defs.txt b/crates/compiler/test_mono/generated/ir_two_defs.txt similarity index 100% rename from compiler/test_mono/generated/ir_two_defs.txt rename to crates/compiler/test_mono/generated/ir_two_defs.txt diff --git a/compiler/test_mono/generated/ir_when_idiv.txt b/crates/compiler/test_mono/generated/ir_when_idiv.txt similarity index 100% rename from compiler/test_mono/generated/ir_when_idiv.txt rename to crates/compiler/test_mono/generated/ir_when_idiv.txt diff --git a/compiler/test_mono/generated/ir_when_just.txt b/crates/compiler/test_mono/generated/ir_when_just.txt similarity index 100% rename from compiler/test_mono/generated/ir_when_just.txt rename to crates/compiler/test_mono/generated/ir_when_just.txt diff --git a/compiler/test_mono/generated/ir_when_maybe.txt b/crates/compiler/test_mono/generated/ir_when_maybe.txt similarity index 100% rename from compiler/test_mono/generated/ir_when_maybe.txt rename to crates/compiler/test_mono/generated/ir_when_maybe.txt diff --git a/compiler/test_mono/generated/ir_when_record.txt b/crates/compiler/test_mono/generated/ir_when_record.txt similarity index 100% rename from compiler/test_mono/generated/ir_when_record.txt rename to crates/compiler/test_mono/generated/ir_when_record.txt diff --git a/compiler/test_mono/generated/ir_when_these.txt b/crates/compiler/test_mono/generated/ir_when_these.txt similarity index 100% rename from compiler/test_mono/generated/ir_when_these.txt rename to crates/compiler/test_mono/generated/ir_when_these.txt diff --git a/compiler/test_mono/generated/is_nil.txt b/crates/compiler/test_mono/generated/is_nil.txt similarity index 100% rename from compiler/test_mono/generated/is_nil.txt rename to crates/compiler/test_mono/generated/is_nil.txt diff --git a/compiler/test_mono/generated/issue_2535_polymorphic_fields_referenced_in_list.txt b/crates/compiler/test_mono/generated/issue_2535_polymorphic_fields_referenced_in_list.txt similarity index 100% rename from compiler/test_mono/generated/issue_2535_polymorphic_fields_referenced_in_list.txt rename to crates/compiler/test_mono/generated/issue_2535_polymorphic_fields_referenced_in_list.txt diff --git a/compiler/test_mono/generated/issue_2583_specialize_errors_behind_unified_branches.txt b/crates/compiler/test_mono/generated/issue_2583_specialize_errors_behind_unified_branches.txt similarity index 100% rename from compiler/test_mono/generated/issue_2583_specialize_errors_behind_unified_branches.txt rename to crates/compiler/test_mono/generated/issue_2583_specialize_errors_behind_unified_branches.txt diff --git a/compiler/test_mono/generated/issue_2725_alias_polymorphic_lambda.txt b/crates/compiler/test_mono/generated/issue_2725_alias_polymorphic_lambda.txt similarity index 100% rename from compiler/test_mono/generated/issue_2725_alias_polymorphic_lambda.txt rename to crates/compiler/test_mono/generated/issue_2725_alias_polymorphic_lambda.txt diff --git a/compiler/test_mono/generated/issue_2810.txt b/crates/compiler/test_mono/generated/issue_2810.txt similarity index 100% rename from compiler/test_mono/generated/issue_2810.txt rename to crates/compiler/test_mono/generated/issue_2810.txt diff --git a/compiler/test_mono/generated/issue_2811.txt b/crates/compiler/test_mono/generated/issue_2811.txt similarity index 100% rename from compiler/test_mono/generated/issue_2811.txt rename to crates/compiler/test_mono/generated/issue_2811.txt diff --git a/compiler/test_mono/generated/let_with_record_pattern.txt b/crates/compiler/test_mono/generated/let_with_record_pattern.txt similarity index 100% rename from compiler/test_mono/generated/let_with_record_pattern.txt rename to crates/compiler/test_mono/generated/let_with_record_pattern.txt diff --git a/compiler/test_mono/generated/let_with_record_pattern_list.txt b/crates/compiler/test_mono/generated/let_with_record_pattern_list.txt similarity index 100% rename from compiler/test_mono/generated/let_with_record_pattern_list.txt rename to crates/compiler/test_mono/generated/let_with_record_pattern_list.txt diff --git a/compiler/test_mono/generated/let_x_in_x.txt b/crates/compiler/test_mono/generated/let_x_in_x.txt similarity index 100% rename from compiler/test_mono/generated/let_x_in_x.txt rename to crates/compiler/test_mono/generated/let_x_in_x.txt diff --git a/compiler/test_mono/generated/let_x_in_x_indirect.txt b/crates/compiler/test_mono/generated/let_x_in_x_indirect.txt similarity index 100% rename from compiler/test_mono/generated/let_x_in_x_indirect.txt rename to crates/compiler/test_mono/generated/let_x_in_x_indirect.txt diff --git a/compiler/test_mono/generated/linked_list_length_twice.txt b/crates/compiler/test_mono/generated/linked_list_length_twice.txt similarity index 100% rename from compiler/test_mono/generated/linked_list_length_twice.txt rename to crates/compiler/test_mono/generated/linked_list_length_twice.txt diff --git a/compiler/test_mono/generated/list_append.txt b/crates/compiler/test_mono/generated/list_append.txt similarity index 100% rename from compiler/test_mono/generated/list_append.txt rename to crates/compiler/test_mono/generated/list_append.txt diff --git a/compiler/test_mono/generated/list_append_closure.txt b/crates/compiler/test_mono/generated/list_append_closure.txt similarity index 100% rename from compiler/test_mono/generated/list_append_closure.txt rename to crates/compiler/test_mono/generated/list_append_closure.txt diff --git a/compiler/test_mono/generated/list_cannot_update_inplace.txt b/crates/compiler/test_mono/generated/list_cannot_update_inplace.txt similarity index 100% rename from compiler/test_mono/generated/list_cannot_update_inplace.txt rename to crates/compiler/test_mono/generated/list_cannot_update_inplace.txt diff --git a/compiler/test_mono/generated/list_get.txt b/crates/compiler/test_mono/generated/list_get.txt similarity index 100% rename from compiler/test_mono/generated/list_get.txt rename to crates/compiler/test_mono/generated/list_get.txt diff --git a/compiler/test_mono/generated/list_len.txt b/crates/compiler/test_mono/generated/list_len.txt similarity index 100% rename from compiler/test_mono/generated/list_len.txt rename to crates/compiler/test_mono/generated/list_len.txt diff --git a/compiler/test_mono/generated/list_map_closure_borrows.txt b/crates/compiler/test_mono/generated/list_map_closure_borrows.txt similarity index 100% rename from compiler/test_mono/generated/list_map_closure_borrows.txt rename to crates/compiler/test_mono/generated/list_map_closure_borrows.txt diff --git a/compiler/test_mono/generated/list_map_closure_owns.txt b/crates/compiler/test_mono/generated/list_map_closure_owns.txt similarity index 100% rename from compiler/test_mono/generated/list_map_closure_owns.txt rename to crates/compiler/test_mono/generated/list_map_closure_owns.txt diff --git a/compiler/test_mono/generated/list_pass_to_function.txt b/crates/compiler/test_mono/generated/list_pass_to_function.txt similarity index 100% rename from compiler/test_mono/generated/list_pass_to_function.txt rename to crates/compiler/test_mono/generated/list_pass_to_function.txt diff --git a/compiler/test_mono/generated/list_sort_asc.txt b/crates/compiler/test_mono/generated/list_sort_asc.txt similarity index 100% rename from compiler/test_mono/generated/list_sort_asc.txt rename to crates/compiler/test_mono/generated/list_sort_asc.txt diff --git a/compiler/test_mono/generated/mk_pair_of.txt b/crates/compiler/test_mono/generated/mk_pair_of.txt similarity index 100% rename from compiler/test_mono/generated/mk_pair_of.txt rename to crates/compiler/test_mono/generated/mk_pair_of.txt diff --git a/compiler/test_mono/generated/monomorphized_applied_tag.txt b/crates/compiler/test_mono/generated/monomorphized_applied_tag.txt similarity index 100% rename from compiler/test_mono/generated/monomorphized_applied_tag.txt rename to crates/compiler/test_mono/generated/monomorphized_applied_tag.txt diff --git a/compiler/test_mono/generated/monomorphized_floats.txt b/crates/compiler/test_mono/generated/monomorphized_floats.txt similarity index 100% rename from compiler/test_mono/generated/monomorphized_floats.txt rename to crates/compiler/test_mono/generated/monomorphized_floats.txt diff --git a/compiler/test_mono/generated/monomorphized_ints.txt b/crates/compiler/test_mono/generated/monomorphized_ints.txt similarity index 100% rename from compiler/test_mono/generated/monomorphized_ints.txt rename to crates/compiler/test_mono/generated/monomorphized_ints.txt diff --git a/compiler/test_mono/generated/monomorphized_ints_aliased.txt b/crates/compiler/test_mono/generated/monomorphized_ints_aliased.txt similarity index 100% rename from compiler/test_mono/generated/monomorphized_ints_aliased.txt rename to crates/compiler/test_mono/generated/monomorphized_ints_aliased.txt diff --git a/compiler/test_mono/generated/monomorphized_list.txt b/crates/compiler/test_mono/generated/monomorphized_list.txt similarity index 100% rename from compiler/test_mono/generated/monomorphized_list.txt rename to crates/compiler/test_mono/generated/monomorphized_list.txt diff --git a/compiler/test_mono/generated/monomorphized_tag.txt b/crates/compiler/test_mono/generated/monomorphized_tag.txt similarity index 100% rename from compiler/test_mono/generated/monomorphized_tag.txt rename to crates/compiler/test_mono/generated/monomorphized_tag.txt diff --git a/compiler/test_mono/generated/monomorphized_tag_with_aliased_args.txt b/crates/compiler/test_mono/generated/monomorphized_tag_with_aliased_args.txt similarity index 100% rename from compiler/test_mono/generated/monomorphized_tag_with_aliased_args.txt rename to crates/compiler/test_mono/generated/monomorphized_tag_with_aliased_args.txt diff --git a/compiler/test_mono/generated/nested_closure.txt b/crates/compiler/test_mono/generated/nested_closure.txt similarity index 100% rename from compiler/test_mono/generated/nested_closure.txt rename to crates/compiler/test_mono/generated/nested_closure.txt diff --git a/compiler/test_mono/generated/nested_pattern_match.txt b/crates/compiler/test_mono/generated/nested_pattern_match.txt similarity index 100% rename from compiler/test_mono/generated/nested_pattern_match.txt rename to crates/compiler/test_mono/generated/nested_pattern_match.txt diff --git a/compiler/test_mono/generated/one_element_tag.txt b/crates/compiler/test_mono/generated/one_element_tag.txt similarity index 100% rename from compiler/test_mono/generated/one_element_tag.txt rename to crates/compiler/test_mono/generated/one_element_tag.txt diff --git a/compiler/test_mono/generated/opaque_assign_to_symbol.txt b/crates/compiler/test_mono/generated/opaque_assign_to_symbol.txt similarity index 100% rename from compiler/test_mono/generated/opaque_assign_to_symbol.txt rename to crates/compiler/test_mono/generated/opaque_assign_to_symbol.txt diff --git a/compiler/test_mono/generated/optional_when.txt b/crates/compiler/test_mono/generated/optional_when.txt similarity index 100% rename from compiler/test_mono/generated/optional_when.txt rename to crates/compiler/test_mono/generated/optional_when.txt diff --git a/compiler/test_mono/generated/peano.txt b/crates/compiler/test_mono/generated/peano.txt similarity index 100% rename from compiler/test_mono/generated/peano.txt rename to crates/compiler/test_mono/generated/peano.txt diff --git a/compiler/test_mono/generated/peano1.txt b/crates/compiler/test_mono/generated/peano1.txt similarity index 100% rename from compiler/test_mono/generated/peano1.txt rename to crates/compiler/test_mono/generated/peano1.txt diff --git a/compiler/test_mono/generated/peano2.txt b/crates/compiler/test_mono/generated/peano2.txt similarity index 100% rename from compiler/test_mono/generated/peano2.txt rename to crates/compiler/test_mono/generated/peano2.txt diff --git a/compiler/test_mono/generated/quicksort_help.txt b/crates/compiler/test_mono/generated/quicksort_help.txt similarity index 100% rename from compiler/test_mono/generated/quicksort_help.txt rename to crates/compiler/test_mono/generated/quicksort_help.txt diff --git a/compiler/test_mono/generated/quicksort_swap.txt b/crates/compiler/test_mono/generated/quicksort_swap.txt similarity index 100% rename from compiler/test_mono/generated/quicksort_swap.txt rename to crates/compiler/test_mono/generated/quicksort_swap.txt diff --git a/compiler/test_mono/generated/record_optional_field_function_no_use_default.txt b/crates/compiler/test_mono/generated/record_optional_field_function_no_use_default.txt similarity index 100% rename from compiler/test_mono/generated/record_optional_field_function_no_use_default.txt rename to crates/compiler/test_mono/generated/record_optional_field_function_no_use_default.txt diff --git a/compiler/test_mono/generated/record_optional_field_function_use_default.txt b/crates/compiler/test_mono/generated/record_optional_field_function_use_default.txt similarity index 100% rename from compiler/test_mono/generated/record_optional_field_function_use_default.txt rename to crates/compiler/test_mono/generated/record_optional_field_function_use_default.txt diff --git a/compiler/test_mono/generated/record_optional_field_let_no_use_default.txt b/crates/compiler/test_mono/generated/record_optional_field_let_no_use_default.txt similarity index 100% rename from compiler/test_mono/generated/record_optional_field_let_no_use_default.txt rename to crates/compiler/test_mono/generated/record_optional_field_let_no_use_default.txt diff --git a/compiler/test_mono/generated/record_optional_field_let_use_default.txt b/crates/compiler/test_mono/generated/record_optional_field_let_use_default.txt similarity index 100% rename from compiler/test_mono/generated/record_optional_field_let_use_default.txt rename to crates/compiler/test_mono/generated/record_optional_field_let_use_default.txt diff --git a/compiler/test_mono/generated/rigids.txt b/crates/compiler/test_mono/generated/rigids.txt similarity index 100% rename from compiler/test_mono/generated/rigids.txt rename to crates/compiler/test_mono/generated/rigids.txt diff --git a/compiler/test_mono/generated/simple_if.txt b/crates/compiler/test_mono/generated/simple_if.txt similarity index 100% rename from compiler/test_mono/generated/simple_if.txt rename to crates/compiler/test_mono/generated/simple_if.txt diff --git a/compiler/test_mono/generated/somehow_drops_definitions.txt b/crates/compiler/test_mono/generated/somehow_drops_definitions.txt similarity index 100% rename from compiler/test_mono/generated/somehow_drops_definitions.txt rename to crates/compiler/test_mono/generated/somehow_drops_definitions.txt diff --git a/compiler/test_mono/generated/specialize_ability_call.txt b/crates/compiler/test_mono/generated/specialize_ability_call.txt similarity index 100% rename from compiler/test_mono/generated/specialize_ability_call.txt rename to crates/compiler/test_mono/generated/specialize_ability_call.txt diff --git a/compiler/test_mono/generated/specialize_closures.txt b/crates/compiler/test_mono/generated/specialize_closures.txt similarity index 100% rename from compiler/test_mono/generated/specialize_closures.txt rename to crates/compiler/test_mono/generated/specialize_closures.txt diff --git a/compiler/test_mono/generated/specialize_lowlevel.txt b/crates/compiler/test_mono/generated/specialize_lowlevel.txt similarity index 100% rename from compiler/test_mono/generated/specialize_lowlevel.txt rename to crates/compiler/test_mono/generated/specialize_lowlevel.txt diff --git a/compiler/test_mono/generated/tail_call_elimination.txt b/crates/compiler/test_mono/generated/tail_call_elimination.txt similarity index 100% rename from compiler/test_mono/generated/tail_call_elimination.txt rename to crates/compiler/test_mono/generated/tail_call_elimination.txt diff --git a/compiler/test_mono/generated/tail_call_with_different_layout.txt b/crates/compiler/test_mono/generated/tail_call_with_different_layout.txt similarity index 100% rename from compiler/test_mono/generated/tail_call_with_different_layout.txt rename to crates/compiler/test_mono/generated/tail_call_with_different_layout.txt diff --git a/compiler/test_mono/generated/tail_call_with_same_layout_different_lambda_sets.txt b/crates/compiler/test_mono/generated/tail_call_with_same_layout_different_lambda_sets.txt similarity index 100% rename from compiler/test_mono/generated/tail_call_with_same_layout_different_lambda_sets.txt rename to crates/compiler/test_mono/generated/tail_call_with_same_layout_different_lambda_sets.txt diff --git a/compiler/test_mono/generated/when_joinpoint.txt b/crates/compiler/test_mono/generated/when_joinpoint.txt similarity index 100% rename from compiler/test_mono/generated/when_joinpoint.txt rename to crates/compiler/test_mono/generated/when_joinpoint.txt diff --git a/compiler/test_mono/generated/when_nested_maybe.txt b/crates/compiler/test_mono/generated/when_nested_maybe.txt similarity index 100% rename from compiler/test_mono/generated/when_nested_maybe.txt rename to crates/compiler/test_mono/generated/when_nested_maybe.txt diff --git a/compiler/test_mono/generated/when_on_record.txt b/crates/compiler/test_mono/generated/when_on_record.txt similarity index 100% rename from compiler/test_mono/generated/when_on_record.txt rename to crates/compiler/test_mono/generated/when_on_record.txt diff --git a/compiler/test_mono/generated/when_on_result.txt b/crates/compiler/test_mono/generated/when_on_result.txt similarity index 100% rename from compiler/test_mono/generated/when_on_result.txt rename to crates/compiler/test_mono/generated/when_on_result.txt diff --git a/compiler/test_mono/generated/when_on_two_values.txt b/crates/compiler/test_mono/generated/when_on_two_values.txt similarity index 100% rename from compiler/test_mono/generated/when_on_two_values.txt rename to crates/compiler/test_mono/generated/when_on_two_values.txt diff --git a/compiler/test_mono/src/tests.rs b/crates/compiler/test_mono/src/tests.rs similarity index 100% rename from compiler/test_mono/src/tests.rs rename to crates/compiler/test_mono/src/tests.rs diff --git a/compiler/test_mono_macros/Cargo.lock b/crates/compiler/test_mono_macros/Cargo.lock similarity index 100% rename from compiler/test_mono_macros/Cargo.lock rename to crates/compiler/test_mono_macros/Cargo.lock diff --git a/compiler/test_mono_macros/Cargo.toml b/crates/compiler/test_mono_macros/Cargo.toml similarity index 100% rename from compiler/test_mono_macros/Cargo.toml rename to crates/compiler/test_mono_macros/Cargo.toml diff --git a/compiler/test_mono_macros/src/lib.rs b/crates/compiler/test_mono_macros/src/lib.rs similarity index 100% rename from compiler/test_mono_macros/src/lib.rs rename to crates/compiler/test_mono_macros/src/lib.rs diff --git a/compiler/types/Cargo.toml b/crates/compiler/types/Cargo.toml similarity index 100% rename from compiler/types/Cargo.toml rename to crates/compiler/types/Cargo.toml diff --git a/compiler/types/src/builtin_aliases.rs b/crates/compiler/types/src/builtin_aliases.rs similarity index 100% rename from compiler/types/src/builtin_aliases.rs rename to crates/compiler/types/src/builtin_aliases.rs diff --git a/compiler/types/src/lib.rs b/crates/compiler/types/src/lib.rs similarity index 100% rename from compiler/types/src/lib.rs rename to crates/compiler/types/src/lib.rs diff --git a/compiler/types/src/num.rs b/crates/compiler/types/src/num.rs similarity index 100% rename from compiler/types/src/num.rs rename to crates/compiler/types/src/num.rs diff --git a/compiler/types/src/pretty_print.rs b/crates/compiler/types/src/pretty_print.rs similarity index 100% rename from compiler/types/src/pretty_print.rs rename to crates/compiler/types/src/pretty_print.rs diff --git a/compiler/types/src/solved_types.rs b/crates/compiler/types/src/solved_types.rs similarity index 100% rename from compiler/types/src/solved_types.rs rename to crates/compiler/types/src/solved_types.rs diff --git a/compiler/types/src/subs.rs b/crates/compiler/types/src/subs.rs similarity index 100% rename from compiler/types/src/subs.rs rename to crates/compiler/types/src/subs.rs diff --git a/compiler/types/src/types.rs b/crates/compiler/types/src/types.rs similarity index 100% rename from compiler/types/src/types.rs rename to crates/compiler/types/src/types.rs diff --git a/compiler/types/src/unification_table.rs b/crates/compiler/types/src/unification_table.rs similarity index 100% rename from compiler/types/src/unification_table.rs rename to crates/compiler/types/src/unification_table.rs diff --git a/compiler/unify/Cargo.toml b/crates/compiler/unify/Cargo.toml similarity index 100% rename from compiler/unify/Cargo.toml rename to crates/compiler/unify/Cargo.toml diff --git a/compiler/unify/src/lib.rs b/crates/compiler/unify/src/lib.rs similarity index 100% rename from compiler/unify/src/lib.rs rename to crates/compiler/unify/src/lib.rs diff --git a/compiler/unify/src/unify.rs b/crates/compiler/unify/src/unify.rs similarity index 100% rename from compiler/unify/src/unify.rs rename to crates/compiler/unify/src/unify.rs diff --git a/docs/.gitignore b/crates/docs/.gitignore similarity index 100% rename from docs/.gitignore rename to crates/docs/.gitignore diff --git a/docs/Cargo.toml b/crates/docs/Cargo.toml similarity index 100% rename from docs/Cargo.toml rename to crates/docs/Cargo.toml diff --git a/docs/src/docs_error.rs b/crates/docs/src/docs_error.rs similarity index 100% rename from docs/src/docs_error.rs rename to crates/docs/src/docs_error.rs diff --git a/docs/src/html.rs b/crates/docs/src/html.rs similarity index 100% rename from docs/src/html.rs rename to crates/docs/src/html.rs diff --git a/docs/src/lib.rs b/crates/docs/src/lib.rs similarity index 100% rename from docs/src/lib.rs rename to crates/docs/src/lib.rs diff --git a/docs/src/static/favicon.svg b/crates/docs/src/static/favicon.svg similarity index 100% rename from docs/src/static/favicon.svg rename to crates/docs/src/static/favicon.svg diff --git a/docs/src/static/index.html b/crates/docs/src/static/index.html similarity index 100% rename from docs/src/static/index.html rename to crates/docs/src/static/index.html diff --git a/docs/src/static/search.js b/crates/docs/src/static/search.js similarity index 100% rename from docs/src/static/search.js rename to crates/docs/src/static/search.js diff --git a/docs/src/static/styles.css b/crates/docs/src/static/styles.css similarity index 100% rename from docs/src/static/styles.css rename to crates/docs/src/static/styles.css diff --git a/docs/tests/insert_syntax_highlighting.rs b/crates/docs/tests/insert_syntax_highlighting.rs similarity index 100% rename from docs/tests/insert_syntax_highlighting.rs rename to crates/docs/tests/insert_syntax_highlighting.rs diff --git a/docs_cli/Cargo.toml b/crates/docs_cli/Cargo.toml similarity index 100% rename from docs_cli/Cargo.toml rename to crates/docs_cli/Cargo.toml diff --git a/docs_cli/src/main.rs b/crates/docs_cli/src/main.rs similarity index 100% rename from docs_cli/src/main.rs rename to crates/docs_cli/src/main.rs diff --git a/editor/.gitignore b/crates/editor/.gitignore similarity index 100% rename from editor/.gitignore rename to crates/editor/.gitignore diff --git a/editor/Cargo.toml b/crates/editor/Cargo.toml similarity index 100% rename from editor/Cargo.toml rename to crates/editor/Cargo.toml diff --git a/editor/Inconsolata-Regular.ttf b/crates/editor/Inconsolata-Regular.ttf similarity index 100% rename from editor/Inconsolata-Regular.ttf rename to crates/editor/Inconsolata-Regular.ttf diff --git a/editor/README.md b/crates/editor/README.md similarity index 100% rename from editor/README.md rename to crates/editor/README.md diff --git a/editor/creature.png b/crates/editor/creature.png similarity index 100% rename from editor/creature.png rename to crates/editor/creature.png diff --git a/editor/editor-ideas.md b/crates/editor/editor-ideas.md similarity index 100% rename from editor/editor-ideas.md rename to crates/editor/editor-ideas.md diff --git a/editor/snippet-ideas.md b/crates/editor/snippet-ideas.md similarity index 100% rename from editor/snippet-ideas.md rename to crates/editor/snippet-ideas.md diff --git a/editor/src/editor/code_lines.rs b/crates/editor/src/editor/code_lines.rs similarity index 100% rename from editor/src/editor/code_lines.rs rename to crates/editor/src/editor/code_lines.rs diff --git a/editor/src/editor/config.rs b/crates/editor/src/editor/config.rs similarity index 100% rename from editor/src/editor/config.rs rename to crates/editor/src/editor/config.rs diff --git a/editor/src/editor/ed_error.rs b/crates/editor/src/editor/ed_error.rs similarity index 100% rename from editor/src/editor/ed_error.rs rename to crates/editor/src/editor/ed_error.rs diff --git a/editor/src/editor/grid_node_map.rs b/crates/editor/src/editor/grid_node_map.rs similarity index 100% rename from editor/src/editor/grid_node_map.rs rename to crates/editor/src/editor/grid_node_map.rs diff --git a/editor/src/editor/keyboard_input.rs b/crates/editor/src/editor/keyboard_input.rs similarity index 100% rename from editor/src/editor/keyboard_input.rs rename to crates/editor/src/editor/keyboard_input.rs diff --git a/editor/src/editor/main.rs b/crates/editor/src/editor/main.rs similarity index 100% rename from editor/src/editor/main.rs rename to crates/editor/src/editor/main.rs diff --git a/editor/src/editor/mod.rs b/crates/editor/src/editor/mod.rs similarity index 100% rename from editor/src/editor/mod.rs rename to crates/editor/src/editor/mod.rs diff --git a/editor/src/editor/mvc/app_model.rs b/crates/editor/src/editor/mvc/app_model.rs similarity index 100% rename from editor/src/editor/mvc/app_model.rs rename to crates/editor/src/editor/mvc/app_model.rs diff --git a/editor/src/editor/mvc/app_update.rs b/crates/editor/src/editor/mvc/app_update.rs similarity index 100% rename from editor/src/editor/mvc/app_update.rs rename to crates/editor/src/editor/mvc/app_update.rs diff --git a/editor/src/editor/mvc/break_line.rs b/crates/editor/src/editor/mvc/break_line.rs similarity index 100% rename from editor/src/editor/mvc/break_line.rs rename to crates/editor/src/editor/mvc/break_line.rs diff --git a/editor/src/editor/mvc/ed_model.rs b/crates/editor/src/editor/mvc/ed_model.rs similarity index 100% rename from editor/src/editor/mvc/ed_model.rs rename to crates/editor/src/editor/mvc/ed_model.rs diff --git a/editor/src/editor/mvc/ed_update.rs b/crates/editor/src/editor/mvc/ed_update.rs similarity index 100% rename from editor/src/editor/mvc/ed_update.rs rename to crates/editor/src/editor/mvc/ed_update.rs diff --git a/editor/src/editor/mvc/ed_view.rs b/crates/editor/src/editor/mvc/ed_view.rs similarity index 100% rename from editor/src/editor/mvc/ed_view.rs rename to crates/editor/src/editor/mvc/ed_view.rs diff --git a/editor/src/editor/mvc/int_update.rs b/crates/editor/src/editor/mvc/int_update.rs similarity index 100% rename from editor/src/editor/mvc/int_update.rs rename to crates/editor/src/editor/mvc/int_update.rs diff --git a/editor/src/editor/mvc/let_update.rs b/crates/editor/src/editor/mvc/let_update.rs similarity index 100% rename from editor/src/editor/mvc/let_update.rs rename to crates/editor/src/editor/mvc/let_update.rs diff --git a/editor/src/editor/mvc/list_update.rs b/crates/editor/src/editor/mvc/list_update.rs similarity index 100% rename from editor/src/editor/mvc/list_update.rs rename to crates/editor/src/editor/mvc/list_update.rs diff --git a/editor/src/editor/mvc/lookup_update.rs b/crates/editor/src/editor/mvc/lookup_update.rs similarity index 100% rename from editor/src/editor/mvc/lookup_update.rs rename to crates/editor/src/editor/mvc/lookup_update.rs diff --git a/editor/src/editor/mvc/mod.rs b/crates/editor/src/editor/mvc/mod.rs similarity index 100% rename from editor/src/editor/mvc/mod.rs rename to crates/editor/src/editor/mvc/mod.rs diff --git a/editor/src/editor/mvc/record_update.rs b/crates/editor/src/editor/mvc/record_update.rs similarity index 100% rename from editor/src/editor/mvc/record_update.rs rename to crates/editor/src/editor/mvc/record_update.rs diff --git a/editor/src/editor/mvc/string_update.rs b/crates/editor/src/editor/mvc/string_update.rs similarity index 100% rename from editor/src/editor/mvc/string_update.rs rename to crates/editor/src/editor/mvc/string_update.rs diff --git a/editor/src/editor/mvc/tld_value_update.rs b/crates/editor/src/editor/mvc/tld_value_update.rs similarity index 100% rename from editor/src/editor/mvc/tld_value_update.rs rename to crates/editor/src/editor/mvc/tld_value_update.rs diff --git a/editor/src/editor/render_ast.rs b/crates/editor/src/editor/render_ast.rs similarity index 100% rename from editor/src/editor/render_ast.rs rename to crates/editor/src/editor/render_ast.rs diff --git a/editor/src/editor/render_debug.rs b/crates/editor/src/editor/render_debug.rs similarity index 100% rename from editor/src/editor/render_debug.rs rename to crates/editor/src/editor/render_debug.rs diff --git a/editor/src/editor/resources/mod.rs b/crates/editor/src/editor/resources/mod.rs similarity index 100% rename from editor/src/editor/resources/mod.rs rename to crates/editor/src/editor/resources/mod.rs diff --git a/editor/src/editor/resources/sounds/bell_sound.mp3 b/crates/editor/src/editor/resources/sounds/bell_sound.mp3 similarity index 100% rename from editor/src/editor/resources/sounds/bell_sound.mp3 rename to crates/editor/src/editor/resources/sounds/bell_sound.mp3 diff --git a/editor/src/editor/resources/strings.rs b/crates/editor/src/editor/resources/strings.rs similarity index 100% rename from editor/src/editor/resources/strings.rs rename to crates/editor/src/editor/resources/strings.rs diff --git a/editor/src/editor/sound.rs b/crates/editor/src/editor/sound.rs similarity index 100% rename from editor/src/editor/sound.rs rename to crates/editor/src/editor/sound.rs diff --git a/editor/src/editor/theme.rs b/crates/editor/src/editor/theme.rs similarity index 100% rename from editor/src/editor/theme.rs rename to crates/editor/src/editor/theme.rs diff --git a/editor/src/editor/util.rs b/crates/editor/src/editor/util.rs similarity index 100% rename from editor/src/editor/util.rs rename to crates/editor/src/editor/util.rs diff --git a/editor/src/graphics/colors.rs b/crates/editor/src/graphics/colors.rs similarity index 100% rename from editor/src/graphics/colors.rs rename to crates/editor/src/graphics/colors.rs diff --git a/editor/src/graphics/lowlevel/buffer.rs b/crates/editor/src/graphics/lowlevel/buffer.rs similarity index 100% rename from editor/src/graphics/lowlevel/buffer.rs rename to crates/editor/src/graphics/lowlevel/buffer.rs diff --git a/editor/src/graphics/lowlevel/mod.rs b/crates/editor/src/graphics/lowlevel/mod.rs similarity index 100% rename from editor/src/graphics/lowlevel/mod.rs rename to crates/editor/src/graphics/lowlevel/mod.rs diff --git a/editor/src/graphics/lowlevel/ortho.rs b/crates/editor/src/graphics/lowlevel/ortho.rs similarity index 100% rename from editor/src/graphics/lowlevel/ortho.rs rename to crates/editor/src/graphics/lowlevel/ortho.rs diff --git a/editor/src/graphics/lowlevel/pipelines.rs b/crates/editor/src/graphics/lowlevel/pipelines.rs similarity index 100% rename from editor/src/graphics/lowlevel/pipelines.rs rename to crates/editor/src/graphics/lowlevel/pipelines.rs diff --git a/editor/src/graphics/lowlevel/vertex.rs b/crates/editor/src/graphics/lowlevel/vertex.rs similarity index 100% rename from editor/src/graphics/lowlevel/vertex.rs rename to crates/editor/src/graphics/lowlevel/vertex.rs diff --git a/editor/src/graphics/mod.rs b/crates/editor/src/graphics/mod.rs similarity index 100% rename from editor/src/graphics/mod.rs rename to crates/editor/src/graphics/mod.rs diff --git a/editor/src/graphics/primitives/mod.rs b/crates/editor/src/graphics/primitives/mod.rs similarity index 100% rename from editor/src/graphics/primitives/mod.rs rename to crates/editor/src/graphics/primitives/mod.rs diff --git a/editor/src/graphics/primitives/rect.rs b/crates/editor/src/graphics/primitives/rect.rs similarity index 100% rename from editor/src/graphics/primitives/rect.rs rename to crates/editor/src/graphics/primitives/rect.rs diff --git a/editor/src/graphics/primitives/text.rs b/crates/editor/src/graphics/primitives/text.rs similarity index 100% rename from editor/src/graphics/primitives/text.rs rename to crates/editor/src/graphics/primitives/text.rs diff --git a/editor/src/graphics/shaders/shader.wgsl b/crates/editor/src/graphics/shaders/shader.wgsl similarity index 100% rename from editor/src/graphics/shaders/shader.wgsl rename to crates/editor/src/graphics/shaders/shader.wgsl diff --git a/editor/src/graphics/style.rs b/crates/editor/src/graphics/style.rs similarity index 100% rename from editor/src/graphics/style.rs rename to crates/editor/src/graphics/style.rs diff --git a/editor/src/lib.rs b/crates/editor/src/lib.rs similarity index 100% rename from editor/src/lib.rs rename to crates/editor/src/lib.rs diff --git a/editor/src/ui/mod.rs b/crates/editor/src/ui/mod.rs similarity index 100% rename from editor/src/ui/mod.rs rename to crates/editor/src/ui/mod.rs diff --git a/editor/src/ui/text/big_text_area.rs b/crates/editor/src/ui/text/big_text_area.rs similarity index 100% rename from editor/src/ui/text/big_text_area.rs rename to crates/editor/src/ui/text/big_text_area.rs diff --git a/editor/src/ui/text/caret_w_select.rs b/crates/editor/src/ui/text/caret_w_select.rs similarity index 100% rename from editor/src/ui/text/caret_w_select.rs rename to crates/editor/src/ui/text/caret_w_select.rs diff --git a/editor/src/ui/text/lines.rs b/crates/editor/src/ui/text/lines.rs similarity index 100% rename from editor/src/ui/text/lines.rs rename to crates/editor/src/ui/text/lines.rs diff --git a/editor/src/ui/text/mod.rs b/crates/editor/src/ui/text/mod.rs similarity index 100% rename from editor/src/ui/text/mod.rs rename to crates/editor/src/ui/text/mod.rs diff --git a/editor/src/ui/text/selection.rs b/crates/editor/src/ui/text/selection.rs similarity index 100% rename from editor/src/ui/text/selection.rs rename to crates/editor/src/ui/text/selection.rs diff --git a/editor/src/ui/text/text_buffer.rs b/crates/editor/src/ui/text/text_buffer.rs similarity index 100% rename from editor/src/ui/text/text_buffer.rs rename to crates/editor/src/ui/text/text_buffer.rs diff --git a/editor/src/ui/text/text_pos.rs b/crates/editor/src/ui/text/text_pos.rs similarity index 100% rename from editor/src/ui/text/text_pos.rs rename to crates/editor/src/ui/text/text_pos.rs diff --git a/editor/src/ui/theme.rs b/crates/editor/src/ui/theme.rs similarity index 100% rename from editor/src/ui/theme.rs rename to crates/editor/src/ui/theme.rs diff --git a/editor/src/ui/tooltip.rs b/crates/editor/src/ui/tooltip.rs similarity index 100% rename from editor/src/ui/tooltip.rs rename to crates/editor/src/ui/tooltip.rs diff --git a/editor/src/ui/ui_error.rs b/crates/editor/src/ui/ui_error.rs similarity index 100% rename from editor/src/ui/ui_error.rs rename to crates/editor/src/ui/ui_error.rs diff --git a/editor/src/ui/util.rs b/crates/editor/src/ui/util.rs similarity index 100% rename from editor/src/ui/util.rs rename to crates/editor/src/ui/util.rs diff --git a/editor/src/window/keyboard_input.rs b/crates/editor/src/window/keyboard_input.rs similarity index 100% rename from editor/src/window/keyboard_input.rs rename to crates/editor/src/window/keyboard_input.rs diff --git a/editor/src/window/mod.rs b/crates/editor/src/window/mod.rs similarity index 100% rename from editor/src/window/mod.rs rename to crates/editor/src/window/mod.rs diff --git a/editor/tests/README.md b/crates/editor/tests/README.md similarity index 100% rename from editor/tests/README.md rename to crates/editor/tests/README.md diff --git a/editor/tests/modules/SimpleUnformatted.roc b/crates/editor/tests/modules/SimpleUnformatted.roc similarity index 100% rename from editor/tests/modules/SimpleUnformatted.roc rename to crates/editor/tests/modules/SimpleUnformatted.roc diff --git a/editor/tests/selection.pest b/crates/editor/tests/selection.pest similarity index 100% rename from editor/tests/selection.pest rename to crates/editor/tests/selection.pest diff --git a/error_macros/Cargo.toml b/crates/error_macros/Cargo.toml similarity index 100% rename from error_macros/Cargo.toml rename to crates/error_macros/Cargo.toml diff --git a/error_macros/src/lib.rs b/crates/error_macros/src/lib.rs similarity index 100% rename from error_macros/src/lib.rs rename to crates/error_macros/src/lib.rs diff --git a/highlight/Cargo.toml b/crates/highlight/Cargo.toml similarity index 100% rename from highlight/Cargo.toml rename to crates/highlight/Cargo.toml diff --git a/highlight/src/highlight_parser.rs b/crates/highlight/src/highlight_parser.rs similarity index 100% rename from highlight/src/highlight_parser.rs rename to crates/highlight/src/highlight_parser.rs diff --git a/highlight/src/lib.rs b/crates/highlight/src/lib.rs similarity index 100% rename from highlight/src/lib.rs rename to crates/highlight/src/lib.rs diff --git a/highlight/src/tokenizer.rs b/crates/highlight/src/tokenizer.rs similarity index 100% rename from highlight/src/tokenizer.rs rename to crates/highlight/src/tokenizer.rs diff --git a/highlight/tests/peg_grammar.rs b/crates/highlight/tests/peg_grammar.rs similarity index 99% rename from highlight/tests/peg_grammar.rs rename to crates/highlight/tests/peg_grammar.rs index 5da453c495..56f1b29690 100644 --- a/highlight/tests/peg_grammar.rs +++ b/crates/highlight/tests/peg_grammar.rs @@ -723,7 +723,7 @@ test1 = } fn example_path(sub_path: &str) -> String { - let examples_dir = "../examples/".to_string(); + let examples_dir = "../../examples/".to_string(); let file_path = examples_dir + sub_path; diff --git a/linker/Cargo.toml b/crates/linker/Cargo.toml similarity index 100% rename from linker/Cargo.toml rename to crates/linker/Cargo.toml diff --git a/linker/README.md b/crates/linker/README.md similarity index 100% rename from linker/README.md rename to crates/linker/README.md diff --git a/linker/src/lib.rs b/crates/linker/src/lib.rs similarity index 100% rename from linker/src/lib.rs rename to crates/linker/src/lib.rs diff --git a/linker/src/main.rs b/crates/linker/src/main.rs similarity index 100% rename from linker/src/main.rs rename to crates/linker/src/main.rs diff --git a/linker/src/metadata.rs b/crates/linker/src/metadata.rs similarity index 100% rename from linker/src/metadata.rs rename to crates/linker/src/metadata.rs diff --git a/repl_cli/Cargo.toml b/crates/repl_cli/Cargo.toml similarity index 100% rename from repl_cli/Cargo.toml rename to crates/repl_cli/Cargo.toml diff --git a/repl_cli/src/lib.rs b/crates/repl_cli/src/lib.rs similarity index 100% rename from repl_cli/src/lib.rs rename to crates/repl_cli/src/lib.rs diff --git a/repl_eval/Cargo.toml b/crates/repl_eval/Cargo.toml similarity index 100% rename from repl_eval/Cargo.toml rename to crates/repl_eval/Cargo.toml diff --git a/repl_eval/src/eval.rs b/crates/repl_eval/src/eval.rs similarity index 100% rename from repl_eval/src/eval.rs rename to crates/repl_eval/src/eval.rs diff --git a/repl_eval/src/gen.rs b/crates/repl_eval/src/gen.rs similarity index 100% rename from repl_eval/src/gen.rs rename to crates/repl_eval/src/gen.rs diff --git a/repl_eval/src/lib.rs b/crates/repl_eval/src/lib.rs similarity index 100% rename from repl_eval/src/lib.rs rename to crates/repl_eval/src/lib.rs diff --git a/repl_test/Cargo.toml b/crates/repl_test/Cargo.toml similarity index 100% rename from repl_test/Cargo.toml rename to crates/repl_test/Cargo.toml diff --git a/repl_test/src/cli.rs b/crates/repl_test/src/cli.rs similarity index 100% rename from repl_test/src/cli.rs rename to crates/repl_test/src/cli.rs diff --git a/repl_test/src/lib.rs b/crates/repl_test/src/lib.rs similarity index 100% rename from repl_test/src/lib.rs rename to crates/repl_test/src/lib.rs diff --git a/repl_test/src/tests.rs b/crates/repl_test/src/tests.rs similarity index 100% rename from repl_test/src/tests.rs rename to crates/repl_test/src/tests.rs diff --git a/repl_test/src/wasm.rs b/crates/repl_test/src/wasm.rs similarity index 99% rename from repl_test/src/wasm.rs rename to crates/repl_test/src/wasm.rs index f3722cd2ed..38530a50e5 100644 --- a/repl_test/src/wasm.rs +++ b/crates/repl_test/src/wasm.rs @@ -11,7 +11,7 @@ use wasmer::{ }; use wasmer_wasi::WasiState; -const WASM_REPL_COMPILER_PATH: &str = "../target/wasm32-wasi/release/roc_repl_wasm.wasm"; +const WASM_REPL_COMPILER_PATH: &str = "../../target/wasm32-wasi/release/roc_repl_wasm.wasm"; thread_local! { static REPL_STATE: RefCell> = RefCell::new(None) diff --git a/repl_test/test_wasm.sh b/crates/repl_test/test_wasm.sh similarity index 100% rename from repl_test/test_wasm.sh rename to crates/repl_test/test_wasm.sh diff --git a/repl_wasm/.gitignore b/crates/repl_wasm/.gitignore similarity index 100% rename from repl_wasm/.gitignore rename to crates/repl_wasm/.gitignore diff --git a/repl_wasm/Cargo.toml b/crates/repl_wasm/Cargo.toml similarity index 100% rename from repl_wasm/Cargo.toml rename to crates/repl_wasm/Cargo.toml diff --git a/repl_wasm/build.rs b/crates/repl_wasm/build.rs similarity index 100% rename from repl_wasm/build.rs rename to crates/repl_wasm/build.rs diff --git a/repl_wasm/src/externs_js.rs b/crates/repl_wasm/src/externs_js.rs similarity index 100% rename from repl_wasm/src/externs_js.rs rename to crates/repl_wasm/src/externs_js.rs diff --git a/repl_wasm/src/externs_test.rs b/crates/repl_wasm/src/externs_test.rs similarity index 100% rename from repl_wasm/src/externs_test.rs rename to crates/repl_wasm/src/externs_test.rs diff --git a/repl_wasm/src/lib.rs b/crates/repl_wasm/src/lib.rs similarity index 100% rename from repl_wasm/src/lib.rs rename to crates/repl_wasm/src/lib.rs diff --git a/repl_wasm/src/repl.rs b/crates/repl_wasm/src/repl.rs similarity index 100% rename from repl_wasm/src/repl.rs rename to crates/repl_wasm/src/repl.rs diff --git a/repl_wasm/src/repl_platform.c b/crates/repl_wasm/src/repl_platform.c similarity index 100% rename from repl_wasm/src/repl_platform.c rename to crates/repl_wasm/src/repl_platform.c diff --git a/reporting/.gitignore b/crates/reporting/.gitignore similarity index 100% rename from reporting/.gitignore rename to crates/reporting/.gitignore diff --git a/reporting/Cargo.toml b/crates/reporting/Cargo.toml similarity index 100% rename from reporting/Cargo.toml rename to crates/reporting/Cargo.toml diff --git a/reporting/src/error/canonicalize.rs b/crates/reporting/src/error/canonicalize.rs similarity index 100% rename from reporting/src/error/canonicalize.rs rename to crates/reporting/src/error/canonicalize.rs diff --git a/reporting/src/error/mod.rs b/crates/reporting/src/error/mod.rs similarity index 100% rename from reporting/src/error/mod.rs rename to crates/reporting/src/error/mod.rs diff --git a/reporting/src/error/parse.rs b/crates/reporting/src/error/parse.rs similarity index 100% rename from reporting/src/error/parse.rs rename to crates/reporting/src/error/parse.rs diff --git a/reporting/src/error/type.rs b/crates/reporting/src/error/type.rs similarity index 100% rename from reporting/src/error/type.rs rename to crates/reporting/src/error/type.rs diff --git a/reporting/src/lib.rs b/crates/reporting/src/lib.rs similarity index 100% rename from reporting/src/lib.rs rename to crates/reporting/src/lib.rs diff --git a/reporting/src/report.rs b/crates/reporting/src/report.rs similarity index 100% rename from reporting/src/report.rs rename to crates/reporting/src/report.rs diff --git a/reporting/tests/helpers/mod.rs b/crates/reporting/tests/helpers/mod.rs similarity index 100% rename from reporting/tests/helpers/mod.rs rename to crates/reporting/tests/helpers/mod.rs diff --git a/reporting/tests/test_reporting.rs b/crates/reporting/tests/test_reporting.rs similarity index 100% rename from reporting/tests/test_reporting.rs rename to crates/reporting/tests/test_reporting.rs diff --git a/roc_std/.gitignore b/crates/roc_std/.gitignore similarity index 100% rename from roc_std/.gitignore rename to crates/roc_std/.gitignore diff --git a/roc_std/Cargo.lock b/crates/roc_std/Cargo.lock similarity index 100% rename from roc_std/Cargo.lock rename to crates/roc_std/Cargo.lock diff --git a/roc_std/Cargo.toml b/crates/roc_std/Cargo.toml similarity index 100% rename from roc_std/Cargo.toml rename to crates/roc_std/Cargo.toml diff --git a/roc_std/src/lib.rs b/crates/roc_std/src/lib.rs similarity index 100% rename from roc_std/src/lib.rs rename to crates/roc_std/src/lib.rs diff --git a/roc_std/src/roc_box.rs b/crates/roc_std/src/roc_box.rs similarity index 100% rename from roc_std/src/roc_box.rs rename to crates/roc_std/src/roc_box.rs diff --git a/roc_std/src/roc_list.rs b/crates/roc_std/src/roc_list.rs similarity index 100% rename from roc_std/src/roc_list.rs rename to crates/roc_std/src/roc_list.rs diff --git a/roc_std/src/roc_str.rs b/crates/roc_std/src/roc_str.rs similarity index 100% rename from roc_std/src/roc_str.rs rename to crates/roc_std/src/roc_str.rs diff --git a/roc_std/src/storage.rs b/crates/roc_std/src/storage.rs similarity index 100% rename from roc_std/src/storage.rs rename to crates/roc_std/src/storage.rs diff --git a/roc_std/tests/test_roc_std.rs b/crates/roc_std/tests/test_roc_std.rs similarity index 100% rename from roc_std/tests/test_roc_std.rs rename to crates/roc_std/tests/test_roc_std.rs diff --git a/test_utils/Cargo.toml b/crates/test_utils/Cargo.toml similarity index 100% rename from test_utils/Cargo.toml rename to crates/test_utils/Cargo.toml diff --git a/test_utils/src/lib.rs b/crates/test_utils/src/lib.rs similarity index 100% rename from test_utils/src/lib.rs rename to crates/test_utils/src/lib.rs diff --git a/utils/Cargo.toml b/crates/utils/Cargo.toml similarity index 100% rename from utils/Cargo.toml rename to crates/utils/Cargo.toml diff --git a/utils/src/lib.rs b/crates/utils/src/lib.rs similarity index 100% rename from utils/src/lib.rs rename to crates/utils/src/lib.rs diff --git a/utils/src/util_error.rs b/crates/utils/src/util_error.rs similarity index 100% rename from utils/src/util_error.rs rename to crates/utils/src/util_error.rs diff --git a/vendor/README.md b/crates/vendor/README.md similarity index 100% rename from vendor/README.md rename to crates/vendor/README.md diff --git a/vendor/inkwell/Cargo.toml b/crates/vendor/inkwell/Cargo.toml similarity index 100% rename from vendor/inkwell/Cargo.toml rename to crates/vendor/inkwell/Cargo.toml diff --git a/vendor/inkwell/src/lib.rs b/crates/vendor/inkwell/src/lib.rs similarity index 100% rename from vendor/inkwell/src/lib.rs rename to crates/vendor/inkwell/src/lib.rs diff --git a/vendor/morphic_lib/.gitignore b/crates/vendor/morphic_lib/.gitignore similarity index 100% rename from vendor/morphic_lib/.gitignore rename to crates/vendor/morphic_lib/.gitignore diff --git a/vendor/morphic_lib/Cargo.toml b/crates/vendor/morphic_lib/Cargo.toml similarity index 100% rename from vendor/morphic_lib/Cargo.toml rename to crates/vendor/morphic_lib/Cargo.toml diff --git a/vendor/morphic_lib/LICENSE-APACHE b/crates/vendor/morphic_lib/LICENSE-APACHE similarity index 100% rename from vendor/morphic_lib/LICENSE-APACHE rename to crates/vendor/morphic_lib/LICENSE-APACHE diff --git a/vendor/morphic_lib/LICENSE-MIT b/crates/vendor/morphic_lib/LICENSE-MIT similarity index 100% rename from vendor/morphic_lib/LICENSE-MIT rename to crates/vendor/morphic_lib/LICENSE-MIT diff --git a/vendor/morphic_lib/src/analyze.rs b/crates/vendor/morphic_lib/src/analyze.rs similarity index 100% rename from vendor/morphic_lib/src/analyze.rs rename to crates/vendor/morphic_lib/src/analyze.rs diff --git a/vendor/morphic_lib/src/api.rs b/crates/vendor/morphic_lib/src/api.rs similarity index 100% rename from vendor/morphic_lib/src/api.rs rename to crates/vendor/morphic_lib/src/api.rs diff --git a/vendor/morphic_lib/src/bindings.rs b/crates/vendor/morphic_lib/src/bindings.rs similarity index 100% rename from vendor/morphic_lib/src/bindings.rs rename to crates/vendor/morphic_lib/src/bindings.rs diff --git a/vendor/morphic_lib/src/ir.rs b/crates/vendor/morphic_lib/src/ir.rs similarity index 100% rename from vendor/morphic_lib/src/ir.rs rename to crates/vendor/morphic_lib/src/ir.rs diff --git a/vendor/morphic_lib/src/lib.rs b/crates/vendor/morphic_lib/src/lib.rs similarity index 100% rename from vendor/morphic_lib/src/lib.rs rename to crates/vendor/morphic_lib/src/lib.rs diff --git a/vendor/morphic_lib/src/name_cache.rs b/crates/vendor/morphic_lib/src/name_cache.rs similarity index 100% rename from vendor/morphic_lib/src/name_cache.rs rename to crates/vendor/morphic_lib/src/name_cache.rs diff --git a/vendor/morphic_lib/src/preprocess.rs b/crates/vendor/morphic_lib/src/preprocess.rs similarity index 100% rename from vendor/morphic_lib/src/preprocess.rs rename to crates/vendor/morphic_lib/src/preprocess.rs diff --git a/vendor/morphic_lib/src/render_api_ir.rs b/crates/vendor/morphic_lib/src/render_api_ir.rs similarity index 100% rename from vendor/morphic_lib/src/render_api_ir.rs rename to crates/vendor/morphic_lib/src/render_api_ir.rs diff --git a/vendor/morphic_lib/src/type_cache.rs b/crates/vendor/morphic_lib/src/type_cache.rs similarity index 100% rename from vendor/morphic_lib/src/type_cache.rs rename to crates/vendor/morphic_lib/src/type_cache.rs diff --git a/vendor/morphic_lib/src/util/blocks.rs b/crates/vendor/morphic_lib/src/util/blocks.rs similarity index 100% rename from vendor/morphic_lib/src/util/blocks.rs rename to crates/vendor/morphic_lib/src/util/blocks.rs diff --git a/vendor/morphic_lib/src/util/bytes_id.rs b/crates/vendor/morphic_lib/src/util/bytes_id.rs similarity index 100% rename from vendor/morphic_lib/src/util/bytes_id.rs rename to crates/vendor/morphic_lib/src/util/bytes_id.rs diff --git a/vendor/morphic_lib/src/util/flat_slices.rs b/crates/vendor/morphic_lib/src/util/flat_slices.rs similarity index 100% rename from vendor/morphic_lib/src/util/flat_slices.rs rename to crates/vendor/morphic_lib/src/util/flat_slices.rs diff --git a/vendor/morphic_lib/src/util/forward_trait.rs b/crates/vendor/morphic_lib/src/util/forward_trait.rs similarity index 100% rename from vendor/morphic_lib/src/util/forward_trait.rs rename to crates/vendor/morphic_lib/src/util/forward_trait.rs diff --git a/vendor/morphic_lib/src/util/get2_mut.rs b/crates/vendor/morphic_lib/src/util/get2_mut.rs similarity index 100% rename from vendor/morphic_lib/src/util/get2_mut.rs rename to crates/vendor/morphic_lib/src/util/get2_mut.rs diff --git a/vendor/morphic_lib/src/util/id_bi_map.rs b/crates/vendor/morphic_lib/src/util/id_bi_map.rs similarity index 100% rename from vendor/morphic_lib/src/util/id_bi_map.rs rename to crates/vendor/morphic_lib/src/util/id_bi_map.rs diff --git a/vendor/morphic_lib/src/util/id_type.rs b/crates/vendor/morphic_lib/src/util/id_type.rs similarity index 100% rename from vendor/morphic_lib/src/util/id_type.rs rename to crates/vendor/morphic_lib/src/util/id_type.rs diff --git a/vendor/morphic_lib/src/util/id_vec.rs b/crates/vendor/morphic_lib/src/util/id_vec.rs similarity index 100% rename from vendor/morphic_lib/src/util/id_vec.rs rename to crates/vendor/morphic_lib/src/util/id_vec.rs diff --git a/vendor/morphic_lib/src/util/mod.rs b/crates/vendor/morphic_lib/src/util/mod.rs similarity index 100% rename from vendor/morphic_lib/src/util/mod.rs rename to crates/vendor/morphic_lib/src/util/mod.rs diff --git a/vendor/morphic_lib/src/util/norm_pair.rs b/crates/vendor/morphic_lib/src/util/norm_pair.rs similarity index 100% rename from vendor/morphic_lib/src/util/norm_pair.rs rename to crates/vendor/morphic_lib/src/util/norm_pair.rs diff --git a/vendor/morphic_lib/src/util/op_graph.rs b/crates/vendor/morphic_lib/src/util/op_graph.rs similarity index 100% rename from vendor/morphic_lib/src/util/op_graph.rs rename to crates/vendor/morphic_lib/src/util/op_graph.rs diff --git a/vendor/morphic_lib/src/util/replace_none.rs b/crates/vendor/morphic_lib/src/util/replace_none.rs similarity index 100% rename from vendor/morphic_lib/src/util/replace_none.rs rename to crates/vendor/morphic_lib/src/util/replace_none.rs diff --git a/vendor/morphic_lib/src/util/strongly_connected.rs b/crates/vendor/morphic_lib/src/util/strongly_connected.rs similarity index 100% rename from vendor/morphic_lib/src/util/strongly_connected.rs rename to crates/vendor/morphic_lib/src/util/strongly_connected.rs diff --git a/vendor/morphic_lib/tests/basic.rs b/crates/vendor/morphic_lib/tests/basic.rs similarity index 100% rename from vendor/morphic_lib/tests/basic.rs rename to crates/vendor/morphic_lib/tests/basic.rs diff --git a/vendor/morphic_lib/tests/recursive.rs b/crates/vendor/morphic_lib/tests/recursive.rs similarity index 100% rename from vendor/morphic_lib/tests/recursive.rs rename to crates/vendor/morphic_lib/tests/recursive.rs diff --git a/vendor/morphic_lib/tests/structures.rs b/crates/vendor/morphic_lib/tests/structures.rs similarity index 100% rename from vendor/morphic_lib/tests/structures.rs rename to crates/vendor/morphic_lib/tests/structures.rs diff --git a/vendor/pathfinding/Cargo.toml b/crates/vendor/pathfinding/Cargo.toml similarity index 100% rename from vendor/pathfinding/Cargo.toml rename to crates/vendor/pathfinding/Cargo.toml diff --git a/vendor/pathfinding/src/lib.rs b/crates/vendor/pathfinding/src/lib.rs similarity index 100% rename from vendor/pathfinding/src/lib.rs rename to crates/vendor/pathfinding/src/lib.rs diff --git a/vendor/pretty/Cargo.toml b/crates/vendor/pretty/Cargo.toml similarity index 100% rename from vendor/pretty/Cargo.toml rename to crates/vendor/pretty/Cargo.toml diff --git a/vendor/pretty/LICENSE b/crates/vendor/pretty/LICENSE similarity index 100% rename from vendor/pretty/LICENSE rename to crates/vendor/pretty/LICENSE diff --git a/vendor/pretty/README.md b/crates/vendor/pretty/README.md similarity index 100% rename from vendor/pretty/README.md rename to crates/vendor/pretty/README.md diff --git a/vendor/pretty/src/lib.rs b/crates/vendor/pretty/src/lib.rs similarity index 100% rename from vendor/pretty/src/lib.rs rename to crates/vendor/pretty/src/lib.rs diff --git a/vendor/pretty/src/render.rs b/crates/vendor/pretty/src/render.rs similarity index 100% rename from vendor/pretty/src/render.rs rename to crates/vendor/pretty/src/render.rs diff --git a/wasi-libc-sys/.gitignore b/crates/wasi-libc-sys/.gitignore similarity index 100% rename from wasi-libc-sys/.gitignore rename to crates/wasi-libc-sys/.gitignore diff --git a/wasi-libc-sys/Cargo.toml b/crates/wasi-libc-sys/Cargo.toml similarity index 100% rename from wasi-libc-sys/Cargo.toml rename to crates/wasi-libc-sys/Cargo.toml diff --git a/wasi-libc-sys/build.rs b/crates/wasi-libc-sys/build.rs similarity index 100% rename from wasi-libc-sys/build.rs rename to crates/wasi-libc-sys/build.rs diff --git a/wasi-libc-sys/src/dummy.c b/crates/wasi-libc-sys/src/dummy.c similarity index 100% rename from wasi-libc-sys/src/dummy.c rename to crates/wasi-libc-sys/src/dummy.c diff --git a/wasi-libc-sys/src/lib.rs b/crates/wasi-libc-sys/src/lib.rs similarity index 100% rename from wasi-libc-sys/src/lib.rs rename to crates/wasi-libc-sys/src/lib.rs diff --git a/examples/benchmarks/platform/host.zig b/examples/benchmarks/platform/host.zig index 884dde407d..7d6f8ea9ec 100644 --- a/examples/benchmarks/platform/host.zig +++ b/examples/benchmarks/platform/host.zig @@ -205,6 +205,9 @@ fn roc_fx_getInt_32bit(output: *GetInt) callconv(.C) void { } fn roc_fx_getInt_help() !i64 { + const stdout = std.io.getStdOut().writer(); + stdout.print("Please enter an integer\n", .{}) catch unreachable; + const stdin = std.io.getStdIn().reader(); var buf: [40]u8 = undefined; diff --git a/examples/breakout/platform/Cargo.lock b/examples/breakout/platform/Cargo.lock index a1a31eae48..af3c885ec3 100644 --- a/examples/breakout/platform/Cargo.lock +++ b/examples/breakout/platform/Cargo.lock @@ -2092,7 +2092,7 @@ name = "roc_std" version = "0.1.0" dependencies = [ "arrayvec", - "static_assertions 0.1.1", + "static_assertions", ] [[package]] @@ -2296,12 +2296,6 @@ dependencies = [ "num-traits", ] -[[package]] -name = "static_assertions" -version = "0.1.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f406d6ee68db6796e11ffd7b4d171864c58b7451e79ef9460ea33c287a1f89a7" - [[package]] name = "static_assertions" version = "1.1.0" @@ -2413,7 +2407,7 @@ checksum = "4ee73e6e4924fe940354b8d4d98cad5231175d615cd855b758adc658c0aac6a0" dependencies = [ "cfg-if 1.0.0", "rand", - "static_assertions 1.1.0", + "static_assertions", ] [[package]] diff --git a/examples/breakout/platform/Cargo.toml b/examples/breakout/platform/Cargo.toml index 3e110e5aaf..82343f1def 100644 --- a/examples/breakout/platform/Cargo.toml +++ b/examples/breakout/platform/Cargo.toml @@ -15,7 +15,7 @@ name = "host" path = "src/main.rs" [dependencies] -roc_std = { path = "../../../roc_std" } +roc_std = { path = "../../../crates/roc_std" } libc = "0.2" arrayvec = "0.7.2" page_size = "0.4.2" diff --git a/examples/breakout/platform/src/graphics/primitives/text.rs b/examples/breakout/platform/src/graphics/primitives/text.rs index 4ecaa28d9b..6aa2844878 100644 --- a/examples/breakout/platform/src/graphics/primitives/text.rs +++ b/examples/breakout/platform/src/graphics/primitives/text.rs @@ -127,7 +127,7 @@ pub fn build_glyph_brush( render_format: wgpu::TextureFormat, ) -> Result, InvalidFont> { let inconsolata = FontArc::try_from_slice(include_bytes!( - "../../../../../../editor/Inconsolata-Regular.ttf" + "../../../../../../crates/editor/Inconsolata-Regular.ttf" ))?; Ok(GlyphBrushBuilder::using_font(inconsolata).build(gpu_device, render_format)) diff --git a/examples/false-interpreter/platform/Cargo.lock b/examples/false-interpreter/platform/Cargo.lock index 1622b303ac..b18484fd80 100644 --- a/examples/false-interpreter/platform/Cargo.lock +++ b/examples/false-interpreter/platform/Cargo.lock @@ -32,6 +32,6 @@ dependencies = [ [[package]] name = "static_assertions" -version = "0.1.1" +version = "1.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f406d6ee68db6796e11ffd7b4d171864c58b7451e79ef9460ea33c287a1f89a7" +checksum = "a2eb9349b6444b326872e140eb1cf5e7c522154d69e7a0ffb0fb81c06b37543f" diff --git a/examples/false-interpreter/platform/Cargo.toml b/examples/false-interpreter/platform/Cargo.toml index 37d5561b6b..85cdec4c34 100644 --- a/examples/false-interpreter/platform/Cargo.toml +++ b/examples/false-interpreter/platform/Cargo.toml @@ -17,7 +17,7 @@ name = "host" path = "src/main.rs" [dependencies] -roc_std = { path = "../../../roc_std" } +roc_std = { path = "../../../crates/roc_std" } libc = "0.2" [workspace] diff --git a/examples/gui/platform/Cargo.lock b/examples/gui/platform/Cargo.lock index a1a31eae48..af3c885ec3 100644 --- a/examples/gui/platform/Cargo.lock +++ b/examples/gui/platform/Cargo.lock @@ -2092,7 +2092,7 @@ name = "roc_std" version = "0.1.0" dependencies = [ "arrayvec", - "static_assertions 0.1.1", + "static_assertions", ] [[package]] @@ -2296,12 +2296,6 @@ dependencies = [ "num-traits", ] -[[package]] -name = "static_assertions" -version = "0.1.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f406d6ee68db6796e11ffd7b4d171864c58b7451e79ef9460ea33c287a1f89a7" - [[package]] name = "static_assertions" version = "1.1.0" @@ -2413,7 +2407,7 @@ checksum = "4ee73e6e4924fe940354b8d4d98cad5231175d615cd855b758adc658c0aac6a0" dependencies = [ "cfg-if 1.0.0", "rand", - "static_assertions 1.1.0", + "static_assertions", ] [[package]] diff --git a/examples/gui/platform/Cargo.toml b/examples/gui/platform/Cargo.toml index 083f3e369e..21c09521f8 100644 --- a/examples/gui/platform/Cargo.toml +++ b/examples/gui/platform/Cargo.toml @@ -16,7 +16,7 @@ name = "host" path = "src/main.rs" [dependencies] -roc_std = { path = "../../../roc_std" } +roc_std = { path = "../../../crates/roc_std" } libc = "0.2" arrayvec = "0.7.2" page_size = "0.4.2" diff --git a/examples/gui/platform/src/graphics/primitives/text.rs b/examples/gui/platform/src/graphics/primitives/text.rs index f002d506e7..424c885004 100644 --- a/examples/gui/platform/src/graphics/primitives/text.rs +++ b/examples/gui/platform/src/graphics/primitives/text.rs @@ -130,7 +130,7 @@ pub fn build_glyph_brush( render_format: wgpu::TextureFormat, ) -> Result, InvalidFont> { let inconsolata = FontArc::try_from_slice(include_bytes!( - "../../../../../../editor/Inconsolata-Regular.ttf" + "../../../../../../crates/editor/Inconsolata-Regular.ttf" ))?; Ok(GlyphBrushBuilder::using_font(inconsolata).build(gpu_device, render_format)) diff --git a/examples/interactive/cli-platform/Cargo.toml b/examples/interactive/cli-platform/Cargo.toml index 37d5561b6b..85cdec4c34 100644 --- a/examples/interactive/cli-platform/Cargo.toml +++ b/examples/interactive/cli-platform/Cargo.toml @@ -17,7 +17,7 @@ name = "host" path = "src/main.rs" [dependencies] -roc_std = { path = "../../../roc_std" } +roc_std = { path = "../../../crates/roc_std" } libc = "0.2" [workspace] diff --git a/examples/platform-switching/rust-platform/Cargo.lock b/examples/platform-switching/rust-platform/Cargo.lock index c6fa4fd219..7929aef368 100644 --- a/examples/platform-switching/rust-platform/Cargo.lock +++ b/examples/platform-switching/rust-platform/Cargo.lock @@ -32,6 +32,6 @@ dependencies = [ [[package]] name = "static_assertions" -version = "0.1.1" +version = "1.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f406d6ee68db6796e11ffd7b4d171864c58b7451e79ef9460ea33c287a1f89a7" +checksum = "a2eb9349b6444b326872e140eb1cf5e7c522154d69e7a0ffb0fb81c06b37543f" diff --git a/examples/platform-switching/rust-platform/Cargo.toml b/examples/platform-switching/rust-platform/Cargo.toml index baad986559..596682c0da 100644 --- a/examples/platform-switching/rust-platform/Cargo.toml +++ b/examples/platform-switching/rust-platform/Cargo.toml @@ -16,7 +16,7 @@ name = "host" path = "src/main.rs" [dependencies] -roc_std = { path = "../../../roc_std" } +roc_std = { path = "../../../crates/roc_std" } libc = "0.2" [workspace] diff --git a/www/build.sh b/www/build.sh index 25a5b8539e..8b4788484e 100755 --- a/www/build.sh +++ b/www/build.sh @@ -35,7 +35,7 @@ rustc --version # is set up to serve them. export ROC_DOCS_URL_ROOT=/builtins -cargo run --bin roc-docs compiler/builtins/roc/*.roc +cargo run --bin roc-docs crates/compiler/builtins/roc/*.roc mv generated-docs/*.* www/build # move all the .js, .css, etc. files to build/ mv generated-docs/ www/build/builtins # move all the folders to build/builtins/