Skip to content

UnliftedFFITypes: Allow `(# #)` as argument when it's the only argument.

Andreas Klebinger requested to merge wip/andreask/ffi_marshall_tuple into master
UnliftedFFITypes: Allow `(# #)` as argument when it's the only argument.

This allows representing functions like:

    int foo(void);

to be imported like this:

    foreign import ccall "a_number_c"
      c_number :: (# #) -> Int64#

Which can be useful when the imported function isn't implicitly
stateful.

Merge request reports