Support for ImportQualifiedPost GHC extension #369

Open
opened 2022-04-01 13:48:40 +02:00 by sonowz · 1 comment
sonowz commented 2022-04-01 13:48:40 +02:00 (Migrated from github.com)

(This is a feature request)

GHC 8.10.1 introduced a new extension called ImportQualifiedPost.
Basically what it allows is the following syntax:

import A qualified
import B qualified as C

Since the extension is included in the upcoming Haskell standard after Haskell2010, namely GHC2021, I think it would be nice for brittany to have an option to use the new syntax. Any thoughts?

(**This is a feature request**) GHC 8.10.1 introduced a new extension called [ImportQualifiedPost](https://ghc.gitlab.haskell.org/ghc/doc/users_guide/exts/import_qualified_post.html). Basically what it allows is the following syntax: ```Haskell import A qualified import B qualified as C ``` Since the extension is included in the upcoming Haskell standard after `Haskell2010`, namely [GHC2021](https://ghc.gitlab.haskell.org/ghc/doc/users_guide/exts/control.html?highlight=ghc2021#extension-GHC2021), I think it would be nice for `brittany` to have an option to use the new syntax. Any thoughts?
sonowz commented 2022-04-05 05:15:40 +02:00 (Migrated from github.com)

I think adding a config named like _lconfig_importQualifiedPost :: f (Last Bool) below could work...

0aa04af4eb/source/library/Language/Haskell/Brittany/Internal/Config/Types.hs (L41-L56)

I'm feeling like this work needs few changes in the codebase and I can work on it. I'll try 😃

I think adding a config named like `_lconfig_importQualifiedPost :: f (Last Bool)` below could work... https://github.com/lspitzner/brittany/blob/0aa04af4eba499b81fdfb401d98414e7731583cc/source/library/Language/Haskell/Brittany/Internal/Config/Types.hs#L41-L56 I'm feeling like this work needs few changes in the codebase and I can work on it. I'll try 😃
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: hexagoxel/brittany#369
There is no content yet.