<div dir="ltr"><div><div><div><div>Hi,<br><br></div>In general, the problem is that GHCi is attempting to call `show` on the results of expressions you type in, but `show` (like any other polymorphic function; though you can look into "levity polymorphism" if you want to know more) can only accept values of types of kind * (boxed, lifted) - so it can print Word, but not Word#.<br><br></div>If you wanted to stay in GHCi, you can do it like:<br><br>Prelude> import GHC.Prim<br>Prelude GHC.Prim> import GHC.Types<br>Prelude GHC.Prim GHC.Types> :set -XMagicHash<br>Prelude GHC.Prim GHC.Types> :t W#<br>W# :: Word# -> Word<br>Prelude GHC.Prim GHC.Types> :t popCnt64#<br>popCnt64# :: Word# -> Word#<br>Prelude GHC.Prim GHC.Types> let foo = (1 :: Word)<br>Prelude GHC.Prim GHC.Types> :set -XBangPatterns<br>Prelude GHC.Prim GHC.Types> let !(W# w) = foo in W# (popCnt64# w)<br>1<br><br></div>Best regards,<br></div>Marcin Mrotek<br></div>