summaryrefslogtreecommitdiff
path: root/testsuite/tests/lib/integer/fromToInteger.hs
blob: c36153864c8a97c1b1561c2a443f9f11fe7d14b8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14

{-# LANGUAGE MagicHash #-}

module Q where

import GHC.Exts
import GHC.Integer

v :: Int
v = I# (integerToInt (smallInteger 3#))

w :: Word
w = W# (integerToWord (wordToInteger 3##))