Commit Graph

1186 Commits

Author SHA1 Message Date
Richard Feldman
a3ee6b22af
Merge pull request #4097 from roc-lang/better-default-importing
Improve how builtin modules and their types are imported
2022-10-02 00:25:32 -07:00
Richard Feldman
8a467f3cf1
Merge pull request #4091 from roc-lang/env-read
Add setCwd and exePath, change effect type from [Env]* to [Read [Env]*]*
2022-10-02 00:19:22 -07:00
Richard Feldman
95f4c375c3
s/Read/Write for setCwd's effect type
Co-authored-by: Ayaz <20735482+ayazhafiz@users.noreply.github.com>
Signed-off-by: Richard Feldman <oss@rtfeldman.com>
2022-10-02 03:18:11 -04:00
Ayaz Hafiz
d8fd630df8
Format 2022-09-30 13:43:33 -05:00
Ayaz Hafiz
73491cb12e
Cleanup unused imports 2022-09-30 13:43:19 -05:00
Ayaz Hafiz
066474bfde
Remove unused import 2022-09-30 13:40:35 -05:00
Ayaz Hafiz
92aa0912ea
Report unused imports in modules 2022-09-30 13:40:34 -05:00
Ayaz
9e7832ea0b
Merge pull request #4129 from roc-lang/arg-parser-fixes
Localize parsing errors in the arg parser
2022-09-30 00:06:43 -05:00
Ayaz Hafiz
f3f3898d7a
Format 2022-09-28 17:55:12 -05:00
Brian Carroll
4f23bc39f0
Merge pull request #3552 from roc-lang/csv_decoding-server_example
CSV Decoding in pure Roc
2022-09-28 21:46:26 +01:00
Ayaz Hafiz
3be0265159
Localize parsing errors in the arg parser
Previously, missing arguments would be reported incorrectly by the CLI
platform's arg parser, as [discussed on Zulip](https://roc.zulipchat.com/#narrow/stream/231634-beginners/topic/Args.20for.20CLI.20platform.3F/near/299068775).
This fixes that.
2022-09-28 14:44:30 -05:00
Ayaz
523a350151
Merge branch 'main' into env-read
Signed-off-by: Ayaz <20735482+ayazhafiz@users.noreply.github.com>
2022-09-28 12:56:06 -05:00
Folkert de Vries
190ff7e21a
Merge pull request #4122 from roc-lang/dependabot/cargo/env_logger-0.9.1
Bump env_logger from 0.9.0 to 0.9.1
2022-09-28 16:54:47 +02:00
Folkert
2e5f207283
Merge remote-tracking branch 'origin/main' into csv_decoding-server_example 2022-09-28 16:39:34 +02:00
Ayaz Hafiz
f72a1f9a9a
REmove env_logger dep 2022-09-28 09:10:27 -05:00
Folkert
4ada4d4996
deallocate roc string in parser platform 2022-09-28 15:30:17 +02:00
Ayaz Hafiz
efddc38e66
Add EnvDecoding to cli-platform 2022-09-27 18:21:47 -05:00
Ayaz Hafiz
e04960573e
Format env.roc 2022-09-27 18:21:05 -05:00
Ayaz Hafiz
9cd82ab7e4
Ignore env binary 2022-09-27 18:18:42 -05:00
Ayaz Hafiz
331a4c2888
Format Env.roc 2022-09-27 18:17:52 -05:00
Ayaz Hafiz
43e734f75c
Make implementation easier to read 2022-09-27 18:03:19 -05:00
Brendan Hansknecht
30dbad88ae
ensure that the csv platform flushes to stdout successfully 2022-09-27 16:01:15 -07:00
Ayaz Hafiz
a8b1cb2d90
Implement decoding lists from env vars 2022-09-27 17:57:46 -05:00
Ayaz Hafiz
57231de0c1
Add example of decoding environment variables 2022-09-27 17:57:46 -05:00
Ayaz Hafiz
b9f34df96d
Add comment about annotations 2022-09-27 17:57:46 -05:00
Ayaz Hafiz
38ab8de37c
Implement Env.decode for the CLI platform 2022-09-27 17:57:45 -05:00
Brian Carroll
173a4ec8ab
Define roc_memmove in case LLVM decides to use memmove 2022-09-27 21:24:23 +01:00
Brian Carroll
dbf63af05b
Use a different stdio function to get C host working on CI 2022-09-26 21:34:35 +01:00
Brian Carroll
1a5ef05585
Print out stderr if CLI test fails 2022-09-26 19:21:44 +01:00
Brian Carroll
bad993a957
Cleanups and formatting 2022-09-25 22:47:09 +01:00
Brian Carroll
32c2d8fb4b
fix spellcheck error 2022-09-25 22:19:41 +01:00
Brian Carroll
cbd8968066
Create CLI test for CSV example 2022-09-25 22:17:29 +01:00
Brian Carroll
a83ef5fa2a
rename codepoint -> codeunit 2022-09-25 22:17:29 +01:00
Brian Carroll
2341c01ab3
rename main file and executable in CSV example 2022-09-25 22:17:28 +01:00
Brian Carroll
a3c1325edf
rename CSV parsing example: csv -> parser 2022-09-25 22:17:12 +01:00
Brian Carroll
005b29885b
Merge branch 'main' of github.com:rtfeldman/roc into csv_decoding-server_example 2022-09-25 21:35:19 +01:00
Anton-4
ef9c77409f
Merge remote-tracking branch 'upstream/main' into swiftuidemo 2022-09-23 12:04:34 +02:00
Ayaz Hafiz
f2c9fd2b48
Rename Bytes' encoder/decoder to avoid stdlib collision 2022-09-21 12:29:07 -05:00
Ayaz
211c297230
Merge pull request #4041 from KilianVounckx/opaque-bool
Opaque bool
2022-09-21 11:15:41 -05:00
Richard Feldman
02238b8815
Add setCwd and exePath, change fx to [Read [Env]] 2022-09-21 12:05:32 -04:00
Anton-4
04ea17e8a1
Merge branch 'main' into swiftuidemo
Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>
2022-09-21 17:24:25 +02:00
Folkert de Vries
cc202a4cf9
Merge pull request #4082 from roc-lang/update-cli-platform-unreachables
Support unification with uninhabited tag variants in more places
2022-09-21 12:18:38 +02:00
Folkert de Vries
a74f5d9366
Merge pull request #4076 from roc-lang/collapse-void-2
Unwrap layouts containing void layouts as newtypes
2022-09-21 00:13:56 +02:00
Ayaz Hafiz
140c33aa50
Update Args.roc 2022-09-20 14:42:09 -05:00
Ayaz Hafiz
2c2a1eb869
Fix cli run tests 2022-09-20 14:42:08 -05:00
kilianv
610c529ba8
Update roc files to use new opaque bools 2022-09-20 14:42:04 -05:00
Ayaz Hafiz
0cb48c6404
Simplify CLI platform arms further 2022-09-20 14:30:25 -05:00
Ayaz Hafiz
49ba8b92b4
Remove unreachable branches in Program.roc 2022-09-20 14:14:31 -05:00
Ayaz Hafiz
884843205d
Update zig host for zero-size types 2022-09-20 08:32:20 -05:00
Richard Feldman
7df7e1bbb7
Drop obsolete declaration 2022-09-19 21:13:22 -04:00