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

No tags for projections in record pattern synonyms #11

Closed
andreasabel opened this issue Oct 19, 2022 · 0 comments · Fixed by #14
Closed

No tags for projections in record pattern synonyms #11

andreasabel opened this issue Oct 19, 2022 · 0 comments · Fixed by #14

Comments

@andreasabel
Copy link

E.g. this definition:

{-# LANGUAGE PatternSynonyms #-}

pattern MyJust :: a -> Maybe a
pattern MyJust { theThing } = Just theThing

just produces (with ghc-tags Foo.hs -c) a tag for the MyJust synonym, but not the theThing field:

...
!_TAG_KIND_DESCRIPTION!Haskell	p	/pattern synonym/
...
MyJust	RecordPatternSynonym.hs	4;"	p

NB. Noticed this first for my own tool:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant