Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Remove redundant imports" doesn't trigger on PatSyn imports #3375

Closed
ozkutuk opened this issue Dec 2, 2022 · 0 comments · Fixed by #3377
Closed

"Remove redundant imports" doesn't trigger on PatSyn imports #3375

ozkutuk opened this issue Dec 2, 2022 · 0 comments · Fixed by #3377
Assignees
Labels
status: needs triage type: bug Something isn't right: doesn't work as intended, documentation is missing/outdated, etc..

Comments

@ozkutuk
Copy link
Collaborator

ozkutuk commented Dec 2, 2022

Steps to reproduce

  • A.hs:
{-# LANGUAGE PatternSynonyms #-}

module A (pattern Pat, val) where

pattern Pat :: Int
pattern Pat = 42

val :: String
val = "foo"
  • B.hs:
{-# OPTIONS -Wall #-}
{-# LANGUAGE PatternSynonyms #-}

module B where

import A (pattern Pat, val)

bval :: String
bval = val ++ "bar"
  • Trigger code action in B.hs over pattern Pat import

Expected behaviour

An option to remove redundant Pat import should appear

Actual behaviour

No redundant import actions appear

@ozkutuk ozkutuk added type: bug Something isn't right: doesn't work as intended, documentation is missing/outdated, etc.. status: needs triage labels Dec 2, 2022
@ozkutuk ozkutuk self-assigned this Dec 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: needs triage type: bug Something isn't right: doesn't work as intended, documentation is missing/outdated, etc..
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant