summaryrefslogtreecommitdiff
path: root/testsuite/tests/ffi/should_fail/T16702.stderr
blob: 2ab7c751d04d024694bff965c2809b9658b7f17c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29

T16702.hs:12:1: error:
    • Unacceptable result type in foreign declaration:
        Unexpected nested forall
    • When checking declaration:
        foreign import ccall safe "math.h pow" c_pow
          :: CDouble
             -> forall (a :: Type). CDouble -> forall (b :: Type). CDouble

T16702.hs:17:1: error:
    • Unacceptable result type in foreign declaration:
        Unexpected nested forall
    • When checking declaration:
        foreign import ccall safe "malloc" malloc1
          :: CSize -> forall a. IO (Ptr a)

T16702.hs:20:1: error:
    • Unacceptable argument type in foreign declaration:
        ‘Show a’ cannot be marshalled in a foreign call
    • When checking declaration:
        foreign import ccall safe "malloc" malloc2
          :: Show a => CSize -> IO (Ptr a)

T16702.hs:23:1: error:
    • Unacceptable argument type in foreign declaration:
        ‘Show a’ cannot be marshalled in a foreign call
    • When checking declaration:
        foreign import ccall safe "malloc" malloc3
          :: CSize -> Show a => IO (Ptr a)