Hello Hans, On 2025-03-17 at 18:28 +0100, Hans Åberg <haber...@icloud.com> wrote: > > On 17 Mar 2025, at 11:01, Aura Kelloniemi <kaura....@sange.fi> wrote: > > I am developing a tool for processing musical notation in Haskell. > In my experience, it is hard to work with source code directly, because of > the difficulty to pin down dependencies.
Well, parsing a self-contained S-expression is not that bad and I have already written the parser. References between music expressions (like cue notes, or staff change events) might be tricky, but they are tricky even if I had direct access to the original data structures, as I anyways need to translate them to native Haskell data. > GHC has a FFI interface for C++, Not really. GHC has a C interface that is usable, but generating bindings to big libraries such as Guile will require a lot of manual work. There is a tool called hs-bindgen in development which facilitates this, but it is not in a usable state yet. Anyways, thank you for your suggestion! -- Aura