<div dir="ltr"><div dir="ltr">Link to the proposal: <a href="https://github.com/ghc-proposals/ghc-proposals/pull/277">https://github.com/ghc-proposals/ghc-proposals/pull/277</a></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Sep 22, 2019 at 8:44 AM Sandy Maguire <<a href="mailto:sandy@sandymaguire.me">sandy@sandymaguire.me</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr">Hi all,<div><br></div><div>Proposal 277 is on the topic of a psuedo calling convention for windows, where on x86 you need to use `stdcall`, but on x86_64 it should be `ccall`. The base and Win32 packages both use extensive amounts of CPP to work around this. </div><div><br></div><div>This proposal is to add a `winapi` calling convention that does the right thing regardless of the platform architecture.</div><div><br></div><div>With the caveat that I am not well versed in FFI or Windows, <b>my recommendation is to accept. </b>This is a very small proposal that can immediately be used to clean up over 650 CPP invocations throughout the ecosystem. It's clearly a problem that people are running into, and we should focus on easy quality of life improvements.</div><div><br></div><div><div>As usual, silence will be considered assent!</div></div><div><br></div><div>Best,</div><div>Sandy</div><div><div><br></div>-- <br><div dir="ltr" class="gmail-m_-7155640024214609655gmail_signature"><div dir="ltr"><div><div dir="ltr"><div>I'm currently travelling the world, sleeping on people's couches and doing full-time collaboration on Haskell projects. If this seems interesting to you, please consider signing up as a host! <a href="https://isovector.github.io/erdos/" target="_blank">https://isovector.github.io/erdos/</a><br></div></div></div></div></div></div></div></div>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div>I'm currently travelling the world, sleeping on people's couches and doing full-time collaboration on Haskell projects. If this seems interesting to you, please consider signing up as a host! <a href="https://isovector.github.io/erdos/" target="_blank">https://isovector.github.io/erdos/</a><br></div></div></div></div></div>