Philipp :emacs: :nixos: on Nostr: I have a C interface that I'm trying to wrap in #haskell. There's a function that ...
I have a C interface that I'm trying to wrap in #haskell. There's a function that takes a "void*" with data, and a callback. The user is supposed to hold the "void*" until the callback is called. I wanted to use a ByteString, but it seems there's no way to adapt that. So...Vector? Any experience with that?
Published at
2024-10-30 14:06:48Event JSON
{
"id": "3fc202ab29994ee162d30aca8fbe68d1844908f2b146d2372aed4beed5fa24ad",
"pubkey": "ac4affaf50335b62981fe0ffff6059e4fb619f4934d6f40082175acb87737e5f",
"created_at": 1730297208,
"kind": 1,
"tags": [
[
"t",
"haskell"
],
[
"proxy",
"https://fosstodon.org/users/pmidden/statuses/113396757870166185",
"activitypub"
]
],
"content": "I have a C interface that I'm trying to wrap in #haskell. There's a function that takes a \"void*\" with data, and a callback. The user is supposed to hold the \"void*\" until the callback is called. I wanted to use a ByteString, but it seems there's no way to adapt that. So...Vector? Any experience with that?",
"sig": "9813c4727795f3e0faa49c7d2bc34d1c310afa1bfd3ee2009ff99187d7b61878da80072e0948b2a63695a5df85bd6a10027d061310f9e152291410fa655b0ba7"
}