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

import LibA (add_one)
import Data.Int (Int32)

foreign export ccall add_one_hs :: Int32 -> IO Int32

add_one_hs :: Int32 -> IO Int32
add_one_hs x = pure $! add_one x + 0