We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
instance Eq NormalizedFilePath
1 parent 774f0e9 commit ce08e39Copy full SHA for ce08e39
lsp-types/src/Language/LSP/Protocol/Types/Uri.hs
@@ -199,7 +199,13 @@ This is one of the most performance critical parts of HLS, do not
199
modify it without profiling.
200
-}
201
data NormalizedFilePath = NormalizedFilePath !NormalizedUri {-# UNPACK #-} !Text
202
- deriving stock (Generic, Eq, Ord)
+ deriving stock (Generic)
203
+
204
+instance Eq NormalizedFilePath where
205
+ NormalizedFilePath _uri1 fp1 == NormalizedFilePath _uri2 fp2 = fp1 == fp2
206
207
+instance Ord NormalizedFilePath where
208
+ compare (NormalizedFilePath _uri1 fp1) (NormalizedFilePath _uri2 fp2) = compare fp1 fp2
209
210
instance NFData NormalizedFilePath
211
0 commit comments