Blog Post: PureScript's foreign Functions less foreign

I wrote a blog post about PureScript FFI.

  • It contains an introduction about the topic which should be suitable for beginners.

Moreover it describes two maybe less known ways to make FFI gradually safer:

  • Using JSDoc annotations which get type checked by TypeScript
  • Setting up ts-bridge to generate TypeScript types from PureScript.

Here’s the link:

12 Likes

I believe this feature of checking/promoting FFI type declarations potentially chould be embeded in the purescript language server.

2 Likes