Skip to content

Commit 44cdbb2

Browse files
committed
Format code with prettier.
1 parent 267239c commit 44cdbb2

33 files changed

+1813
-1990
lines changed

.prettierrc.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{}

CHANGES.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,26 +2,26 @@
22

33
## 2.0.1
44

5-
* Fix runtime error when comparing arrays.
5+
- Fix runtime error when comparing arrays.
66

77
## 2.0.0
88

9-
* Fix runtime error caused by bad type annotation.
9+
- Fix runtime error caused by bad type annotation.
1010

1111
## 1.0.3
1212

13-
* Fix runtime error caused by bad reference in kernel code of `Array.indexedMap`.
13+
- Fix runtime error caused by bad reference in kernel code of `Array.indexedMap`.
1414

1515
## 1.0.2
1616

17-
* Fix bad type annotation for `Array.sortBy` and `Array.sortWith`.
18-
* Reduce kernel code in `Array` module.
19-
* Fix missing function call in `Array.reverse` function.
17+
- Fix bad type annotation for `Array.sortBy` and `Array.sortWith`.
18+
- Reduce kernel code in `Array` module.
19+
- Fix missing function call in `Array.reverse` function.
2020

2121
## 1.0.1
2222

23-
* Fix runtime exception when compiling applications with `--optimize` flag
23+
- Fix runtime exception when compiling applications with `--optimize` flag
2424

2525
## 1.0.0
2626

27-
* Initial release
27+
- Initial release

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ It provides **basic functionality** like addition and subtraction as well as **d
66

77
> **New to Gren?** Go to [gren-lang.org](https://gren-lang.org) for an overview.
88
9-
109
## Default Imports
1110

1211
The modules in this package are so common, that some of them are imported by default in all Gren files. So it is as if every Gren file starts with these imports:

gren.json

Lines changed: 20 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -1,56 +1,22 @@
11
{
2-
"type": "package",
3-
"platform": "common",
4-
"name": "gren-lang/core",
5-
"summary": "Gren's core modules",
6-
"license": "BSD-3-Clause",
7-
"version": "3.0.0",
8-
"exposed-modules": {
9-
"Primitives": [
10-
"Basics",
11-
"String",
12-
"Char",
13-
"Bitwise",
14-
"Math"
15-
],
16-
"Bytes": [
17-
"Bytes",
18-
"Bytes.Encode",
19-
"Bytes.Decode"
20-
],
21-
"Collections": [
22-
"Array",
23-
"Dict",
24-
"Set"
25-
],
26-
"Error Handling": [
27-
"Maybe",
28-
"Result"
29-
],
30-
"Debug": [
31-
"Debug"
32-
],
33-
"Effects": [
34-
"Platform.Cmd",
35-
"Platform.Sub",
36-
"Platform",
37-
"Process",
38-
"Task"
39-
],
40-
"Json": [
41-
"Json.Decode",
42-
"Json.Encode"
43-
],
44-
"Random": [
45-
"Random"
46-
],
47-
"Strings": [
48-
"String.Regex"
49-
],
50-
"Time": [
51-
"Time"
52-
]
53-
},
54-
"gren-version": "0.2.0 <= v < 0.3.0",
55-
"dependencies": {}
2+
"type": "package",
3+
"platform": "common",
4+
"name": "gren-lang/core",
5+
"summary": "Gren's core modules",
6+
"license": "BSD-3-Clause",
7+
"version": "3.0.0",
8+
"exposed-modules": {
9+
"Primitives": ["Basics", "String", "Char", "Bitwise", "Math"],
10+
"Bytes": ["Bytes", "Bytes.Encode", "Bytes.Decode"],
11+
"Collections": ["Array", "Dict", "Set"],
12+
"Error Handling": ["Maybe", "Result"],
13+
"Debug": ["Debug"],
14+
"Effects": ["Platform.Cmd", "Platform.Sub", "Platform", "Process", "Task"],
15+
"Json": ["Json.Decode", "Json.Encode"],
16+
"Random": ["Random"],
17+
"Strings": ["String.Regex"],
18+
"Time": ["Time"]
19+
},
20+
"gren-version": "0.2.0 <= v < 0.3.0",
21+
"dependencies": {}
5622
}

hints/0.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ The application you are using ran into a problem.
44

55
If you let their support team know about this error, please give them a link to this web page as well!
66

7-
87
<br>
98

109
## Info for Developers

hints/1.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ The application you are using ran into a problem.
44

55
If you let their support team know about this error, please give them a link to this web page as well!
66

7-
87
<br>
98

109
## Info for Developers

hints/10.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ The application you are using ran into a problem.
44

55
If you let their support team know about this error, please give them a link to this web page as well!
66

7-
87
<br>
98

109
## Info for Developers

hints/11.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ The application you are using ran into a problem.
44

55
If you let their support team know about this error, please give them a link to this web page as well!
66

7-
87
<br>
98

109
## Info for Developers

hints/2.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ The application you are using ran into a problem.
44

55
If you let their support team know about this error, please give them a link to this web page as well!
66

7-
87
<br>
98

109
## Info for Developers

hints/3.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ The application you are using ran into a problem.
44

55
If you let their support team know about this error, please give them a link to this web page as well!
66

7-
87
<br>
98

109
## Info for Developers

hints/4.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ The application you are using ran into a problem.
44

55
If you let their support team know about this error, please give them a link to this web page as well!
66

7-
87
<br>
98

109
## Info for Developers

hints/5.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ The application you are using ran into a problem.
44

55
If you let their support team know about this error, please give them a link to this web page as well!
66

7-
87
<br>
98

109
## Info for Developers

hints/6.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ The application you are using ran into a problem.
44

55
If you let their support team know about this error, please give them a link to this web page as well!
66

7-
87
<br>
98

109
## Info for Developers

hints/8.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ The application you are using ran into a problem.
44

55
If you let their support team know about this error, please give them a link to this web page as well!
66

7-
87
<br>
98

109
## Info for Developers

hints/9.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ The application you are using ran into a problem.
44

55
If you let their support team know about this error, please give them a link to this web page as well!
66

7-
87
<br>
98

109
## Info for Developers

package-lock.json

Lines changed: 35 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"scripts": {
3+
"prettier": "prettier -w ."
4+
},
5+
"devDependencies": {
6+
"prettier": "2.7.1"
7+
}
8+
}

0 commit comments

Comments
 (0)