about summary refs log tree commit diff
path: root/third_party/bazel/rules_haskell/tests/repl-targets/Foo.hs
blob: 5e5138418d5d4baeb3fffa13288bad195098bbfa (plain) (blame)
1
2
3
4
5
6
7
8
9
{-# LANGUAGE ForeignFunctionInterface #-}

module Foo (foo) where

foreign import ccall "c_add_one"
  c_add_one :: Int -> Int

foo :: Int -> Int
foo = (+ 5) . c_add_one