blob: 7094a1d1af5bf90cf2b928f6052721e30c9aa1b7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
f :: Int -> String
f n = case n of
0x8000000000000000 -> "yes"
_ -> "no"
{-# NOINLINE f #-}
main = do
let string = "0x8000000000000000"
let i = read string :: Integer
let i' = fromIntegral i :: Int
print i
print i'
print (f i')
|