about summary refs log tree commit diff
path: root/third_party/bazel/rules_haskell/tests/cc_haskell_import/LibA.hs
blob: db8e442e5a5fa55567e8d889626d633046c113f5 (plain) (blame)
1
2
3
4
5
6
7
8
module LibA (add_one) where

import Data.Int (Int32)

foreign import ccall "c_add_one" c_add_one' :: Int32 -> Int32

add_one :: Int32 -> Int32
add_one x = c_add_one' x