After reading such questions as the Haskell Native Library and considering that GHC does not fully support binary compatibility between even small versions, I wonder if STG (or Core or similar) can be used as a means to distribute confusing (i.e., "Almost binary ") own libraries, which can then be compiled into machine code at the final stage?
I know that STG was not intended for this, but the idea seems neat.
source
share