Commit Graph

1456 Commits

Author SHA1 Message Date
Ayaz Hafiz
18713e2209
cli-platform handles roc_panic RocStr 2022-11-24 14:46:50 -06:00
Richard Feldman
c63425e188
Fix test 2022-11-24 12:06:58 -05:00
Richard Feldman
2e61df3b96
roc format 2022-11-24 05:47:35 -05:00
Richard Feldman
8bbc3ad925
Drop Program and third type param from Task 2022-11-24 03:21:14 -05:00
Brian Carroll
6cca2cd193
virtual-dom: get rid of Lazy for now 2022-11-22 08:58:50 +00:00
Brian Carroll
9a992b1399
virtual-dom: Bring back named type variables 2022-11-22 08:42:10 +00:00
Brian Carroll
95e5faa2c4
virtual-dom: Expose translate and translateStatic, fix type in test 2022-11-22 08:37:18 +00:00
Brian Carroll
5d90d2ab3d
Merge branch 'main' of github.com:roc-lang/roc into virtual-dom 2022-11-22 08:08:00 +00:00
Ayaz
1a3119e4c5
Merge pull request #4525 from roc-lang/fix-fixpoints-2
Implement fixpoint-fixing and unconditionally emplace variables into type indices
2022-11-19 17:47:02 -06:00
Richard Feldman
0b2c2ab36c
Fix compiler warnings on examples/cli/echo.roc 2022-11-18 14:01:55 -05:00
Ayaz Hafiz
f0fbf16be6
Remove panicking line in Args.roc 2022-11-16 14:05:51 -06:00
Folkert de Vries
0920fb4227
Merge pull request #4508 from roc-lang/windows-final-cli-tests
Windows final cli tests
2022-11-16 18:21:49 +01:00
Anton-4
5a447a9fcc
Merge branch 'main' of https://github.com/roc-lang/roc into windows-final-cli-tests 2022-11-16 13:58:17 +01:00
Anton-4
e9d8d13b02
windows fixes, error improvements 2022-11-16 13:55:58 +01:00
Ayaz Hafiz
b6f53f22c3
Fix inline expects on macos
MacOS SIGUSR1 is signal 30, not 10 as it is on Linux.
At least on MacOS clang, we need the added headers to the c platform's
host to compile correctly.
2022-11-15 09:30:28 -06:00
Ayaz
b907f01f1f
Merge pull request #4507 from roc-lang/alias-analysis-rc-recursion
fix stack overflow in alias analysis
2022-11-12 12:54:06 -06:00
Anton-4
084cf819d3
Merge pull request #4506 from roc-lang/csv-parser-zig
csv parser: rewrite host to zig
2022-11-12 16:17:33 +01:00
Brian Carroll
07efb32173
Merge pull request #4494 from roc-lang/wasm-example-fixes
Fixes for WebAssembly platform-switching example
2022-11-12 13:44:54 +00:00
Folkert
2318ffe31d
don't include header files that don't exist on windows 2022-11-12 14:38:26 +01:00
Folkert
9536d0b1a0
fixes for the False example 2022-11-12 13:55:13 +01:00
Anton-4
7f93bf8074
add nightly instructions
Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>
2022-11-12 13:55:06 +01:00
Richard Feldman
83e4eef475
Merge pull request #4492 from joshuawarner32/tuple-syntax-1
Implement initial tuple syntax
2022-11-11 17:55:25 -08:00
Folkert
ce61a40f5b
change parser host to zig 2022-11-11 23:45:32 +01:00
Richard Feldman
58ea07f14f
Merge pull request #4503 from roc-lang/windows-cli-tests
Windows rust platforms
2022-11-11 09:42:06 -08:00
Folkert
21600828b2
c conditional compilation, for real 2022-11-11 11:09:15 +01:00
Folkert
e0b67e0445
c conditional compilation? 2022-11-11 10:24:23 +01:00
Brian Carroll
760aa665d2
test won't run because of type issues 2022-11-11 08:42:42 +00:00
Folkert
b6b7d186e4
make new extern functions compile on windows 2022-11-10 23:14:41 +01:00
Folkert
11360edf7b
make effects platform work on windows 2022-11-10 22:11:21 +01:00
Anton-4
fe16c1bb8e
Merge pull request #4500 from roc-lang/c_missing_include
add missing includes for clang 14
2022-11-10 11:39:23 +01:00
Joshua Warner
cdbdfeeaa4
Use closure syntax in parentheses in False.roc 2022-11-09 19:00:27 -05:00
Brian Carroll
34c3793529
Create an example app 2022-11-09 22:29:41 +00:00
Brian Carroll
65ae1ca227
server-side-rendering readme disclaimer 2022-11-09 21:00:11 +00:00
Brian Carroll
ef03ea2f48
rename virtual-dom -> server-side-rendering 2022-11-09 20:55:16 +00:00
Anton-4
cd375538f2
add missing includes for clang 14
I believe implicit declarations(=missing headers) used to be a warning in clang 13 but this now an error in clang 14
2022-11-09 20:46:48 +01:00
Folkert
b8145e8eb8
fix missing import 2022-11-09 13:05:54 +01:00
Brian Carroll
c92f7ffd22
virtual-dom: readme updates 2022-11-09 09:08:34 +00:00
Brian Carroll
d22220fe0e
virtual-dom: try to recurse on children... but it's time to put this on hold! 2022-11-09 09:08:34 +00:00
Brian Carroll
d8a10f0d9d
virtual-dom: Use Rendered and NotRendered instead of Ok and Err 2022-11-09 09:08:34 +00:00
Brian Carroll
6f875ed472
virtual-dom: workaround type checker issues by ignoring event listeners 2022-11-09 09:08:34 +00:00
Brian Carroll
536fa7b9f1
Failed fix: get rid of type alias 2022-11-09 09:08:34 +00:00
Brian Carroll
448a667632
BAD TYPE CHECK ERROR 2022-11-09 09:08:34 +00:00
Brian Carroll
8cd2dc3632
virtual-dom: implement Effect.map 2022-11-09 09:08:34 +00:00
Brian Carroll
ca3df27330
virtual-dom: further work on createSubTree 2022-11-09 09:08:34 +00:00
Brian Carroll
511c7397f1
virtual-dom: start implementing createSubTree 2022-11-09 09:08:34 +00:00
Brian Carroll
e36d93a765
virtual-dom: updateTextNode 2022-11-09 09:08:34 +00:00
Brian Carroll
586b204876
virtual-dom: get rid of the "multiple views" idea
It's a bit hard to program with and takes a lot of explaining.
For now let's keep things a bit more traditional and get it working.
2022-11-09 09:08:34 +00:00
Brian Carroll
c21903938f
virtual-dom: Initial draft of backend host 2022-11-09 09:08:34 +00:00
Brian Carroll
cb0c3867e1
virtual-dom: Create runInVdomArena as a nicer API to the arena 2022-11-09 09:08:34 +00:00
Brian Carroll
81e94a0578
virtual-dom: finish writing dispatchEvent 2022-11-09 09:08:34 +00:00
Brian Carroll
d82396a23f
virtual-dom: explicit Err for UnusedViews 2022-11-09 09:08:34 +00:00
Brian Carroll
df4e5de5ee
virtual-dom: replace type variables with _ 2022-11-09 09:08:34 +00:00
Brian Carroll
cc59a2b66c
virtual-dom: remove unnecessary wildcards in error types 2022-11-09 09:08:34 +00:00
Brian Carroll
9c7db010af
virtual-dom: be specific about where Encoding and Decoding are needed 2022-11-09 09:08:34 +00:00
Brian Carroll
5960dd0bcf
COMPILER CRASH.. I thought maybe it was to do with open vs closed unions but no joy 2022-11-09 09:08:34 +00:00
Brian Carroll
15ebbe238e
COMPILER CRASH... is this not how you're supposed to use error tags? 2022-11-09 09:08:34 +00:00
Brian Carroll
9e92ad7f30
COMPILER CRASH, where I was hoping for a message telling me which Result.Err tags I need for decoding 2022-11-09 09:08:34 +00:00
Brian Carroll
6ec7b870df
virtual-dom: initClientApp 2022-11-09 09:08:34 +00:00
Brian Carroll
bfb123ffc4
virtual-dom: server-side app init function 2022-11-09 09:08:34 +00:00
Brian Carroll
bbf93663fa
COMPILER CRASH on type error 2022-11-09 09:08:34 +00:00
Brian Carroll
1cda52ed19
Why won't roc format let me have blank lines between comments?!
In Elm and Haskell I often like to break up a file into sections using big comments
It should be OK for files to get big in these languages, as discussed in
[The life of a file](https://www.youtube.com/watch?v=XpDsk374LDE)
And when they do, I want blank lines!
2022-11-09 09:08:34 +00:00
Brian Carroll
3ca64462f1
Revert "COMPILER CRASH instead of nice error"
This reverts commit 73115e7bddea49d1bab7b35d362d21a3588e5766.
2022-11-09 09:08:34 +00:00
Brian Carroll
184609531b
COMPILER CRASH instead of nice error 2022-11-09 09:08:34 +00:00
Brian Carroll
3de55eb939
virtual-dom: remove unused custom equality 2022-11-09 09:08:34 +00:00
Brian Carroll
77ff6702df
virtual-dom: formatting 2022-11-09 09:08:34 +00:00
Brian Carroll
d834e77481
virtual-dom: populateViewContainers shouldn't take an id 2022-11-09 09:08:34 +00:00
Brian Carroll
9b95bc0041
Revert "COMPILER PANIC instead of nice error, when using a type instead of a type constructor"
This reverts commit a24dc08856f05b003ecd152de4aa1781b2203f08.
2022-11-09 09:08:34 +00:00
Brian Carroll
0a254fce90
COMPILER PANIC instead of nice error, when using a type instead of a type constructor 2022-11-09 09:08:34 +00:00
Brian Carroll
a3a8759d5a
virtual-dom: custom equality for Attribute 2022-11-09 09:08:34 +00:00
Brian Carroll
8c3158c3e0
COMPILER CRASH: member signature lambda sets should contain only one unspecialized lambda
set
2022-11-09 09:08:34 +00:00
Brian Carroll
484db7c469
virtual-dom: make Handler private 2022-11-09 09:08:34 +00:00
Brian Carroll
6dcd9c5327
virtual-dom: 🎨 cosmetic cleanups 2022-11-09 09:08:34 +00:00
Brian Carroll
16f0d893c8
virtual-dom: fix populateViewContainers 2022-11-09 09:08:34 +00:00
Brian Carroll
84c82d9d95
COMPILER CRASH. Stack overflow caused by Internal.roc:364 2022-11-09 09:08:34 +00:00
Brian Carroll
eb5fa70be6
virtual-dom: write indexNodes and update readme on SSR 2022-11-09 09:08:34 +00:00
Brian Carroll
846e14bff4
Revert "COMPILER STUCK on missing tag parameter"
This reverts commit 758bf96b8d86fd849601e4a40d09340354fe3268.
2022-11-09 09:08:34 +00:00
Brian Carroll
0f571e185d
COMPILER STUCK on missing tag parameter 2022-11-09 09:08:34 +00:00
Brian Carroll
e27dd67de9
virtual-dom: add a JsIndex param to Html 2022-11-09 09:08:34 +00:00
Brian Carroll
021e5ca469
COMPILER CRASH. Updated union type without updating when patterns. 2022-11-09 09:08:34 +00:00
Brian Carroll
57c7645d4b
virtual-dom: readme notes about SSR 2022-11-09 09:08:34 +00:00
Brian Carroll
7aad5147da
virtual-dom: rename Node -> Html 2022-11-09 09:08:34 +00:00
Brian Carroll
b28d2731a8
virtual-dom: readme changes 2022-11-09 09:08:34 +00:00
Brian Carroll
22fa01a831
virtual-dom: Move all host JS code inside the init closure 2022-11-09 09:08:34 +00:00
Brian Carroll
fc18bc5b0c
virtual-dom: rename HostJavaScript 2022-11-09 09:08:34 +00:00
Brian Carroll
acf4e39980
virtual-dom: translateStatic 2022-11-09 09:08:34 +00:00
Brian Carroll
9beaedc536
virtual-dom: create App type and rocScript function 2022-11-09 09:08:34 +00:00
Brian Carroll
fbc8e684fd
virtual-dom: move internal functions into Html.Internal 2022-11-09 09:08:34 +00:00
Brian Carroll
34095b3de5
virtual-dom: fix TypeScript annotation for Roc tag union as JSON 2022-11-09 09:08:34 +00:00
Brian Carroll
5c4aab4924
virtual-dom: work around type checker bug 2022-11-09 09:08:34 +00:00
Brian Carroll
7ae63b5bf4
virtual-dom: Convert TypeScript annotations to JSDoc format 2022-11-09 09:08:34 +00:00
Brian Carroll
209a96db9d
virtual-dom: create translate function (confusing type error) 2022-11-09 09:08:34 +00:00
Brian Carroll
3bd065dbd8
virtual-dom: Make renderStatic for static HTML only 2022-11-09 09:08:34 +00:00
Brian Carroll
b07576ee07
virtual-dom: Get rid of union types. Create Html.Internal. Fix errors. 2022-11-09 09:08:34 +00:00
Brian Carroll
a906d7daa0
virtual-dom: Functions for event handling 2022-11-09 09:08:34 +00:00
Brian Carroll
be2bcb6ae5
virtual-dom: flesh out Event.roc and create Action.roc 2022-11-09 09:08:34 +00:00
Brian Carroll
c84dc0beac
virtual-dom: sketch out plans for event-related types 2022-11-09 09:08:34 +00:00
Brian Carroll
d55b9a7bcc
virtual-dom: fix up some tag types 2022-11-09 09:08:34 +00:00
Brian Carroll
9b09c9ef5e
virtual-dom: load and initialize WebAssembly 2022-11-09 09:08:34 +00:00
Brian Carroll
d81c11dad9
virtual-dom: readme updates (TODO) 2022-11-09 09:08:34 +00:00
Brian Carroll
10628dcc65
virtual-dom: JS error handling 2022-11-09 09:08:34 +00:00