attempt to not pattern match on ConstructedAtom but directly on haskell types when making AtomFunction #339
Replies: 3 comments 6 replies
-
Very cool! I didn't even realize this sort of type trickery could work. Making server-side functions should be easier, so I'll see how best to integrate this. Dynamically-loaded functions can be tricky, especially since one has to keep track of which version of project-m36 the running server has loaded. I can probably help with the error if you post it here, though. |
Beta Was this translation helpful? Give feedback.
-
Shoot, I tested polydata with GHC 9.2 and it already broken due the PolyKinds changes in the indextype package dependency. Luckily, all these modules are maintained by the same guy, so hopefully we can push all these changes through. |
Beta Was this translation helpful? Give feedback.
-
Hi! @agentm .o file with original example.
.so file with type trickery.
It seems Anyway, the type trickery works! |
Beta Was this translation helpful? Give feedback.
-
I was trying to omit the "pattern match on ConstructedAtom" process. And here is what I have so far.
code on gist
To make it compile, some packages need jailbreak and minor api updates. (I use nix, and sometimes snack to build project-m36)
It compiles, but sadly tutd couldn't find a symbol when it is a .o and get a LoadFunctionError when it is a .so.
Not sure if it is worth all the effort. I just pose this WIP here in case someone is interested.
Beta Was this translation helpful? Give feedback.
All reactions