ayazhafiz
f28ca65ac5
Error when platform package config cannot be found
...
This avoid compiler hangs that occurred before
Closes #1822
2022-01-30 21:42:41 -05:00
Folkert
afd11e1cb1
move target -> roc_target
2022-01-26 23:33:29 +01:00
Folkert
b9c318e9fb
update the tests
2022-01-26 15:59:21 +01:00
Folkert
c663a35e16
final phase
2022-01-26 15:44:24 +01:00
Folkert
74932a4cab
phase 2
2022-01-26 14:30:37 +01:00
Folkert
73bc50c952
make the surgical linker aware of custom exported closure names
2022-01-25 00:13:22 +01:00
Folkert
69bcec71eb
mark provided types as exposed, so we don't get warnings they are unused
2022-01-23 18:44:50 +01:00
Folkert
6545968c34
import UserApp's provided types into the Package-Config module
2022-01-23 18:33:50 +01:00
Folkert de Vries
82c7e8c37e
Merge pull request #2372 from rtfeldman/effect-forever
...
Add `Effect.forever`
2022-01-20 09:16:32 +01:00
Richard Feldman
6d8277ad8d
Merge pull request #2367 from rtfeldman/remove_Num.minmaxInt
...
Remove `Num.(min/max)Int`
2022-01-20 00:19:44 -05:00
Folkert
ee4c2177c0
add annotation for Effect.loop
2022-01-19 23:13:34 +01:00
Folkert
5230c6f6f3
implement Effect.loop
2022-01-19 23:06:32 +01:00
Folkert
859bdf5212
Merge remote-tracking branch 'origin/trunk' into effect-forever
2022-01-19 20:14:24 +01:00
Folkert
389681ee90
return forall b. Effect b
2022-01-19 19:19:43 +01:00
Folkert
359956220e
working definition of Effect.forever
2022-01-19 19:11:37 +01:00
Jan Van Bruggen
8e4b6f0cab
Remove Num.(min/max)Int
...
Replace all uses with `Num.(min/max)I64`,
since all uses expect an `I64`.
2022-01-19 09:55:06 -07:00
Jan Van Bruggen
1e9d2d1239
Remove accidental trailing spaces
2022-01-18 22:25:46 -07:00
Folkert
be14dd4954
write big comment on why this _should_ work
2022-01-17 00:11:58 +01:00
Folkert de Vries
e1d990896a
Merge branch 'trunk' into mono-display
2022-01-14 13:55:52 +01:00
Joshua Warner
6e67b77fa1
Remove awkward split between header_sources and defs sources
2022-01-13 19:34:17 -08:00
ayazhafiz
8d372edda1
Add config variables for printing IR during mono stages
2022-01-13 16:33:26 -05:00
ayazhafiz
e655ab7d3b
Module comments for reset-reuse
...
Figuring out what this module was doing, and why, took me a bit less
than half an hour. We should document what's happening for others in the
future so they don't need to follow up on Zulip necessarily.
2022-01-13 16:33:23 -05:00
Joshua Warner
f22f96843e
Refactor ParseProblem
...
* Remove the `pos` field, which was always being assigned Position::default()
* Remove one use of this `pos`, by removing the never-used SyntaxError::ConditionFailed variant
* Adjust the other use to do what was probably intended - which is to say, pointing to the beginning of the def with the error
* Rename to FileError, reuse `SourceError` as an inner field, to avoid duplicating the `bytes`
2022-01-03 20:10:50 -08:00
Joshua Warner
8092f31a29
fmt
2022-01-01 18:20:05 -08:00
Joshua Warner
5c1084c453
Introduce SourceError to represent an error + original source
2022-01-01 18:20:05 -08:00
Joshua Warner
cb8cf44596
fmt
2022-01-01 18:20:05 -08:00
Joshua Warner
82d2be0635
Introduce LineColumnRegion and force conversion
2022-01-01 18:20:05 -08:00
ayazhafiz
966198a6e7
Coalesce inline and normal alias headers
...
Unifies `As` annotations and `Alias` defs to use a common struct for
defining alias header information, i.e. the name and type variables of
the alias.
2021-12-26 09:37:56 -06:00
Joshua Warner
8b58d5cbc7
Switch to always encoding package names / paths as strings
...
This will simplify parsing and make it possible to have a uniform lexer for the language. Previously unquoted package names were allowed to include '-'s, which aren't valid identifiers.
In the future, we'll distinguish local paths from packages in the package-manager by looking for a ".roc" suffix, which should only be present in local paths.
2021-12-23 20:11:14 -08:00
Folkert de Vries
da6950d67d
Merge pull request #2270 from rtfeldman/remove-stale-todos
...
Remove stale todos in load tests
2021-12-24 00:02:48 +01:00
ayazhafiz
352754960f
Remove stale todos in load tests
...
These no longer seem to be issues.
2021-12-23 15:29:27 -06:00
Joshua Warner
f19220473a
Rename Located -> Loc
2021-12-22 19:18:22 -08:00
Joshua Warner
49818343dd
extract state
2021-12-16 17:13:53 -08:00
Joshua Warner
63056eeeac
Remove spaces from header 'Info' structs
2021-12-14 19:53:23 -08:00
Joshua Warner
0786e554c6
Extract spacing from parse::header::* items into explicit Spaced enum
2021-12-14 19:53:20 -08:00
Richard Feldman
01038ed53c
Merge pull request #2192 from rtfeldman/rename-base-to-pf
...
Rename `base` package to `pf` everywhere, to match tutorial
2021-12-14 22:00:22 -05:00
Joshua Warner
6fcdc46c03
Allow newlines in package entries
2021-12-12 20:33:35 -08:00
Jan Van Bruggen
d03a51c75b
Rename base
package to pf
everywhere, to match tutorial
2021-12-12 05:57:39 -07:00
Folkert
0052ccda38
cleanup in file.rs
2021-12-05 15:19:02 +01:00
Folkert
bb73ac94eb
remove unused struct type
2021-12-05 15:18:00 +01:00
Folkert
bb853a1a64
remove unused fields from State
2021-12-05 15:16:48 +01:00
Folkert
21ff434fe3
use unused values
2021-12-05 15:13:41 +01:00
Folkert
e0468363fb
remove headers_parsed
2021-12-05 15:13:32 +01:00
Folkert
0bdda2506c
add update mode to reset and reuse
2021-11-28 14:13:02 +01:00
Folkert
1241d5ccbd
make UpdateModeIds a proper type
2021-11-28 14:03:48 +01:00
Joshua Warner
f25323e8a7
Implement platform header formatting
2021-11-25 08:19:31 -08:00
Joshua Warner
f4e29bd267
Merge pull request #2069 from rtfeldman/joshuawarner32/impl-app-header-formatting
...
Implement [more] app header formatting
2021-11-25 07:24:06 -08:00
Joshua Warner
24f7692a73
Implement [more] app header formatting
...
Also, refactor out a utility method to format a Collection. This method can currently
replace some of the formatting done in module headers - but the goal is eventually
to be able to replace the code in fmt_list as well, such that there is 'one true way'
to format collections.
2021-11-23 12:19:43 -08:00
Brian Carroll
98474a500a
Add a list of starting points to get familiar with compiler code
2021-11-23 00:29:55 +00:00
Richard Feldman
763809805b
Drop unused alias info
2021-11-21 13:35:23 -05:00