| ▲ | klntsky a day ago | |||||||
Haskell does not have a good low level library wrappers story, unlike Rust. Nobody prepared it for adoption nearly as much as Rust evangelists did for their language. Years of hard work they invested into maintaining bindings as hobby projects paid off. | ||||||||
| ▲ | internet_points 13 hours ago | parent | next [-] | |||||||
Hm, I found writing FFI code from Haskell quite easy. I've been meaning to try the new https://well-typed.com/blog/2026/10/hs-bindgen-official-rele... which looks even nicer, but haven't found a missing library yet to try it on :) | ||||||||
| ▲ | kccqzy a day ago | parent | prev | next [-] | |||||||
People care a lot more about Rust-C++ interop because people expect to replace C++ with Rust. People don’t care as much about Haskell-C++ interop, so in the end people just rely on C ABI because it’s the lowest common denominator. If your low level library has a C interface, Haskell works very fine. Some people even prefer the OpenSSL C library over Haskell-native TLS. | ||||||||
| ||||||||
| ▲ | icrbow 11 hours ago | parent | prev [-] | |||||||
It totally can wrap c and c++ and whatnot. The hard part is done only once, then it is incremental maintenance that's mechanical. Some are even scripted. Huge API surfaces like Vulkan and AWS were bound and used that way. | ||||||||