Commit graph

510 commits

Author SHA1 Message Date
Richard Feldman
54de538952
Merge pull request #666 from rtfeldman/return-function
Return function pointers and closures
2020-11-08 22:21:01 -05:00
lrosa007
de33e9b388 fix(List): contains list can be borrowed 2020-11-08 20:17:05 -05:00
Folkert
2d9f81ec9b fix mono error 2020-11-09 00:22:16 +01:00
Folkert
0d5aaf2aaa make getLine : Effect {} work 2020-11-08 23:36:08 +01:00
Folkert
1bce119b0a allow returning of funtions
e.g.

foo = Num.add
2020-11-08 15:49:24 +01:00
Richard Feldman
6929c63bb8
Merge branch 'trunk' into add-pkg-config 2020-11-07 22:06:08 -05:00
Folkert
c20b40a7d2 fix zero-sized closures 2020-11-08 03:08:13 +01:00
Folkert
2267a1174a introduce PhantomEmptyStruct 2020-11-08 03:08:12 +01:00
Folkert
3d092cb9b7 in theory allow non-function effects values
this does not work due to limitations with functions in tag unions
2020-11-08 03:07:59 +01:00
Folkert
2a872f180a some foundations for zero-sized values in closures 2020-11-08 01:55:06 +01:00
Jared Ramirez
74b09605a7
Merge branch 'trunk' into builtin-count-graphemes 2020-11-07 18:49:29 -06:00
Folkert
7a6ca2453a don't add PartialProc s twice 2020-11-07 23:50:19 +01:00
Folkert
ee696ef56b fix mistake 2020-11-07 13:37:22 +01:00
Folkert
fc73679932 more clippy things 2020-11-07 01:17:50 +01:00
Folkert
dfd316c062 comment memory-leaking test 2020-11-07 00:48:43 +01:00
Folkert
7cfe5efe1b Merge remote-tracking branch 'origin/trunk' into generate-effects-module 2020-11-07 00:30:23 +01:00
Folkert
9b949912d7 remove unneeded code 2020-11-07 00:28:44 +01:00
Folkert
dc199fe527 clippy 2020-11-07 00:11:40 +01:00
Folkert
cb1dff1baf cleanup 2020-11-07 00:09:45 +01:00
Jared Ramirez
e112a406a2 Fix countGrapheme wiring; Reorganize zig builtins; Streamline how we export zig function 2020-11-06 16:54:28 -06:00
Jared Ramirez
f34235e050 Fix countGrapheme args borrowing 2020-11-06 16:54:28 -06:00
Jared Ramirez
63308d90e1 Add Str.countGraphemes 2020-11-06 16:54:28 -06:00
Folkert
a6e39e66f1 generate signature for foreign symbols 2020-11-06 23:46:31 +01:00
Folkert
7a8e9fe343 special hash and dedup for SolvedType 2020-11-06 23:12:47 +01:00
Folkert
7faab5d857 remove debug prints 2020-11-06 21:51:32 +01:00
Folkert
7e6724262d make after work 2020-11-06 21:48:54 +01:00
Richard Feldman
6f4d727b6f
Merge pull request #646 from rtfeldman/add_list_contains
Add List.contains
2020-11-06 08:49:59 -05:00
Folkert
3eb6c33ad8 ITS ALIVE!!! 2020-11-06 01:50:49 +01:00
Folkert
4c3f0a5002 get foreign call compiling (but not working) 2020-11-06 00:00:47 +01:00
Folkert
2f42463a97 do the IR stuff for foreign call 2020-11-05 23:50:01 +01:00
Folkert
eae797a47a introduce ForeignSymbol wrapper 2020-11-05 23:43:32 +01:00
Folkert
3cd132dd51 introduce foreign call 2020-11-05 23:35:56 +01:00
Folkert
3d0f2751f5 commit some crimes 2020-11-05 23:18:28 +01:00
lrosa007
9269f1d8a7 feat(List): start contains function 2020-11-04 21:09:15 -05:00
Folkert
b70eb3c636 cleanup 2020-11-05 01:09:48 +01:00
Folkert
3fe0140c7e clip clip clip 2020-11-05 00:59:26 +01:00
Folkert
cb28e533b8 so close 2020-11-04 23:07:02 +01:00
Folkert
4c5a5dc6a2 thread things through 2020-11-04 21:03:43 +01:00
Folkert
2cf7a9fe42 fix tests 2020-11-03 20:13:38 +01:00
Folkert
212f8b4d50 change test runners to use new error reporting stuff 2020-11-03 19:36:02 +01:00
Folkert
1a36733c04 fix clippy issues 2020-11-02 23:44:59 +01:00
Folkert
ded8499f3a Merge branch 'multi-dep-bugs' of github.com:rtfeldman/roc into multi-dep-bugs 2020-11-02 23:25:40 +01:00
Folkert
a565ca79b8 builtins are not technically imported 2020-11-02 23:19:31 +01:00
Folkert
c933888690 differentiate between 0-arity thunks and function pointers 2020-11-02 22:50:12 +01:00
Folkert
89e01c63d1 make Num.maxInt and Num.minInt work 2020-11-02 21:49:44 +01:00
Folkert
0775f45217 thread variable through with_hole 2020-11-02 21:13:25 +01:00
Folkert
baf2d1a5bb thread variable through from_can 2020-11-02 20:34:26 +01:00
Folkert
841d696e6d cleanup 2020-11-02 20:28:12 +01:00
Folkert
497adb2ec4 always specialize imported symbols 2020-11-02 16:29:36 +01:00
Folkert
cb0bfa3eb7 Merge remote-tracking branch 'origin/trunk' into multi-dep-bugs 2020-11-02 15:52:44 +01:00