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.
1 parent 2329109 commit 192446bCopy full SHA for 192446b
ghcide/src/Development/IDE/Core/Dependencies.hs
@@ -63,6 +63,11 @@ import System.FilePath ((<.>), (</>))
63
- index project HIE files.
64
-}
65
66
+-- | We make this newtype only so that we can have an Ord
67
+-- instance. This gives us the convenience of being able
68
+-- to use a Package as the key in the Map packagesWithModules,
69
+-- and process the packages and their modules using the
70
+-- Map.traverseWithKey function.
71
newtype Package = Package GHC.UnitInfo deriving Eq
72
instance Ord Package where
73
compare (Package u1) (Package u2) = compare (GHC.unitId u1) (GHC.unitId u2)
0 commit comments