Anonymous user
Host introspection: Difference between revisions
→{{header|Haskell}}
m (moved Host Introspection to Host introspection) |
|||
Line 166:
(IsLittleEndian(), Is64Bit())</lang>
=={{header|Haskell}}==
<lang haskell>import Data.Bits
import Data.Endian --
main = do
main = print $ bitSize (undefined :: Int) -- print word size</lang>▼
putStrLn $ "Word size: " ++ bitsize
putStrLn $ "Endianness: " ++ show ourEndian
where
=={{header|J}}==
|