Answer the question
In order to leave comments, you need to log in
What is the actual size of the Int type on the GHC platform, Windows 64?
I googled that the size of the sish type int on Linux 32, Linux 64, Windows 32, Windows 64 platforms is 4 bytes.
Interested in the actual size of the Int type when programming in Haskell.
Answer the question
In order to leave comments, you need to log in
I answer myself.
I managed to find a cloud with Windows Server 2019, 64 bit.
In this cloud, I downloaded the old version of Haskell Platform.
There are no new versions of Haskell Platform, instead they offer some kind of Chocolatey with registrations and SMS.
As a result, I got that sizeOf (undefined :: Int) = 8.
I have maxBound ::Int exactly 2^31 (i.e. 4 bytes, high bit is a sign)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question