Skip to content

Commit 9fd8566

Browse files
fixup! document GHC-55666
1 parent 0cd2229 commit 9fd8566

File tree

1 file changed

+4
-3
lines changed
  • message-index/messages/GHC-55666

1 file changed

+4
-3
lines changed

message-index/messages/GHC-55666/index.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,12 @@ flag: -Wredundant-strictness-flags
66
introduced: GHC 9.6.1
77
---
88

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.
1010
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.
1112

1213
However, unlifted types like `Int#` are strict by definition because they are a value,
1314
not a pointer to a potentially unevaluated value (thunk).
1415

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.

0 commit comments

Comments
 (0)