Our great sponsors
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
I am trying to use Raylib in my Haskell library with cabal. I can get it working with plain FFI and GHC, but when I try to convert it into a cabal project, it doesn't work.
It kinda depends on how easy it is to build the C library, but assuming you can basically just list the files to point the C compiler at, yeah, it's not that hard to just include the C library in your project itself. The zstd library on Hackage does this (source on Github).
There are some projects on github which might help: https://github.com/DevJac/raylib-haskell
https://github.com/danielc777888/raylib-hs (my own)
Maybe you could write a FFI-Library for Raylib with the help of [bindings-dsl](https://github.com/rethab/bindings-dsl/wiki). I haven't tried anything similar myself, but would also be interested if this would be feasible.