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 2a71e12 commit 1bcc1bdCopy full SHA for 1bcc1bd
1 file changed
ghcide/src/Development/IDE/Types/Shake.hs
@@ -82,6 +82,7 @@ fromKey :: Typeable k => Key -> Maybe (k, NormalizedFilePath)
82
fromKey (Key k)
83
| Just (Q (k', f)) <- cast k = Just (k', f)
84
| otherwise = Nothing
85
+fromKey _ = Nothing
86
87
-- | fromKeyType (Q (k,f)) = (typeOf k, f)
88
fromKeyType :: Key -> Maybe (SomeTypeRep, NormalizedFilePath)
@@ -91,6 +92,7 @@ fromKeyType (Key k)
91
92
, Q (_, f) <- k
93
= Just (SomeTypeRep a, f)
94
95
+fromKeyType _ = Nothing
96
97
toNoFileKey :: (Show k, Typeable k, Eq k, Hashable k) => k -> Key
98
toNoFileKey k = newKey $ Q (k, emptyFilePath)
0 commit comments