<div dir="ltr"><div dir="ltr"><div>To some extent I can agree with the view that certain small things
should possibly be folded in, but from another perspective, I actually
like the way that major language features are modular, and I can tell a
lot about what to expect by looking at the top of a file. There are also
things that most people agree are a decent part of the language, but
should also probably never stop being extensions, like FFI and Template
Haskell.<br></div><div><br></div><div>But while warning users about
certain things being controversial or unstable and certain things being
less so could be something that one could put in the Report, I wouldn't
want any change to the language to start there. If you try to make
changes to the language as it exists while also documenting it, you'll
end up in a season of bikeshedding that will never end, and at the same time end up
describing a creature that doesn't exist. See the ghc-proposals mailing
list for a more appropriate place to begin with changes to the language
at present. See also this proposal:
<a href="https://github.com/ghc-proposals/ghc-proposals/blob/master/proposals/0380-ghc2021.rst">https://github.com/ghc-proposals/ghc-proposals/blob/master/proposals/0380-ghc2021.rst</a>
which has been implemented in the latest GHC 9.2 for defining a particular "GHC2021"
agglomeration of some of the most commonly used extensions. There's also
a table there containing some nice usage statistics that were collected
from Hackage.<br></div><div><br></div><div>From the other side of
things, I think the Report, if revived, should not shy away from
trying to describe as many of the extensions as people have the energy
to describe, controversial/unstable or not. The most important purpose
for which I'd really like to have a Report at present would be to
properly clarify the interactions between extensions. For example, how
do you figure out what happens when you use functional dependencies and
type equality constraints together? Exactly how does GHC know when to
instantiate a quantified constraint, and how does that interact with
type family expansion? Even the technical papers written about these
features don't necessarily answer questions about these interactions, so
if you start using them together, cases can arise where it can be
difficult to determine what's going to happen. Often things will just
work as you might hope, even if you're not entirely certain why. Once in a blue
moon though, you might just get weird error messages that don't quite
make sense, but seem to indicate that the compiler is very confused.
Then perhaps you try a newer GHC, and find out that particular
combination of things is now simply forbidden outright. So it would be
nice to really get everything into a single framework of description,
and there have been some rather large efforts in the direction of
unifying large chunks of it, like the OutsideIn(X) paper (which is
already perhaps too technical compared with the Report), but it's by no
means easy.<br></div><div><br></div><div>Also, typical users of the
language eventually have to contend with most of the extensions, controversial or not, and it would be very nice to have a
reference for what things are supposed to mean regardless of whether
we'd rather they not be in the language at all. The Report would also be
a great place to have a little bit of guidance and statistics on how
stable/well-used these things are.</div><div><br></div><div> - Cale</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, 8 Nov 2021 at 21:41, Haowen Liu <<a href="mailto:lhw@lunacd.com">lhw@lunacd.com</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">Hi Cale and others,<br>
<br>
Thank you Cale so so much for such a detailed explanation!<br>
<br>
I agree with you that an evolving standard is only useful as a <br>
normalizing force if we have multiple compilers, like C/C++. Such is the <br>
same for the standard as documentation since GHC documentation is really <br>
what people should refer to.<br>
<br>
I realize I'm in no way qualified to make those points but in my meager <br>
experience with Haskell, an evolving standard could serve as a very <br>
valuable verdict of the merits of various GHC extensions. AFAIK, some <br>
GHC extensions are very widely adopted and some are considered <br>
misfeatures. The Haskell202X could simply incorporate a list of <br>
agreeable extensions into the core language and those less agreeable <br>
ones could stay as extensions or whatever the GHC community decides to <br>
do with them.<br>
<br>
I think such kind of Haskell202X is advantageous in the following ways:<br>
<br>
1. It is less time consuming than radical language changes. And the very <br>
fact that the Haskell202X effort is halted proves that Haskell currently <br>
demands no radical changes (at least not the ones that can't be <br>
implemented as a GHC extension).<br>
<br>
2. We no longer to enable a series of widely used plugins. Many of the <br>
extensions integrate so nicely into the language that I don't think <br>
programmers should be required to manually enable them to use them. <br>
According to Sandy Maguire, "In GHC 8.6.5, there are 125 different <br>
language extensions, and an analysis shows that 10% of Haskell files in <br>
the wild enable 10 or more extensions." [1]<br>
<br>
3. People are less likely to use those less agreeable extensions because <br>
at that time enabling extensions would be a rare case of workaround (as <br>
it should be, I believe) rather than a norm.<br>
<br>
4. It gives people, especially newcomers, a sense that Haskell is still <br>
very much alive.<br>
<br>
In addition to integrating extensions, in very rare cases, we could slip <br>
in some feature removal or modifications in areas where people feel <br>
strongly about. But even with those, I feel like this work is very much <br>
doable.<br>
<br>
Best,<br>
Haowen<br>
On 11/8/2021 3:45 PM, Cale Gibbard wrote:<br>
> The tricky thing is that while a new document describing the language in <br>
> detail would be welcomed, it's hard for people to justify doing all the <br>
> work that's involved in producing a new document that's substantially <br>
> more helpful than the Haskell 2010 or '98 Report. Right at the moment, <br>
> there's essentially one practically-usable implementation of the <br>
> language, GHC (unless maybe you count GHCJS, and that's sharing GHC's <br>
> frontend regardless). So the demand for a document that says what needs <br>
> to be shared between implementations of the language is low. Personally, <br>
> I think producing a description of what GHC is meant to be implementing, <br>
> with as complete coverage of all the extensions as can be managed, i.e. <br>
> a report, is something that would be quite valuable. However, that's a <br>
> very large task, and most of the people who would be well-suited to <br>
> produce that document have other constraints on their time. I don't <br>
> think there's a pressing need for a normative standards document at the <br>
> moment though.<br>
> <br>
> Maybe if some Haskell-using company were to get large enough to devote a <br>
> team to working on a new general purpose Haskell compiler for some <br>
> reason, or there was a big open-source push for a second Haskell <br>
> compiler, there would be cause for a normative standard. But for now, <br>
> everyone's been more or less content with working together extending GHC <br>
> rather than building something entirely new. (I would have a fair amount <br>
> of sympathy for someone wanting to start fresh though. I have my own <br>
> list of reasons for which I can imagine wanting to take a shot at <br>
> reimplementing the language, but I don't really have the time or energy <br>
> for it myself.)<br>
> <br>
> For the descriptive side of things, most people get by right now with <br>
> the GHC User's Guide, and failing that, there are often papers that go <br>
> into much greater detail about the individual extensions. If you want to <br>
> really understand the finer details of how those extensions all interact <br>
> with one another though, there's presently nothing apart from the <br>
> compiler itself (and even then, how they *ought* to interact is a <br>
> different question from how they *do* interact). Understanding that and <br>
> describing it all in a precise way is a big and difficult task, and it's <br>
> one whose cost sadly might outweigh its benefits, especially if the <br>
> progress toward a new Haskell Report is any indication.<br>
> <br>
> Even more, I think most would be delighted to see a denotational <br>
> semantics for all of Haskell again. But it's one of those things which <br>
> is difficult to produce in the first place, and then unless a process <br>
> were in place to have it track the implementation, it would almost <br>
> immediately fall out of date.<br>
> <br>
> That said, I can imagine there will be a point where the process to <br>
> write a new Report kicks back off, I just don't think it's been at the <br>
> forefront of most people's minds lately.<br>
> <br>
> - Cale<br>
> <br>
> On Mon, 8 Nov 2021 at 17:55, Haowen Liu via Haskell-prime <br>
> <<a href="mailto:haskell-prime@haskell.org" target="_blank">haskell-prime@haskell.org</a> <mailto:<a href="mailto:haskell-prime@haskell.org" target="_blank">haskell-prime@haskell.org</a>>> wrote:<br>
> <br>
> Hi,<br>
> <br>
> I hope this email finds you all well. I'm a newbie only starting with<br>
> Haskell very recently, but I LOVE what I'm discovering with Haskell and<br>
> its ecosystem. That's why I was shocked to see that the latest Haskell<br>
> standard is still Haskell2010, and activities on this list has halted<br>
> for 3 years.<br>
> <br>
> I skimmed through the Haskell2010 spec and understand deeply that the<br>
> next Haskell standard will be an equally challenging enterprise. I,<br>
> although yet to be sufficiently familiar with Haskell, want to let you<br>
> all know that I'm hugely grateful for all the work you have done, and<br>
> I'm more than willing to extend any kind of help moving forward with<br>
> the<br>
> next Haskell standard. If people are still interested in developing<br>
> Haskell202X, and if people need some sort of secretary, editor, errand<br>
> runner, or whatever, please let me know and I can help.<br>
> <br>
> Grateful, concerned, and eager to help,<br>
> Haowen Liu<br>
> _______________________________________________<br>
> Haskell-prime mailing list<br>
> <a href="mailto:Haskell-prime@haskell.org" target="_blank">Haskell-prime@haskell.org</a> <mailto:<a href="mailto:Haskell-prime@haskell.org" target="_blank">Haskell-prime@haskell.org</a>><br>
> <a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-prime" rel="noreferrer" target="_blank">http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-prime</a><br>
> <<a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-prime" rel="noreferrer" target="_blank">http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-prime</a>><br>
> <br>
</blockquote></div></div>