mirror of
https://github.com/haskell/ghcide.git
synced 2024-12-17 15:11:41 +03:00
Add lsp deps (#724)
* Added GPL free versions of haskell-lsp as a dependency * Cleared something up that I didn't understand * Fixed bazel files
This commit is contained in:
parent
42461c44fe
commit
5b4cfbb088
@ -201,6 +201,9 @@ setValues state key file val = modifyVar state $ \inVal -> do
|
||||
f = concatMap fst . Map.elems
|
||||
return (outVal, (f <$> Map.lookup file inVal, f $ outVal Map.! file))
|
||||
|
||||
-- | The outer Maybe is Nothing if this function hasn't been computed before
|
||||
-- the inner Maybe is Nothing if the result of the previous computation failed to produce
|
||||
-- a value
|
||||
getValues :: forall k v. IdeRule k v => Var Values -> k -> FilePath -> IO (Maybe (Maybe v))
|
||||
getValues state key file = do
|
||||
vs <- readVar state
|
||||
|
Loading…
Reference in New Issue
Block a user