There is no mention of this here.
When I tried, it said Module Platform does not expose Sub
Platform.Sub and Platform.Cmd are imported by default as Sub and Cmd, so you need to omit the Platform.-part.
It's also worth noting that Platform, Platform.Sub, and Platform.Cmd are all different modules, that is, if they weren't imported by default and you just imported Platform, you still couldn't access Sub and Cmd with the Platform. prefix. This is more apparent if you look at the source for the core package (specifically Platform.elm and Platform/).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With