Plan 9 from Bell Labs’s /usr/web/sources/contrib/fernan/nhc98/tests/conformance98/FFI/sizedtypes/Int/Main.hs

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


import NHC.FFI

main = do
  print value1
  print value2
  print value3
  print value4
  print (fromIntegral value1)
  print (fromIntegral value2)
  print (fromIntegral value3)
  print (fromIntegral value4)

value1,value2,value3,value4 :: Int64
value1 =  0xffffffffffff
value2 = -0xffffffff
value3 =  0xfffff
value4 = -0xfff


Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to webmaster@9p.io.