shithub: MicroHs

ref: d546dc31e3e45bc5369989e797d6c3c3fc885f9c
dir: /tests/Foreign.hs/

View raw version
module Foreign(main) where
import Prelude

foreign import ccall "llabs" iabs :: Int -> IO Int

main :: IO ()
main = do
  x1 <- iabs (3 - 8)
  putStrLn $ show x1
  x2 <- iabs (10 - 8)
  putStrLn $ show x2