I’ve just uploaded to Hackage the first release of hs-wayland-scanner, an implementation of the Wayland Message Definition Language to produce low-level Haskell bindings for Wayland client/server protocols.
It will process multiple protocols in a single run, checking for dependencies, in order to properly generate imports for all modules. All depending protocols must be generated at once and unresolved dependencies will produce an error.
The generated Haskell modules will also include the documentation, that can be processed with Haddock.
The package also includes some examples that I hope will be useful to start playing with it. I wrote it to start digging into the Wayland world and possibly produce some higher level API for river. It seems like I’m not the only one aiming at this goal… ![]()
The code can be compiled with MicroHs, even though the generated bindings cannot.
More information can be found on the project repository:
Best regards,
andrea