[ghc-steering-committee] #380 GHC2021: How to proceed?

Simon Marlow marlowsd at gmail.com
Mon Jan 18 15:01:14 UTC 2021


On Mon, 18 Jan 2021 at 11:08, Joachim Breitner <mail at joachim-breitner.de>
wrote:

>
>
> > Is there `-XNoGHC2021`, and if so what does it do?  Proposal should say.
>
> The meta-proposal says
>
>    This language version can be used as a language extension (with the
>    sole effect of implying other language extensions), but also as a
>    language versions in places where Haskell98 or Haskell2010 is valid
>    (e.g. via Cabal’s default-language field).
>
>    When ghc is used without an explicit language choice, the latest
>    GHC20xx known to GHC is used. This applies in particular to uses of
>    ghci.
>
> and I’d hope that this answers such technical details (and that the GHC
> devs will resolve obscure corner cases sensibly)?
>
> It seems that ghc-8.8 does not know -XNoHaskell2010, so I would assume
> that there is no -XNoHaskell2010 either. If there is a nice use case
> for that, I think adding this a feature doesn't need committee
> involvement, and can be done by GHC contributers.
>

Currently Haskell98 and Haskell2010 are a special kind of LANGUAGE option
that can't be reversed, and later ones override earlier ones. I think we
should treat GHC2021 in the same way.


> Relatedly, at least one community member asked for a way to opt-into
> the current “default” mode of GHC (which is neither Haskell98 nor
> Haskell2010, e.g. it has NondecreasingIndentation).
> He suggested simply calling that GHC2020. Whether that happens, and if
> it’s called GHC2020 or OldDefault or something else, I’d also trust the
> GHC devs.
>

GHC2020 seems reasonable to me.

Cheers
Simon


>
>
> Cheers,
> Joachim
>
>
> --
> Joachim Breitner
>   mail at joachim-breitner.de
>   http://www.joachim-breitner.de/
>
>
> _______________________________________________
> ghc-steering-committee mailing list
> ghc-steering-committee at haskell.org
> https://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-steering-committee
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/ghc-steering-committee/attachments/20210118/737bbf33/attachment.html>


More information about the ghc-steering-committee mailing list