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:48 UTCEvent JSON
{
"id": "b6d7980a07c9648468ac1879ed2b791e1d5a59ac9dcbab3eed2dafa895b383ba",
"pubkey": "ae0cf5bfd224a63f32a62be4a67cf73d28ae7c27a401f627bbcb2bcc7733d526",
"created_at": 1730297208,
"kind": 1,
"tags": [
[
"proxy",
"https://fosstodon.org/@pmidden/113396757870166185",
"web"
],
[
"t",
"haskell"
],
[
"proxy",
"https://fosstodon.org/users/pmidden/statuses/113396757870166185",
"activitypub"
],
[
"L",
"pink.momostr"
],
[
"l",
"pink.momostr.activitypub:https://fosstodon.org/users/pmidden/statuses/113396757870166185",
"pink.momostr"
],
[
"-"
]
],
"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": "c585907fbf1e03f59225849c88844dfa306fa9c0f498f9ab9ea5a31a3d55f85cb2520ba960a2045bdadc3353e5267f2eadea499bf10170c202c3229e038e27aa"
}