Have we ever talked about simplifying the Platform header? Specifically removing the "imports" section and replacing it with plain imports? I.e., instead of:
platform "foo/barbaz"
requires { Model } { main : {} }
exposes []
packages { foo: "./foo" }
imports [
Hello exposing [hello],
pf.Stdout exposing [line],
"path/to/my/file.txt" as myFile : Str,
]
provides [main_for_host]
This:
platform "foo/barbaz"
requires { Model } { main : {} }
exposes []
packages { foo: "./foo" }
provides [main_for_host]
import Hello exposing [hello]
import pf.Stdout exposing [line]
import "path/to/my/file.txt" as myFile : Str
I'm considering this solely for v0.1 to be clear
oh yeah we should definitely do that! :smiley:
Thank god!
:-)
I'm writing the parser/formatter for this (my last) header, and this seems a little out of bounds
Also, small question here: What in the world is a Rigid (for requires)? Just a type?
Yeah
Links types from the app back to the platform
Sweet
Hopefully have this out today and then I think the parser and formatter will be functionally complete (which I will of course verify)
At least my checklist will be complete
Last updated: Jun 16 2026 at 16:19 UTC