Skip to content

Commit

Permalink
remove duplicates
Browse files Browse the repository at this point in the history
  • Loading branch information
janmasrovira committed Dec 4, 2024
1 parent b251d91 commit c536919
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/Juvix/Compiler/Concrete/Data/Highlight.hs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ buildProperties HighlightInput {..} =
<> mapMaybe goFaceName _highlightNames
<> map goFaceError _highlightErrors,
_propertiesGoto = map goGotoProperty _highlightNames,
_propertiesTopDef = mapMaybe goDefProperty _highlightNames,
_propertiesTopDef = nubHashable (mapMaybe goDefProperty _highlightNames),
_propertiesInfo = mapMaybe (goDocProperty _highlightDocTable _highlightTypes) _highlightNames
}

Expand Down
3 changes: 3 additions & 0 deletions src/Juvix/Emacs/Properties.hs
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,9 @@ data PropertyGoto = PropertyGoto
newtype PropertyTopDef = PropertyTopDef
{ _topDef :: Text
}
deriving stock (Eq, Generic)

instance Hashable PropertyTopDef

newtype PropertyFace = PropertyFace
{ _faceFace :: Face
Expand Down

0 comments on commit c536919

Please sign in to comment.