blob: 6ebec6b460ce2f8cc9f3577767270e7a6720177f (
plain) (
tree)
|
|
{-# LANGUAGE ForeignFunctionInterface #-}
module Lib (ten) where
import Foreign.C.Types (CInt(..))
foreign import ccall "c_add_one"
c_add_one :: CInt -> CInt
ten :: Int
ten = fromIntegral (c_add_one 9)
|