withForeignPtr package:unliftio

Unlifted withForeignPtr.