blob: 2e68cd9a60c1e6b51064ae1051b0aa4aa7744bd5 (
plain)
1
2
3
4
5
6
7
8
9
10
|
<interactive>:11:1: error:
• Unacceptable result type in foreign declaration:
Safe Haskell is on, all FFI imports must be in the IO monad
• When checking declaration:
foreign import ccall safe "sin" c_sin :: Double -> Double
<interactive>:12:1: error:
• Variable not in scope: c_sin :: Integer -> t
• Perhaps you meant ‘c_sin'’ (line 7)
|