4 ms·
From the (extremely readable) Haskell Report, §6.4: > The results of exceptional conditions (such as overflow or underflow) on the fixed-precision numeric type
by johnday 5y ago
From the (extremely readable) Haskell Report, §6.4:
> The results of exceptional conditions (such as overflow or underflow) on the fixed-precision numeric types are undefined; an implementation may choose error (⊥, semantically), a truncated value, or a special value such as infinity, indefinite, etc.
So you're right, it's a choice made by GHC. Indeed, by the Report, it would be legal for a Haskell implementation to simply refuse to answer, and never return a value.