Commit graph

2701 commits

Author SHA1 Message Date
kilianv
222f0e8870
Fix typo 2022-09-20 14:42:08 -05:00
kilianv
08c238ff27
Generate new files in test_mono after changing to opaque bools 2022-09-20 14:42:05 -05:00
kilianv
49319a2ffe
Update Bool documentation to opaque types 2022-09-20 14:42:04 -05:00
kilianv
610c529ba8
Update roc files to use new opaque bools 2022-09-20 14:42:04 -05:00
kilianv
9717747a54
Update tests
not all tests pass yet. Will look at them with Ayaz.
2022-09-20 14:42:03 -05:00
kilianv
9a168ecba3
Change error reporting for bools 2022-09-20 14:42:02 -05:00
kilianv
6dbebd7834
Update Bool to be opaque 2022-09-20 14:42:01 -05:00
Ayaz Hafiz
412c73c54c
Add test cases for uninhabited variant collapsing with destructure patterns
Closes #4080
2022-09-20 14:22:40 -05:00
Ayaz Hafiz
f96c825aa4
Allow uninhabited type extension to happen on either unification side 2022-09-20 14:20:47 -05:00
Ayaz Hafiz
b0598ef817
Simplify unification with uninhabited tags to happen anytime tags are uninhabited
I believe this is safe! No need to gate it behind a mode.
2022-09-20 14:13:55 -05:00
Folkert
42f725bb51
support multiple text and rdata sections 2022-09-20 21:00:31 +02:00
Folkert
ec0ac1cf55
use an exported constant in the host 2022-09-20 20:11:44 +02:00
Ayaz Hafiz
7f54c0fd94
FIx gen-wasm tests 2022-09-20 11:38:23 -05:00
Brian Hicks
74552f0bac
Merge pull request #4074 from roc-lang/dict-umentation
document why Dict is the way it is
2022-09-20 09:58:35 -05:00
Richard Feldman
a237c5c0fb
Merge pull request #4071 from roc-lang/cli-program
Program.roc in CLI platform
2022-09-20 07:11:38 -07:00
Anton-4
b1c237851d
Merge pull request #4078 from roc-lang/fix_benchmarks
Fix benchmarks
2022-09-20 16:06:43 +02:00
Ayaz Hafiz
77fbc0189e
Eliminate unnecessary branch in List.roc 2022-09-20 08:43:08 -05:00
Ayaz Hafiz
2f7020aa31
Eliminate voided branches only after resolving their bodies' specializations 2022-09-20 08:35:10 -05:00
Brian Hicks
9d6b27e23c
format references for automatic links
Co-authored-by: Ayaz <20735482+ayazhafiz@users.noreply.github.com>
Signed-off-by: Brian Hicks <brian@brianthicks.com>
2022-09-20 07:48:38 -05:00
Brian Hicks
c6235f8c76
grammar
Co-authored-by: Ayaz <20735482+ayazhafiz@users.noreply.github.com>
Signed-off-by: Brian Hicks <brian@brianthicks.com>
2022-09-20 07:48:11 -05:00
Anton-4
49f7ecf551
fixed benchmarks 2022-09-20 14:30:27 +02:00
Richard Feldman
b6157e76b8
Fix type mismatch in exit code 2022-09-19 21:12:48 -04:00
Richard Feldman
593bd02cb9
Make RocDict FFI-safe 2022-09-19 21:12:41 -04:00
Richard Feldman
aa6d29fbb1
Update CLI examples and tests to use Program 2022-09-19 20:06:29 -04:00
Ayaz
da75f55aea
Merge pull request #4069 from roc-lang/exhaustiveness-check-uninhabited
Don't require pattern matching branches that are uninhabited
2022-09-19 16:57:38 -05:00
Ayaz Hafiz
f41936d5e5
Unwrap layouts containing void layouts as newtypes
Addresses the attempt to do so in https://github.com/roc-lang/roc/pull/3465

Co-authored-by: Folkert <folkert@folkertdev.nl>
2022-09-19 16:50:49 -05:00
Folkert
639c1e5fa3
get rid of UnitWithArguments 2022-09-19 16:49:55 -05:00
Brian Hicks
3f1f90dce2
document why Dict is the way it is 2022-09-19 14:50:25 -05:00
Folkert de Vries
19e790f3b7
Merge pull request #4065 from roc-lang/windows-concat-app
First PE surgical link
2022-09-19 21:28:54 +02:00
Ayaz Hafiz
29244112df
Handle optional record fields in record pattern indexing 2022-09-19 13:51:16 -05:00
Ayaz Hafiz
1799d6ed0e
Construct exhaustiveness branches with condition, not branch, variable
Previously we would construct the shapes of unions used in the pattern
tree for exhaustiveness checking using the type of the branch patterns,
rather than the type of the condition variable. Clearly we want to
always use the condition variable, otherwise some branches will be
seen as exhaustive, when they are not!

To do this, we now index into the condition variable while refying the
patterns to build the tree for exhaustiveness checking.

Closes #4068
2022-09-19 13:37:59 -05:00
Ayaz Hafiz
d65f0bbedc
Avoid example tests overwriting each other's platforms
Closes https://github.com/roc-lang/roc/issues/4038
2022-09-19 12:12:10 -05:00
Richard Feldman
523b18900f
Give RocDict a FromIterator instance 2022-09-19 12:44:13 -04:00
Folkert
66a83a9705
copy in the app's .rdata section 2022-09-19 18:08:17 +02:00
Ayaz Hafiz
0f0e414272
Improve error message for uninhabited patterns 2022-09-19 10:55:02 -05:00
Ayaz Hafiz
147636f42b
Base reported row numbers on original rows, not reified rows 2022-09-19 10:47:35 -05:00
Ayaz Hafiz
041b91e031
Add more test cases 2022-09-19 10:45:31 -05:00
Ayaz Hafiz
be853b65c5
Support unification of extension types with uninhabited branches 2022-09-19 10:32:39 -05:00
Ayaz Hafiz
8a42d60ca2
Move inhabited check to subs module 2022-09-19 10:08:18 -05:00
Richard Feldman
96f8818b24
Fix type mismatches in file.roc example 2022-09-19 10:27:44 -04:00
Folkert
631a1b6302
fold experimental stuff into old test 2022-09-19 15:23:47 +02:00
Folkert
3cd2bf6ad4
more cleanup 2022-09-19 15:21:34 +02:00
Richard Feldman
88ab511687
Report canonicalization errors on opaque names 2022-09-19 09:20:51 -04:00
Richard Feldman
f0a9bb0a96
Reorganize Program to use effects for getting args 2022-09-19 09:13:11 -04:00
Folkert
3ca3aae549
slowly cleaning up 2022-09-19 15:08:47 +02:00
Folkert
05aba03b87
actually append the app bytes into the new section 2022-09-19 12:50:02 +02:00
Folkert
322091353e
using the mmap 2022-09-19 12:03:02 +02:00
Folkert
4c8475fb74
empty second text section 2022-09-19 11:59:45 +02:00
Folkert
28fb72cca3
extra .text section created 2022-09-19 11:54:45 +02:00
Folkert
2b0ec6c227
help the type checker 2022-09-19 11:36:47 +02:00