Commit 0fdd17b
authored
Merge #985: Prelude & Nix.Utils
We essentially had 2 preludes, now they are merged & allow to control what parts of `relude` are exposed.
It clean-up imports quite a bit & provides a set of frequently used functions.
`relude` is a pretty good prelude, but it still has flaws (for example it exposes a mix of `Text` & `String` functions, which is weird from the outside). If we want to use `Text` internally - that should be it, conversion can still be needed (for `base` ^ GHC reasons), but at least is would be only on the IO margins (which are `prelude` functions), not 2 conversions in the middle of data flow.
This setup helps to program with supplying `Text` type functions & support of stronger types.
Now we have both the most flexible `Prelude` setup & the `Nix.Utils` that holds custom code, nice.File tree
51 files changed
+547
-487
lines changed- benchmarks
- main
- src
- Nix
- Cited
- Effects
- Expr
- Types
- Fresh
- Render
- String
- Thunk
- Type
- Value
- tests
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
51 files changed
+547
-487
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
24 | | - | |
| 23 | + | |
| 24 | + | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
28 | | - | |
| 27 | + | |
| 28 | + | |
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| |||
2667 | 2667 | | |
2668 | 2668 | | |
2669 | 2669 | | |
| 2670 | + | |
2670 | 2671 | | |
2671 | 2672 | | |
2672 | | - | |
| 2673 | + | |
2673 | 2674 | | |
2674 | 2675 | | |
2675 | 2676 | | |
2676 | 2677 | | |
2677 | 2678 | | |
| 2679 | + | |
| 2680 | + | |
| 2681 | + | |
| 2682 | + | |
| 2683 | + | |
| 2684 | + | |
| 2685 | + | |
| 2686 | + | |
| 2687 | + | |
| 2688 | + | |
| 2689 | + | |
| 2690 | + | |
| 2691 | + | |
| 2692 | + | |
| 2693 | + | |
| 2694 | + | |
| 2695 | + | |
| 2696 | + | |
| 2697 | + | |
| 2698 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | 3 | | |
5 | 4 | | |
6 | 5 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
341 | 341 | | |
342 | 342 | | |
343 | 343 | | |
| 344 | + | |
344 | 345 | | |
| 346 | + | |
345 | 347 | | |
346 | 348 | | |
347 | 349 | | |
| |||
383 | 385 | | |
384 | 386 | | |
385 | 387 | | |
386 | | - | |
387 | 388 | | |
388 | 389 | | |
389 | 390 | | |
| |||
392 | 393 | | |
393 | 394 | | |
394 | 395 | | |
| 396 | + | |
395 | 397 | | |
396 | 398 | | |
397 | 399 | | |
398 | 400 | | |
399 | 401 | | |
400 | 402 | | |
401 | | - | |
402 | 403 | | |
403 | 404 | | |
404 | 405 | | |
| |||
477 | 478 | | |
478 | 479 | | |
479 | 480 | | |
| 481 | + | |
480 | 482 | | |
481 | 483 | | |
482 | 484 | | |
| |||
532 | 534 | | |
533 | 535 | | |
534 | 536 | | |
535 | | - | |
536 | 537 | | |
537 | 538 | | |
538 | 539 | | |
| |||
544 | 545 | | |
545 | 546 | | |
546 | 547 | | |
| 548 | + | |
547 | 549 | | |
548 | 550 | | |
549 | 551 | | |
| |||
579 | 581 | | |
580 | 582 | | |
581 | 583 | | |
582 | | - | |
583 | 584 | | |
584 | 585 | | |
585 | 586 | | |
| |||
623 | 624 | | |
624 | 625 | | |
625 | 626 | | |
| 627 | + | |
626 | 628 | | |
627 | 629 | | |
628 | 630 | | |
| |||
650 | 652 | | |
651 | 653 | | |
652 | 654 | | |
653 | | - | |
654 | 655 | | |
655 | 656 | | |
656 | 657 | | |
| |||
676 | 677 | | |
677 | 678 | | |
678 | 679 | | |
| 680 | + | |
679 | 681 | | |
680 | 682 | | |
681 | 683 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
3 | 2 | | |
4 | 3 | | |
5 | 4 | | |
6 | 5 | | |
7 | 6 | | |
8 | | - | |
| 7 | + | |
9 | 8 | | |
10 | 9 | | |
11 | 10 | | |
12 | 11 | | |
13 | 12 | | |
14 | 13 | | |
15 | | - | |
16 | | - | |
17 | | - | |
| 14 | + | |
18 | 15 | | |
19 | 16 | | |
20 | | - | |
21 | | - | |
22 | 17 | | |
23 | 18 | | |
24 | 19 | | |
| |||
56 | 51 | | |
57 | 52 | | |
58 | 53 | | |
59 | | - | |
| 54 | + | |
60 | 55 | | |
61 | 56 | | |
62 | 57 | | |
63 | 58 | | |
64 | 59 | | |
65 | 60 | | |
66 | | - | |
| 61 | + | |
67 | 62 | | |
68 | 63 | | |
69 | 64 | | |
| |||
83 | 78 | | |
84 | 79 | | |
85 | 80 | | |
86 | | - | |
| 81 | + | |
87 | 82 | | |
88 | | - | |
89 | | - | |
| 83 | + | |
| 84 | + | |
90 | 85 | | |
91 | 86 | | |
92 | 87 | | |
| |||
97 | 92 | | |
98 | 93 | | |
99 | 94 | | |
100 | | - | |
| 95 | + | |
101 | 96 | | |
102 | | - | |
| 97 | + | |
103 | 98 | | |
104 | 99 | | |
105 | 100 | | |
| |||
126 | 121 | | |
127 | 122 | | |
128 | 123 | | |
129 | | - | |
| 124 | + | |
130 | 125 | | |
131 | 126 | | |
132 | 127 | | |
| |||
159 | 154 | | |
160 | 155 | | |
161 | 156 | | |
162 | | - | |
| 157 | + | |
163 | 158 | | |
164 | 159 | | |
165 | 160 | | |
| |||
245 | 240 | | |
246 | 241 | | |
247 | 242 | | |
248 | | - | |
| 243 | + | |
249 | 244 | | |
250 | 245 | | |
251 | | - | |
| 246 | + | |
252 | 247 | | |
253 | 248 | | |
254 | 249 | | |
| |||
0 commit comments