Commit graph

310 commits

Author SHA1 Message Date
Folkert
1ac66a8fee attempt to make examples more generic 2021-05-05 16:00:30 +02:00
Richard Feldman
5ca3423ade Fix custom free 2021-05-01 21:27:47 -04:00
Richard Feldman
3058cdd50a Add custom-malloc example 2021-05-01 20:59:56 -04:00
Folkert
7b3fa2b57b we can import aliases now! 2021-04-25 17:44:09 +02:00
Richard Feldman
0a50b0b488 Change license to UPL-1.0
Closes https://github.com/rtfeldman/roc/issues/1199
2021-04-21 19:18:44 -04:00
Richard Feldman
688216955e Drop extraneous printing in CLI example 2021-04-15 18:32:57 -04:00
Richard Feldman
b0748b47d8 Make Echo.roc example executable 2021-04-15 18:32:57 -04:00
Richard Feldman
da7dffe0e9 roc run passes through arguments and exit code 2021-04-15 18:32:57 -04:00
Folkert de Vries
3b23cda370
Merge branch 'trunk' into parse-platform-rigids 2021-04-14 22:04:18 +02:00
Folkert
c68cd2fb2d fix and test 2021-04-14 22:03:03 +02:00
Folkert
64bc92c746 basic parsing 2021-04-14 13:03:31 +02:00
Richard Feldman
4310bc2962
Merge branch 'trunk' into task_write_file 2021-04-13 08:37:34 -04:00
Folkert de Vries
2115994f4b
Merge branch 'trunk' into parse-expr-underscore 2021-04-12 20:52:01 +02:00
Folkert
791fda0270 update cli example 2021-04-12 20:49:48 +02:00
rvcas
f984cbad89 feat(examples): implement writeUtf8 2021-04-11 23:43:37 -04:00
Richard Feldman
f16d1619ea
Merge pull request #1175 from rtfeldman/task_file_adjustments
Use Str.fromUtf8 in Task example
2021-04-11 12:43:03 -04:00
Richard Feldman
792a18816a Update authors in Cargo.toml 2021-04-11 08:11:52 -04:00
rvcas
f65978d7d0 feat(examples): match on Err in Task example 2021-04-10 17:19:29 -04:00
rvcas
40251b5f28 fix(examples): Task example use Str.fromUtf8 2021-04-10 16:43:08 -04:00
Richard Feldman
a3c7dc494b Add HTTP error handling to CLI example 2021-04-06 22:45:04 -04:00
Richard Feldman
dba526bb3e Add Task.onFail and Task.attempt 2021-04-06 22:44:39 -04:00
Richard Feldman
4bb0852bd8 Add RocResult 2021-04-06 22:44:25 -04:00
Richard Feldman
80446a5dfb
Make HttpGet.roc print things a little more nicely 2021-04-05 22:26:46 -04:00
Richard Feldman
da75c3e4a1 Make use of tag literals being usable as functions
Thanks @rcvas!
2021-04-05 22:21:18 -04:00
Richard Feldman
61ae65905c Fix incorrect Http.getUtf8 type 2021-04-05 22:21:04 -04:00
Richard Feldman
aff8df814d Actually print the HTTP response 2021-04-05 22:12:03 -04:00
Richard Feldman
490427f730 Use ureq over reqwest 2021-04-05 22:11:48 -04:00
Richard Feldman
e052938837 Use reqwest::blocking::get in cli host 2021-04-05 21:19:08 -04:00
Richard Feldman
2d0f8482e9 Rename Http.getStr to Http.getUtf8 2021-04-05 21:18:49 -04:00
Richard Feldman
e96a799a01 Fix some warnings 2021-04-05 20:23:59 -04:00
Richard Feldman
30db822051 Add basic Http.roc 2021-04-05 20:15:47 -04:00
Richard Feldman
2c03303494 Update .gitignore 2021-04-05 20:15:39 -04:00
Richard Feldman
9e71f83cf5 Drop unused Task function 2021-04-05 20:15:16 -04:00
Richard Feldman
bd9e93f5ed Add initial Http module to cli example 2021-04-05 20:15:06 -04:00
Richard Feldman
5e2c4bdda4 Add reqwest and openssl deps to cli example 2021-04-05 20:14:43 -04:00
Richard Feldman
7b70e9b0e4 Update cli example platform 2021-04-03 22:14:25 -04:00
Richard Feldman
6dcea4f151 Use backpassing and await in task example 2021-04-03 22:03:00 -04:00
Richard Feldman
1de0918ba9 Echo example in CLI 2021-04-03 21:20:45 -04:00
Richard Feldman
659966c878 Revise CLI example 2021-04-03 21:20:45 -04:00
Richard Feldman
b944798fda Add a TODO about a bug 2021-04-03 21:20:45 -04:00
Richard Feldman
fd06781954 Add CLI example 2021-04-03 21:20:45 -04:00
Richard Feldman
b1c7e4c3a9 Update task example 2021-04-03 21:20:45 -04:00
Folkert
3c78fae8dc add putInt to the benchmark platform 2021-03-30 22:59:03 +02:00
Folkert
ce435c9437 make zig show runtime errors thrown by roc 2021-03-23 22:01:46 +01:00
Folkert
eef1cb2a69 use multi-backpassing in base64 example 2021-03-19 00:27:34 +01:00
Folkert
ecc689e84b Merge remote-tracking branch 'origin/trunk' into expression-move 2021-03-15 23:18:48 +01:00
Folkert
6da792c62d remove test executables from repo 2021-03-15 21:50:32 +01:00
Folkert
41bfb0b69a all tests working again 2021-03-15 21:49:19 +01:00
Richard Feldman
1f29fc4358
Merge branch 'trunk' into singleton-to-single 2021-03-15 00:42:59 -04:00
Richard Feldman
ce6969d31f Only do the compiler_rt workaround on macOS 2021-03-14 22:31:32 -04:00