Get the latest tech news
Automatically Packaging a Haskell Library as a Swift Binary XCFramework
Announcing <code>xcframework</code> or: the happy path for wiring a Haskell dependency to your Swift app
Moreover, I’m happy to announce I’ve neatly packaged and released that build process automation as a Haskell library called xcframework on Hackage. Finally, create a file called SetupHooks.hs in the root of your Cabal package with the following contents, substituting the_build/MyHaskellLib.xcframework string for the filepath to where the.xcframework should be written: Calling Haskell from Swift explored the basics of using more interesting types across the FFI, but I’m also working on a more automated approach using TH and GHC plugins.
Or read this on Hacker News