mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-03 19:58:18 +00:00
Add Task as a built-in module/type
This commit is contained in:
parent
d47a073634
commit
700c7ae9aa
86 changed files with 925 additions and 2670 deletions
|
@ -1 +1 @@
|
|||
hosted Foo exposes [] imports [] generates Bar with []
|
||||
hosted Foo exposes [] imports []
|
||||
|
|
|
@ -22,24 +22,6 @@ Module {
|
|||
},
|
||||
item: [],
|
||||
},
|
||||
generates: KeywordItem {
|
||||
keyword: Spaces {
|
||||
before: [],
|
||||
item: GeneratesKeyword,
|
||||
after: [],
|
||||
},
|
||||
item: UppercaseIdent(
|
||||
"Bar",
|
||||
),
|
||||
},
|
||||
generates_with: KeywordItem {
|
||||
keyword: Spaces {
|
||||
before: [],
|
||||
item: WithKeyword,
|
||||
after: [],
|
||||
},
|
||||
item: [],
|
||||
},
|
||||
},
|
||||
),
|
||||
}
|
||||
|
|
|
@ -1 +1 @@
|
|||
hosted Foo exposes [] imports [] generates Bar with []
|
||||
hosted Foo exposes [] imports []
|
||||
|
|
|
@ -10,9 +10,3 @@ hosted Foo
|
|||
Blah,
|
||||
Baz.{ stuff, things },
|
||||
]
|
||||
generates Bar with
|
||||
[
|
||||
map,
|
||||
after,
|
||||
loop,
|
||||
]
|
||||
|
|
|
@ -95,58 +95,6 @@ Module {
|
|||
],
|
||||
},
|
||||
},
|
||||
generates: KeywordItem {
|
||||
keyword: Spaces {
|
||||
before: [
|
||||
Newline,
|
||||
],
|
||||
item: GeneratesKeyword,
|
||||
after: [],
|
||||
},
|
||||
item: UppercaseIdent(
|
||||
"Bar",
|
||||
),
|
||||
},
|
||||
generates_with: KeywordItem {
|
||||
keyword: Spaces {
|
||||
before: [],
|
||||
item: WithKeyword,
|
||||
after: [
|
||||
Newline,
|
||||
],
|
||||
},
|
||||
item: Collection {
|
||||
items: [
|
||||
@239-242 SpaceBefore(
|
||||
ExposedName(
|
||||
"map",
|
||||
),
|
||||
[
|
||||
Newline,
|
||||
],
|
||||
),
|
||||
@256-261 SpaceBefore(
|
||||
ExposedName(
|
||||
"after",
|
||||
),
|
||||
[
|
||||
Newline,
|
||||
],
|
||||
),
|
||||
@275-279 SpaceBefore(
|
||||
ExposedName(
|
||||
"loop",
|
||||
),
|
||||
[
|
||||
Newline,
|
||||
],
|
||||
),
|
||||
],
|
||||
final_comments: [
|
||||
Newline,
|
||||
],
|
||||
},
|
||||
},
|
||||
},
|
||||
),
|
||||
}
|
||||
|
|
|
@ -10,9 +10,3 @@ hosted Foo
|
|||
Blah,
|
||||
Baz.{ stuff, things },
|
||||
]
|
||||
generates Bar with
|
||||
[
|
||||
map,
|
||||
after,
|
||||
loop,
|
||||
]
|
||||
|
|
|
@ -4930,10 +4930,10 @@ mod test_fmt {
|
|||
fn single_line_platform() {
|
||||
module_formats_same(
|
||||
"platform \"folkertdev/foo\" \
|
||||
requires { Model, Msg } { main : Effect {} } \
|
||||
requires { Model, Msg } { main : Task {} [] } \
|
||||
exposes [] \
|
||||
packages {} \
|
||||
imports [Task.{ Task }] \
|
||||
imports [] \
|
||||
provides [mainForHost]",
|
||||
);
|
||||
}
|
||||
|
@ -5002,7 +5002,7 @@ mod test_fmt {
|
|||
fn single_line_hosted() {
|
||||
module_formats_same(indoc!(
|
||||
r"
|
||||
hosted Foo exposes [] imports [] generates Bar with []"
|
||||
hosted Foo exposes [] imports []"
|
||||
));
|
||||
}
|
||||
|
||||
|
@ -5019,11 +5019,6 @@ mod test_fmt {
|
|||
imports [
|
||||
Blah,
|
||||
Baz.{ stuff, things },
|
||||
]
|
||||
generates Bar with [
|
||||
map,
|
||||
after,
|
||||
loop,
|
||||
]"
|
||||
));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue