File tree Expand file tree Collapse file tree
applications/hello/rust-basic-cli Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11app [main!] {
22 pf: platform " ../../../platforms/rust-basic-cli/platform/main.roc" ,
3+ lib: " ../../../lib/main.roc"
34}
4- ## import Lib.Hello as Hello
5- ## main : Str
6- ## main = Hello.str
7-
5+ import lib.Hello
86import pf.Stdout
97main ! : {} => Result {} _
108main ! = |{}|
11- Stdout . line !("Roc loves Rust " )?
9+ Stdout . line !(Hello . str )?
10+ Stdout . line !("Roc ❤️ Rust " )?
1211 Ok({})
Original file line number Diff line number Diff line change 11module [str]
2- import Lib . Square exposing [f64]
2+ import Square exposing [f64]
33num : F64
44num = 8192.0125
55str : Str
Original file line number Diff line number Diff line change 1+ package [
2+ Display ,
3+ Hello ,
4+ Square
5+ ] {}
Original file line number Diff line number Diff line change 1- platform " go-cli"
1+ platform " go-basic- cli"
22 requires {} { main : Str }
33 exposes []
44 packages {}
You can’t perform that action at this time.
0 commit comments