Pragma {-# OPTIONS_GHC -fno-warn-dodgy-foreign-imports #-} is no longer needed
See !17 (comment 1555187413). The issue which causes this warning has been fixed and merged in GHC. See https://gitlab.haskell.org/ghc/ghc/-/issues/24034 and https://gitlab.haskell.org/ghc/ghc/-/merge_requests/11245. The fix will be available in GHC 9.10. So I would think about removing the pragma.