Skip to content

WIP: Implement winapi calling convention GHC proposal 277

Still need to add a changelog.

This implements the pseudo calling convention winapi. I have implemented it as a parse alias instead of an actual calling convention since semantically it will behave as one of the two existing calling conventions so it really is an alias.

Implementing it as an actual calling convention would have introduced a lot of code changes and I was worried about any maintenance overhead. I don't think this approach has any downsides but feedback welcome.

I have a patch that replaces the uses in the compiler, but can't do it yet until the bootstrap compiler supports it.

Any other suggestions for the test.

Edited by Ben Gamari

Merge request reports