File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
message-index/messages/GHC-55666 Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -6,11 +6,12 @@ flag: -Wredundant-strictness-flags
6
6
introduced : GHC 9.6.1
7
7
---
8
8
9
- A strictness annotation (also called a bang: ` ! ` ) can be used to denote that a type should not be evaluated lazily.
9
+ A strictness annotation (also called a bang: ` ! ` ) can be used to denote that a value should not be evaluated lazily.
10
10
In some cases this can lead to faster code because fewer heap allocation are required.
11
+ Here it is used to mark a that a field in a datatype should not be evaluated lazily.
11
12
12
13
However, unlifted types like ` Int# ` are strict by definition because they are a value,
13
14
not a pointer to a potentially unevaluated value (thunk).
14
15
15
- Therefore, adding strictness annotations to unlifted types or fields of such types are redudant .
16
- They should be omitted to prevent confusion.
16
+ Therefore, adding strictness annotations to unlifted types or fields of such types are redundant .
17
+ They should be omitted to avoid confusion.
You can’t perform that action at this time.
0 commit comments