1 2 3 4 5 6 7
{-# LANGUAGE ForeignFunctionInterface, RankNTypes #-} module Foo where import Foreign type X u = Ptr () foreign import ccall bla :: (forall u. X u) -> IO ()