Ayaz Hafiz
a3ac68a41f
Split up Defs into TypeDef and ValueDef
...
Just a refactoring PR. This is useful because during canonicalization
we always process type defs first, then value defs. With abilities this
distinction continues to grow; in that case, we have patterns associated
with types that we want to process before patterns from values.
2022-04-06 22:18:57 -04:00
Ayaz Hafiz
eee19bba2b
s/demands/members
2022-04-06 11:34:55 -04:00
ayazhafiz
d7abc3897b
Parse abilities
2022-03-12 21:29:06 -06:00
Anton-4
56dc06a139
fixed the previous formatting change when inside longer pipeline
2022-03-09 14:07:52 +01:00
Anton-4
ba5d47d270
Merge branch 'trunk' of github.com:rtfeldman/roc into roc_fmt_fixes
2022-03-08 13:57:20 +01:00
Anton-4
dd85caa85a
removed redundant derefs
2022-03-08 13:56:43 +01:00
Anton-4
0637344361
cleanup
2022-03-07 18:16:17 +01:00
Anton-4
d8b4feb659
fmt+clippy
2022-03-07 16:24:30 +01:00
Anton-4
21a30b1e83
fixed indentation for apply args
2022-03-07 16:23:15 +01:00
Anton-4
454933e2c6
fixed unnecessary double indentation
2022-03-07 16:02:11 +01:00
Richard Feldman
19cc7fdcaa
Merge pull request #2658 from rtfeldman/newline
...
Tests for trailing newline formatting
2022-03-07 08:34:20 -05:00
Folkert
836967b919
some other clippy things in tests
2022-03-06 19:07:38 +01:00
Richard Feldman
a8eff47f87
Use len_utf8 over hardcoded 1
...
This will compile to the same thing but makes the reason
for the addition more self-documenting.
2022-03-06 11:26:48 -05:00
Richard Feldman
49fcd03941
Test trailing newline logic
2022-03-06 11:12:43 -05:00
Richard Feldman
8f6f20b57d
Avoid reallocation when ensuring trailing newline
2022-03-06 11:12:43 -05:00
Philippe Vinchon
813845e7d1
Trim end and add empty line for POSIX
2022-03-05 22:31:57 +00:00
Pierre-Henri Trivier
1d3aa26193
Fixes #2586
2022-03-04 23:50:00 +01:00
Philippe Vinchon
b9365d06e3
Allow multi string in RePL
2022-03-03 21:15:01 +00:00
Richard Feldman
d3acf34415
Merge pull request #1591 from rtfeldman/single-quote-literal
...
Single Quote literal
2022-02-26 23:27:46 -05:00
Brendan Hansknecht
f7c0e2ef19
Merge remote-tracking branch 'origin/trunk' into single-quote-literal
2022-02-24 10:13:39 -08:00
Richard Feldman
655373dbe7
Merge remote-tracking branch 'origin/trunk' into gui-example
2022-02-23 21:25:01 -05:00
Richard Feldman
0d037f2204
Appease clippy
2022-02-23 21:19:02 -05:00
ayazhafiz
6104a27b45
Parse opaque references
2022-02-19 21:30:42 -05:00
ayazhafiz
a38f1d1e8d
Fmt and clippy
2022-02-19 20:54:21 -05:00
ayazhafiz
fa24e51593
Parse opaque types
2022-02-19 18:38:31 -05:00
ayazhafiz
8ce81e4607
AliasHeader -> TypeHeader
2022-02-19 17:51:56 -05:00
Richard Feldman
881bae7267
Merge branch 'trunk' into fix-module-formatting
2022-02-04 23:03:52 -05:00
Folkert
71cae79b02
fix annoying spaces debug_assert failure
2022-02-04 23:00:10 +01:00
Folkert
f1ebc523b6
Merge remote-tracking branch 'origin/trunk' into hook-up-hosted-modules
2022-02-04 00:07:23 +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
ayazhafiz
a6f7579c07
Parse and expand numeric bounds in canonicalization pass
2022-02-01 22:50:46 -05:00
ayazhafiz
9f72b2710f
Run linter
2022-02-01 22:49:52 -05:00
ayazhafiz
320827167f
Parse number literal width suffixes
...
Supports [u,i][8,16,32,64,128] and [nat,dec]
Part of #2350
2022-02-01 22:48:48 -05:00
Richard Feldman
bfb938914f
Fix some missing indentations
2022-02-01 21:34:18 -05:00
Richard Feldman
200e237393
Add tests for multiline interface and hosted modules
2022-02-01 21:22:35 -05:00
Richard Feldman
34e9b1b73d
Fix module formatting
2022-02-01 21:22:35 -05:00
Richard Feldman
271112fec1
Finish implementing is_multiline for Spaced
2022-02-01 21:18:54 -05:00
Richard Feldman
3b1ca5c310
Refactor is_multiline for collections
2022-02-01 21:18:30 -05:00
Richard Feldman
099a0b5d41
Add formatting test for hosted modules
2022-01-30 20:40:51 -05:00
Richard Feldman
270374044f
Make Buf derive Debug
2022-01-30 20:40:50 -05:00
Richard Feldman
ea5365d6cc
Make Newlines optimize better to bool
2022-01-30 20:40:50 -05:00
Richard Feldman
5c6d2a909e
Make Collection formattable
2022-01-30 20:40:50 -05:00
Richard Feldman
c3123de737
format hosted modules
2022-01-30 20:40:49 -05:00
Folkert
eb08c12099
format as
aliases with parens
2022-01-23 21:45:06 +01:00
Folkert
f76a75b00e
formatting fixes
2022-01-23 21:25:20 +01:00
Richard Feldman
c1c0ffb25f
Use UppercaseIdent over PlatformRigids
2022-01-23 11:13:23 -05:00
Jan Van Bruggen
1e9d2d1239
Remove accidental trailing spaces
2022-01-18 22:25:46 -07:00
Joshua Warner
8d6eb178b1
Fix multiline pattern heuristic
2022-01-01 18:20:05 -08:00
Joshua Warner
443d738f9b
Make Position::{line, column} fields private
2022-01-01 18:20:05 -08:00