on master help sign in
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

commit5b4cfbb088bd3902ad52e06826e01436bc0396cc authorDavidM-D <dmillardurrant@gmail.com> dateFri 26 Apr 2019, 14:00 (8 years ago) parent42461c4
1 file changed+3
src/Development/IDE/State/Shake.hs+3
src/Development/IDE/State/Shake.hs+3
@@ -201,6 +201,9 @@ setValues state key file val = modifyVar state $ \inVal -> do
201201 f = concatMap fst . Map.elems
202202 return (outVal, (f <$> Map.lookup file inVal, f $ outVal Map.! file))
203203
204+-- | The outer Maybe is Nothing if this function hasn't been computed before
205+-- the inner Maybe is Nothing if the result of the previous computation failed to produce
206+-- a value
204207getValues :: forall k v. IdeRule k v => Var Values -> k -> FilePath -> IO (Maybe (Maybe v))
205208getValues state key file = do
206209 vs <- readVar state