Brian Carroll
9cb6261a4d
Merge pull request #2736 from rtfeldman/wasm-repl-palette
...
Web REPL error styling
2022-03-18 12:00:44 +00:00
Pierre-Henri Trivier
3e368a64ff
Formatter should ignore non roc files
...
Fixes #2683
2022-03-17 18:55:15 +01:00
Brian Carroll
9fc3c40379
Fix wrong import names
2022-03-17 13:22:40 +00:00
Jan Van Bruggen
0e186631eb
Rename hello examples from snake_case to camelCase for consistency
2022-03-07 21:10:19 -07:00
Jan Van Bruggen
589861a88a
Re-append newline after "Hello, World!" output
...
See https://github.com/rtfeldman/roc/pull/2470#discussion_r821295601
(@rtfeldman has "seen some terminals get really unhappy if a program
prints things and doesn't print a newline to stdout before exiting")
2022-03-07 21:06:53 -07:00
Jan Van Bruggen
85c4024eb9
Fix hello-world testing checks with a hacky workaround
2022-03-07 20:10:50 -07:00
Jan Van Bruggen
8a7f65910c
Move effects example into interactive/
2022-03-07 20:10:50 -07:00
Jan Van Bruggen
9d1dcc15c8
Consolidate interactive examples into one dir
2022-03-07 20:10:50 -07:00
Jan Van Bruggen
d94796de0e
Consolidate algorithm examples into one dir
2022-03-07 20:10:50 -07:00
Jan Van Bruggen
eadf39e47b
Add multi-platform Hello World example
2022-03-07 20:00:32 -07:00
Jan Van Bruggen
9f68194436
Remove trailing newlines from Hello World examples
2022-03-07 20:00:07 -07:00
Jan Van Bruggen
6ea8df5e16
Consolidate all Hello World examples into one dir
2022-03-07 20:00:05 -07:00
Jan Van Bruggen
99c825aa99
Simplify example platform names
2022-03-07 19:59:29 -07:00
Jan Van Bruggen
6f13d3494f
Improve hello-zig app name
2022-03-07 19:59:29 -07:00
Brian Carroll
92ace8ff67
Merge pull request #2626 from rtfeldman/gen-dev/quicksort2
...
Gen dev - Quicksort
2022-03-07 17:46:46 +00:00
Folkert
836967b919
some other clippy things in tests
2022-03-06 19:07:38 +01:00
Brian Carroll
0464da84c0
Rename CLI --backend to --target since that's what it has always meant
2022-03-05 14:22:59 +00:00
Brendan Hansknecht
7a608524ec
Merge remote-tracking branch 'origin/trunk' into gen-dev/quicksort2
2022-02-27 00:26:04 -08:00
Richard Feldman
7a08c32c53
Fix cfg macro usage
2022-02-25 12:40:44 -05:00
Richard Feldman
7dcd195071
cargo fmt
2022-02-25 11:21:40 -05:00
Richard Feldman
70bb9f9ef1
Fix hello-gui test linking on linux
2022-02-25 10:08:15 -05:00
Richard Feldman
a49b66e379
Merge branch 'trunk' into gui-example
2022-02-25 08:22:36 -05:00
Richard Feldman
cb40c21374
Fix test
2022-02-24 22:19:48 -05:00
Richard Feldman
09dec55e6e
Drop unused variable
2022-02-24 22:06:00 -05:00
Celso Bonutti
c0709a91f3
adds comments to format_check_folders test
2022-02-24 19:57:58 -03:00
Celso Bonutti
7f186249a1
formats cli test file
2022-02-24 18:11:57 -03:00
Celso Bonutti
214d4e025b
changes wording from 'folder' to 'directory'
2022-02-24 18:10:39 -03:00
Celso Bonutti
9d487a4a95
adds tests
2022-02-24 18:06:42 -03:00
Richard Feldman
e779c84bd6
Add explicit gui example test
2022-02-24 10:19:00 -05:00
Richard Feldman
54882f357d
Add test to build gui example
2022-02-24 00:07:30 -05:00
Richard Feldman
72edf73ebd
Extract out build_example function
2022-02-23 23:27:34 -05:00
Brendan Hansknecht
a34c4f7c44
stop printing to stdout before timing completes
2022-02-21 19:19:39 -08:00
Ryan Olson
3a970dffa7
Add tests for roc format --check {{file}}
2022-02-18 16:46:07 -07:00
Folkert
e656886861
add test for UnknownGeneratesWith
2022-02-06 12:50:50 +01:00
Folkert
2f453cfea2
add test for UnusedImport
2022-02-06 12:34:23 +01:00
Folkert
1e4d2b3372
add test for ExposedButNotDefined
2022-02-06 12:24:19 +01:00
Folkert
885500712c
remove old Effect module things
2022-02-03 23:55:02 +01:00
Folkert
a98635ed06
update other examples
2022-02-03 22:45:15 +01:00
Brian Carroll
c8c51f0cdc
repl: Move tests from roc_cli to roc_repl_cli
2022-01-30 16:20:48 +00:00
Folkert
3ade77374a
Merge remote-tracking branch 'origin/trunk' into add_loop_examples
2022-01-27 16:49:47 +01:00
Jan Van Bruggen
e36b94fc53
Add emoji to form example
2022-01-26 21:08:45 -07:00
Folkert
5b5b9e5eb8
fix cli cli_run test (echo file got moved)
2022-01-26 21:08:45 -07:00
Folkert
490bbf3812
ignore 'normal' functions when running i386 tests
2022-01-26 19:59:50 +01:00
Folkert
5580eafb68
Merge remote-tracking branch 'origin/trunk' into tea-example
2022-01-25 09:20:59 +01:00
Folkert
73bc50c952
make the surgical linker aware of custom exported closure names
2022-01-25 00:13:22 +01:00
Folkert
cbdf3f0378
tweaks
2022-01-23 21:41:54 +01:00
ayazhafiz
0eede1cd86
Generate unique symbols for shadowing identifiers
...
This code has a shadowing error:
```
b = False
f = \b -> b
f b
```
but prior to this commit, the compiler would hit an internal error
during monomorphization and not even get to report the error. The reason
was that when we entered the closure `\b -> b`, we would try to
introduce the identifier `b` to the scope, see that it shadows an
existing identifier, and not insert the identifier. But this meant that
when checking the body of `\b -> b`, we would think that we captured the
value `b` in the outer scope, but that's incorrect!
The present patch fixes the issue by generating new symbols for
shadowing identifiers, so deeper scopes pick up the correct reference.
This also means in the future we may be able to compile and execute code
with shadows, even though it will still be an error.
Closes #2343
2022-01-23 12:35:31 -05:00
Richard Feldman
6d8277ad8d
Merge pull request #2367 from rtfeldman/remove_Num.minmaxInt
...
Remove `Num.(min/max)Int`
2022-01-20 00:19:44 -05:00
Jan Van Bruggen
8e4b6f0cab
Remove Num.(min/max)Int
...
Replace all uses with `Num.(min/max)I64`,
since all uses expect an `I64`.
2022-01-19 09:55:06 -07:00
Jan Van Bruggen
1e9d2d1239
Remove accidental trailing spaces
2022-01-18 22:25:46 -07:00