anton-k / ru-haskell-book

учебник по Haskell
Other
274 stars 24 forks source link

typo: wrong boundaries for Int #78

Open irishterrier opened 10 years ago

irishterrier commented 10 years ago

http://anton-k.github.io/ru-haskell-book/book/2.html : "Числа из типа Int ограничены. Каждое число занимает определённый размер в памяти компьютера. Диапазон значений для Int составляет от -229 до 229-1" .

According http://hackage.haskell.org/package/base-4.6.0.1/docs/Data-Int.html :

data Int Source

A fixed-precision integer type with at least the range [-2^29 .. 2^29-1]. The exact range for a given implementation can be determined by using minBound and maxBound from the Bounded class.