<!DOCTYPE html><html><body><div dir="auto">On August 3, 2025 9:17:20 PM GMT+02:00, Stefan Klinger <haskell@stefan-klinger.de> wrote:<br>>> Well, IIUC, it conforms to the Haskell 98 specification.<br>>I don't think the Haskell Spec really *requires* the `read` function<br>>for a bounded integral type to wrap around.<br><br>The Haskell 98 report says that reading numerical literals is defined as applying `fromInteger` in section 6.4.1 and section 6.4 says an implementation may choose to use a truncated value on overflow (or may choose anything else, it's undefined). Truncating an unbounded integer to a fixed sized would produce wrapping around.<br><br><<a href="https://www.haskell.org/onlinereport/basic.html#sect6.4.1">https://www.haskell.org/onlinereport/basic.html#sect6.4.1</a>><br><br>Curiously,<br>Pierre Thierry </div></body></html>