-
-
Notifications
You must be signed in to change notification settings - Fork 367
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bugfix type signature lenses / code actions for pattern synonyms. (#1952
) * Bugfix type signature lenses / code actions for pattern synonyms. Use a better method for getting the type. The old method didn't work for unidirectional synonyms: pattern Some a <- Just a and gave the wrong type for synonyms with provided constraints: data T1 a where" MkT1 :: (Show b) => a -> b -> T1 a" pattern MkT1' :: (Eq a, Num a) => Show b => b -> T1 a pattern MkT1' b = MkT1 42 b * GHC 9.2 compat fix. The multiplicities returned by patSynSig on the orig_args value are uninteresting. patSynSig is literally just calling (map unrestricted). There is no information there for us to care about. Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
- Loading branch information
1 parent
dff418c
commit e48e02a
Showing
2 changed files
with
54 additions
and
17 deletions.
There are no files selected for viewing
This file contains 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 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