Add Task as a built-in module/type

This commit is contained in:
Sam Mohr 2024-06-25 00:03:56 -07:00
parent d47a073634
commit 700c7ae9aa
No known key found for this signature in database
GPG key ID: EA41D161A3C1BC99
86 changed files with 925 additions and 2670 deletions

View file

@ -6301,13 +6301,14 @@ In roc, functions are always written as a lambda, like{}
)
}
// TODO: this test seems out of date (what is the `effects` clause?) and as such should be removed
#[test]
fn platform_requires_rigids() {
report_header_problem_as(
indoc!(
r#"
platform "folkertdev/foo"
requires { main : Effect {} }
requires { main : Task {} [] }
exposes []
packages {}
imports [Task]
@ -6327,7 +6328,7 @@ In roc, functions are always written as a lambda, like{}
I am partway through parsing a header, but I got stuck here:
1 platform "folkertdev/foo"
2 requires { main : Effect {} }
2 requires { main : Task {} [] }
^
I am expecting a list of type names like `{}` or `{ Model }` next. A full