-
-
Notifications
You must be signed in to change notification settings - Fork 391
Renaming of indirect references (RecordFieldPuns) #3013
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
Merged
Merged
Changes from 5 commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
d716224
test: add tests for record puns
OliverMadine 6659bf3
feat: rename indirect references
OliverMadine d8a5b23
test: ignore record field tests for ghc92 (#2915)
OliverMadine 80c3290
test: ignore record field tests for ghc90 (#2915)
OliverMadine d24d1e6
fix: update record field test ignore message
OliverMadine 0ff2617
expand comment about indirect reference renaming
OliverMadine 7184baf
Merge branch 'master' into rename-all-at-pos
OliverMadine 517a648
fix: find all punned references
OliverMadine 2f8525e
Merge branch 'rename-all-at-pos' of github.com:OliverMadine/haskell-l…
OliverMadine 923587e
test: ignore record field pun test for ghc > 9
OliverMadine d4cef1c
Merge branch 'master' into rename-all-at-pos
OliverMadine 37f8176
docs: mention test in indirect pun explaination
OliverMadine 797cea0
link issue for ignored record field rename tests
OliverMadine 1e4fdde
Merge branch 'rename-all-at-pos' of github.com:OliverMadine/haskell-l…
OliverMadine 5fd59d5
Merge branch 'master' into rename-all-at-pos
mergify[bot] File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 8 additions & 0 deletions
8
plugins/hls-rename-plugin/test/testdata/FieldPuns.expected.hs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{-# LANGUAGE NamedFieldPuns #-} | ||
|
||
module FieldPun () where | ||
|
||
newtype Foo = Foo { bleh :: Int } | ||
|
||
unFoo :: Foo -> Int | ||
unFoo Foo{bleh} = bleh |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{-# LANGUAGE NamedFieldPuns #-} | ||
|
||
module FieldPun () where | ||
|
||
newtype Foo = Foo { field :: Int } | ||
|
||
unFoo :: Foo -> Int | ||
unFoo Foo{field} = field |
8 changes: 8 additions & 0 deletions
8
plugins/hls-rename-plugin/test/testdata/IndirectPuns.expected.hs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{-# LANGUAGE NamedFieldPuns #-} | ||
|
||
module IndirectPuns () where | ||
|
||
newtype Foo = Foo { blah :: Int } | ||
|
||
unFoo :: Foo -> Int | ||
unFoo Foo{blah} = blah |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{-# LANGUAGE NamedFieldPuns #-} | ||
|
||
module IndirectPuns () where | ||
|
||
newtype Foo = Foo { field :: Int } | ||
|
||
unFoo :: Foo -> Int | ||
unFoo Foo{field} = field |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.