summaryrefslogtreecommitdiff
path: root/testsuite/tests/linear/should_fail/LinearFFI.stderr
blob: 8473ad0425e3cc88a80f852d0451f77636fe4aed (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20

LinearFFI.hs:6:1: error: [GHC-57396]
    • Unacceptable argument type in foreign declaration:
        Linear types are not supported in FFI declarations, see #18472
    • When checking declaration:
        foreign import ccall safe "exp" c_exp :: Double %1 -> Double

LinearFFI.hs:7:1: error: [GHC-57396]
    • Unacceptable argument type in foreign declaration:
        Linear types are not supported in FFI declarations, see #18472
    • When checking declaration:
        foreign import stdcall safe "dynamic" d8
          :: FunPtr (IO Int) %1 -> IO Int

LinearFFI.hs:8:1: error: [GHC-57396]
    • Unacceptable argument type in foreign declaration:
        Linear types are not supported in FFI declarations, see #18472
    • When checking declaration:
        foreign import ccall safe "wrapper" mkF
          :: IO () %1 -> IO (FunPtr (IO ()))