Skip to content

Commit 4c4d325

Browse files
Apply suggestions from code review
Co-authored-by: David Thrane Christiansen <[email protected]>
1 parent f36121e commit 4c4d325

File tree

1 file changed

+2
-2
lines changed
  • message-index/messages/GHC-97441

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ flag: -Woverflowed-literals
99
This warning is emitted if an integer literal (that is, a constant integer value in the source code) will overflow.
1010

1111
Many integer types have fixed precision. This means that only a certain number of bits are available to represent their values.
12-
You can check the minimum / maximum values representable by given type by using `minBound` / `maxBound` from [Bounded](https://hackage.haskell.org/package/base-4.18.0.0/docs/Prelude.html#t:Bounded) typeclass defined in the `base` package. The range of supported values might differ based on what OS / platform you’re using.
12+
You can check the minimum and maximum values representable by given type by using `minBound` and `maxBound` from the [Bounded](https://hackage.haskell.org/package/base-4.18.0.0/docs/Prelude.html#t:Bounded) type class defined in the `base` package. The range of supported values might differ based on what OS / platform you’re using.
1313

1414
```haskell
1515
>>> minBound :: Int
@@ -18,7 +18,7 @@ You can check the minimum / maximum values representable by given type by using
1818
9223372036854775807
1919
```
2020

21-
Calculations that exceed this range cause the value to wrap around, which is called "overflow" or "underflow". Literals outside the range also overflow. This doesn't cause error at runtime, but might cause confusion because overflowed value is usually not what you want or expect.
21+
Calculations that exceed this range cause the value to wrap around, which is called "overflow" or "underflow". Literals outside the range also overflow. This doesn't cause an error at runtime, but it might cause confusion because the overflowed value is usually not what you want or expect.
2222

2323
To fix the warning you can:
2424

0 commit comments

Comments
 (0)