wire-server icon indicating copy to clipboard operation
wire-server copied to clipboard

Standardize import qualified syntax to postpositive form

Open Copilot opened this issue 3 months ago • 0 comments

Description

Converts all qualified imports from import qualified Module as Alias to import Module qualified as Alias for consistency. The postpositive form is modern Haskell convention and was already in use across parts of the codebase.

Changes

  • Applied mechanical regex transformation to 243 Haskell files
  • Pattern: ^import qualified (\S+) as (\S+) → import \1 qualified as \2
  • No semantic changes, formatting only

Example

-- Before
import qualified Data.Aeson as Aeson
import qualified Data.Text as T

-- After
import Data.Aeson qualified as Aeson
import Data.Text qualified as T

Checklist

  • [ ] Add a new entry in an appropriate subdirectory of changelog.d
  • [ ] Read and follow the PR guidelines
Original prompt

There are imports with import qualified <module name> as <shortcut> and imports with import <module name> qualified as <shortcut> forms. We would like to use the latter everywhere for consistency. Please open a PR to fix all former forms.


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Copilot avatar Dec 15 '25 14:12 Copilot