Skip to content

Commit 4595598

Browse files
committed
a
1 parent ec0c12b commit 4595598

5 files changed

Lines changed: 7 additions & 10 deletions

File tree

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
module [str]
2-
import Square exposing [f64]
1+
module [hello]
2+
import Square exposing [square]
33
num = 8192.0125
4-
str = |language|
4+
hello = |language|
55
"""
66
Roc loves ${language}
7-
${Num.to_str(num)}^2=${Num.to_str(f64(num))}
7+
${Num.to_str(num)}^2=${Num.to_str(square(num))}
88
This is a Roc application running on ${language}.
99
It imports a Roc module and calls a function from it.
1010
"""
Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,2 @@
1-
module [i128, i64, f64]
2-
i128 = |x| x * x
3-
i64 = |x| x * x
4-
f64 = |x| x * x
1+
module [square]
2+
square = |x| x * x

pkgs/roc/applications/hello/rust-basic-cli-2/main.roc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@ app [main!] {
33
lib: "./Lib/main.roc",
44
}
55
import pf.Stdout exposing [line!, hello!]
6-
import lib.Hello exposing [str]
7-
hello = str
6+
import lib.Hello exposing [hello]
87
language = "Rust"
98
user = "User"
109
main! = |_|
0 Bytes
Binary file not shown.
3.94 MB
Binary file not shown.

0 commit comments

Comments
 (0)