There is some trickiness around `FunPtr` and `"dynamic"` foreign imports. See the docs on [`FunPtr`](https://hackage.haskell.org/package/base-4.10.0.0/docs/Foreign-Ptr.html#g:2) for more information.