Anand Swaroop
Anand Swaroop
> In a test project cabal repl "--builddir=dist newstyle" "--with-ghc=ghc bin/ghc" all succeeded on linux with cabal-3.10.1.0. I'd expect that to work because you added quotes around the parameters with...
raylib-python-cffi is probably out of date. All the controls were changed to return `int`s as status values (i.e. 1 or 0). In this case the status value is always 0....
Actually this does seem inconsistent; `GuiMessageBox` for example returns the clicked index instead of using a pointer. Maybe this needs to be redesigned to be more consistent.
h-raylib exposes a native version of every function, just prepend it with `c'` (e.g. `c'initWindow`). This uses raw `Ptr`s and no automatic memory management, I think this is what you're...
I'll have to think of a good solution for this. I might make a `Closeable` typeclass as you suggested.
Done in 5.5.0.0, reopen this issue if there are any problems
This will be possible when the ghc WebAssembly backend adds support for JS FFI. Then the C code can be compiled with emscripten and the Haskell can be compiled to...
Web building with GHC is still a somewhat complex process ([this](https://gitlab.haskell.org/ghc/ghc-wasm-meta) has the instructions. It seems a lot simpler than it was when I created this issue though). What I...
Update: I was able to make a simple example using haskell to call JS functions. Once it's cleaned up a bit I'll create a repository for it.
Here's the proof-of-concept repository: https://github.com/Anut-py/ghc-web-test As I said, the Haskell-to-WASM compilation process is a bit of a hassle, but it's relatively simple with Nix. Now that this is done I...