mirror of
https://github.com/roc-lang/roc.git
synced 2025-07-29 17:33:45 +00:00
Move platform_main_type into provides
This commit is contained in:
parent
97332e4af1
commit
29182d8292
2 changed files with 18 additions and 15 deletions
|
@ -28,16 +28,14 @@ pub enum HeaderType<'a> {
|
|||
Platform {
|
||||
name: PackageName<'a>,
|
||||
opt_app_module_id: Option<ModuleId>,
|
||||
provides: &'a [Loc<ExposedName<'a>>],
|
||||
/// the name and type scheme of the main function (required by the platform)
|
||||
/// (type scheme is currently unused)
|
||||
provides: &'a [(Loc<ExposedName<'a>>, Loc<TypedIdent<'a>>)],
|
||||
requires: &'a [Loc<TypedIdent<'a>>],
|
||||
requires_types: &'a [Loc<UppercaseIdent<'a>>],
|
||||
|
||||
/// usually `pf`
|
||||
config_shorthand: &'a str,
|
||||
/// the type scheme of the main function (required by the platform)
|
||||
/// (currently unused)
|
||||
#[allow(dead_code)]
|
||||
platform_main_type: TypedIdent<'a>,
|
||||
},
|
||||
Interface {
|
||||
name: ModuleName<'a>,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue