<div dir="ltr"><div dir="ltr"><br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">2. Error messages come up too.<br>
<br>[…]<br>
<br>
   So you’d either get maybe<br>
<br>
      You have qualified the do block in … with Foo.builder, but <br>
      Foo.builder is of type Foo.Builder and the record Builder<br>
      does not have a field named (>>).<br>
<br>
   vs.<br>
<br>
      You have qualified the do block in … with Foo, but the module<br>
      Foo does not export a value named (>>).<br></blockquote><div><br></div><div>I want to stress that these, if they read as just as good English sentences, don't mean the same thing. The former says: you are using a construction, in your do notation, that your builder doesn't support. The latter says: you haven't imported the module which export this construction, which may or may not exist.</div><div><br></div><div>Let me make up an example. It is not the case in `base`, but let's imagine that `MonadFail` ins in a different module than `Monad`, then would have to import `Control.Monad.Fail` in addition to `Control.Monad` in order to be able to use partial pattern matching. You may argue that it is bad API design. Which would be fair, but it is hard to assume that such an event can't occur, when designing the compiler.</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
Neither of these arguments refute your underlying preference for<br>
records (which I would absolutely share – if we didn't need this ad-hoc <br>
“fully settled” and odd “any type works as long as it has the right<br>
fields”).<br>
<br>
I think it boils down to whether the goal (records) justify the kludges<br>
(fully settled, a desugaring that looks up some constructor K withoutusing it). <br></blockquote><div><br></div><div>It's also a question of whether one would consider these as kludgy.  Or whether they sound rather natural to your ears. To me: rather natural, evidently. To you, and most other members of the committee, as far as I could gather, they seem to sound weird and somewhat repulsive.<br></div><div> <br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">(Can someone maybe just make GetField work with polytypes? Then we<br>
woudn’t have any of this discussion, I guess.)<br></blockquote><div><br></div><div>Cheers to that :-) <br></div></div></div>