
Hi, Am Mittwoch, den 09.12.2020, 09:19 -0800 schrieb Iavor Diatchki:
On Wed, Dec 9, 2020 at 5:40 AM Joachim Breitner
wrote: What I also got from this discussion was learning why sometimes a `where foo = 1000` works at different number types, and sometimes not. It depends on whether I am using GADTs or TypeFamilies somewhere in the file! Who’d have thought…
Actually `where foo = 1000` wouldn't be affected by `MonoLocalBinds` (but would be by the `MonomorphsimRestriction`, fun right :-) ). `MonoLocalBinds` only affects local bindings that depend on something from a pattern (i.e., declaration that you can't just move to the top level because they depend on something locally bound)
Indeed! I confess ignorance… -- Joachim Breitner mail@joachim-breitner.de http://www.joachim-breitner.de/