Richard Feldman
2c3307d4ce
Drop obsolete FlatType::BinOp
2019-11-16 22:29:36 -05:00
Richard Feldman
bf2e75a535
Name all type vars
2019-11-16 22:29:36 -05:00
Richard Feldman
b6f862b7d6
Cleanup
2019-11-16 22:29:36 -05:00
Richard Feldman
ffe088e686
Name some Reason variants better
2019-11-16 22:29:36 -05:00
Richard Feldman
a335632630
Rename identity test to identity_function
2019-11-16 22:29:36 -05:00
Richard Feldman
d82b7815c2
Canonicalize patterns with scope.symbol
2019-11-16 22:29:11 -05:00
Richard Feldman
912fe3b593
Fix pattern constraint gen
2019-11-16 22:29:11 -05:00
Folkert
b13c9295e3
add BlockStrLiteral pattern in the parsing ast
2019-11-16 14:20:31 +01:00
Folkert
2765e3d284
use Roc syntax in comment
2019-11-16 12:48:40 +01:00
Folkert
68eb120da8
desugar if into case
...
- I think this runs into the same "cloning disaster" described in other
branches
- should "False" be qualified? could it ever be locally shadowed?
In that case it's `(&["Bool"], "False")`?
- is there a default/empty region that is preferable for the `False` and
`_` patterns?
- desugaring works, but generating constraints for variants (needed for
False and _) doesn't yet. so the test would trigger a panic currently
- is there a reason for False and _ (True and _ is the more obvious choice)
2019-11-16 12:40:11 +01:00
Richard Feldman
4af0ee0e64
Merge pull request #5 from rtfeldman/desugar-apply
...
Desugar pizza into Apply
2019-11-16 00:10:29 +00:00
Richard Feldman
f0945a3e50
Merge pull request #6 from rtfeldman/can-blockstr
...
Can blockstr
2019-11-16 00:09:55 +00:00
Folkert
c39e060ddc
Parse BlockString
...
a couple of open questions:
- shouldn't patterns (for formatting) make the distinction between block
and line?
- can the `arena.alloc` be removed? the Vec is already allocated by bumpalo
- for error reporting, is it better to distinguish block and line?
2019-11-15 18:08:01 +01:00
Folkert
42932367e1
revert accidental push to trunk
2019-11-15 13:13:20 +01:00
Folkert
6d982001e8
add commented test
...
desugaring works, but generating constraints for variants (needed for
False and _) doesn't yet.
2019-11-15 13:08:17 +01:00
Folkert
b1f2a47a58
desugar if into case
...
- I think this runs into the same "cloning disaster" described in other
branches
- should "False" be qualified? could it ever be locally shadowed?
In that case it's `(&["Bool"], "False")`?
- is there a default/empty region that is preferable for the `False` and
`_` patterns?
2019-11-15 13:03:11 +01:00
Folkert
1ea0264174
changes after review
...
trust the borrow checker: reallocation of Expr is not needed
2019-11-15 12:18:06 +01:00
Folkert
a8bb717068
changes after review
2019-11-15 11:56:21 +01:00
Richard Feldman
6c0e771287
Merge pull request #1 from rtfeldman/format-records
...
Add formatting for records
2019-11-15 03:34:26 +01:00
Richard Feldman
20240df507
Replace Operator with BinOp and UnaryOp
2019-11-15 02:26:47 +00:00
Richard Feldman
307c2bbd6b
Merge remote-tracking branch 'origin/trunk' into format-records
2019-11-15 02:24:31 +00:00
Richard Feldman
eb0dce2854
Finish multiline record field formatting
2019-11-15 02:13:51 +00:00
Richard Feldman
67d512f5fb
Remove block comments
2019-11-15 02:01:40 +00:00
Richard Feldman
d662fe44ba
Merge branch 'clippy' into trunk
2019-11-15 01:31:15 +00:00
Richard Feldman
68ecfde127
Merge pull request #7 from rtfeldman/ci
...
Enable GitHub Actions CI
2019-11-15 02:30:25 +01:00
Richard Feldman
3a7401ecf6
Do what clippy says
2019-11-15 01:23:53 +00:00
Richard Feldman
45f20652d0
Disable clippy on CI for now
2019-11-15 01:20:07 +00:00
Richard Feldman
bf5b174953
Install LLVM for Clippy
2019-11-15 01:13:09 +00:00
Richard Feldman
276d91ee6c
cargo fmt
2019-11-15 00:45:21 +00:00
Richard Feldman
f3a8045322
Fix Inkwell installation in ci.yml
2019-11-15 00:42:50 +00:00
Richard Feldman
0aff715bd7
See if cargo update fixes the Inkwell error
2019-11-15 00:36:56 +00:00
Richard Feldman
02892ad0c0
Run llvm install script as root
2019-11-14 23:58:10 +00:00
Richard Feldman
e27028b1be
Rename rust.yml to ci.yml
2019-11-14 23:47:31 +00:00
Richard Feldman
fa882cc70e
Update rust.yml
2019-11-14 23:47:11 +00:00
Richard Feldman
85547ac2a0
Move rust.yml to the correct directory
2019-11-14 23:23:36 +00:00
Richard Feldman
9946ff93bf
Create rust.yml
2019-11-15 00:21:59 +01:00
Richard Feldman
baa971ad06
Merge pull request #4 from rtfeldman/cache-ci
...
Add Cache to GitHub Actions
2019-11-15 00:20:22 +01:00
Folkert
4204d21ac0
Desugar pizza into Apply
2019-11-14 23:30:07 +01:00
Folkert
28d9ce9e86
add commented test for block string
...
block strings are not parsed, so the test triggers a panic for now.
2019-11-14 22:29:44 +01:00
Richard Feldman
25cf367505
Drop resolved comment
2019-11-14 22:13:17 +01:00
Folkert
ddf0139fdb
Cannonicalize BlockStr
...
we decided that a block string can be a string (i.e. the lines are
joined with '\n').
2019-11-14 21:54:25 +01:00
Richard Feldman
e30a3628c0
Add Cache to GitHub Actions
2019-11-14 18:45:28 +01:00
Richard Feldman
0eb903bd84
Merge pull request #3 from rtfeldman/ci
...
Configure GitHub Actions
2019-11-14 18:43:53 +01:00
Richard Feldman
59252ac2ec
Configure GitHub Actions
2019-11-14 18:42:47 +01:00
Folkert
1e0634ea20
add record newline formatting test
2019-11-14 13:49:40 +01:00
Folkert
dd95a86be1
make single-line cases work correctly
2019-11-14 13:26:27 +01:00
Folkert
3444f84cf8
forgot negation
2019-11-14 12:57:10 +01:00
Folkert
7cb34eff4c
add is_multiline_field logic
2019-11-14 12:54:27 +01:00
Folkert
38462874dd
Use idiomatic empty check for array
2019-11-14 12:34:06 +01:00
Richard Feldman
ce2e7c0bb9
Add comment about reconsidering block comments
2019-11-14 00:33:42 +01:00