<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Dec 9, 2020 at 5:40 AM Joachim Breitner <<a href="mailto:mail@joachim-breitner.de">mail@joachim-breitner.de</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br>
What I also got from this discussion was learning why sometimes a<br>
`where foo = 1000` works at different number types, and sometimes not.<br>
It depends on whether I am using GADTs or TypeFamilies somewhere in the<br>
file! Who’d have thought…<br><br></blockquote><div><br></div><div>Actually `where foo = 1000` wouldn't be affected by `MonoLocalBinds` (but would be by the `MonomorphsimRestriction`, fun right :-)  ).</div><div>`MonoLocalBinds` only affects local bindings that depend on something from a pattern (i.e., declaration that you can't</div><div>just move to the top level because they depend on something locally bound)</div><div><br></div><div>-Iavor</div><div><br></div><div> </div></div></div>