<div dir="ltr">The docs at<div><br></div><div>  <a href="http://www.haskell.org/ghc/docs/latest/html/libraries/base/Prelude.html#v:gcd">http://www.haskell.org/ghc/docs/latest/html/libraries/base/Prelude.html#v:gcd</a></div>

<div><br></div><div>give a NB mentioning that (abs minBound == minBound) is possible for fixed-width types.<br></div><div><br></div><div>This holds, for example, at Int. It is also the case that (negate minBound == minBound).</div>

<div><br></div><div>Two questions:</div><div><br></div><div>  1) This behavior surprised me. Does it surprise enough people to include a warning in the Haddock for abs and negate? IE Here.</div><div><br></div><div>    <a href="http://www.haskell.org/ghc/docs/latest/html/libraries/base/Prelude.html#t:Num">http://www.haskell.org/ghc/docs/latest/html/libraries/base/Prelude.html#t:Num</a></div>

<div><br></div><div>  2) Is this a common behavior in other languages? My tinkering with gcc suggests it does not support the value -2^63, but instead bottoms out at (-2^63+1).</div><div><br></div><div>Thanks.</div></div>