https://lira.kraamwinkel.be/articles/haskell_ffi
A while ago I wrote about the Foreign Function Interface in Haskell and how to make a desktop application with Qt6.
The following topics are covered:
foreign import
to call C or C++-functions (without name mangling);foreign export
to call Haskell-functions in C or C++GStorable
);MonadReader (IORef [a]) m
is better for storing pointers than MonadState [a] m
;ccall
and capi
I already shared it on my previous account back then, but I am posting it here now too :)
No website preview? :( Why mastodon?
@LiraK I think it's because your web server delivers Content-Type: application/xhtml+xml
even when asked for text/html
.