shithub: MicroHs

ref: 2f3ccd459aedf6d03eaee5f77d982cbab4c23396
dir: /tests/Word.hs/

View raw version
module Word(main) where
import Prelude
import qualified Data.Word as W

main :: IO ()
main = do
  putStrLn $ showInt 4294967295
  putStrLn $ W.showWord (W.intToWord 1000)
  putStrLn $ W.showWord twoTo32M1
  putStrLn $ W.showWord $ (W.*) twoTo32M1 twoTo32M1

twoTo32M1 :: W.Word
twoTo32M1 = W.intToWord 4294967295