-
-
Notifications
You must be signed in to change notification settings - Fork 398
Documentation for build-depends on hover #4385
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
95d677b
5f80c6a
c12aa1f
c2e769b
28af58b
729b4e8
109f04c
8c740dc
cbeb3d5
a955e58
d725541
49b4587
ecd8828
d0400a7
0180e7c
e1f0901
d52690d
f202d4c
4d489da
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
cabal-version: 3.0 | ||
name: hover-deps | ||
version: 0.1.0.0 | ||
|
||
library | ||
exposed-modules: Module | ||
build-depends: base ^>=4.14.3.0 | ||
, aeson==1.0.0.0 , lens | ||
hs-source-dirs: src | ||
default-language: Haskell2010 |
Unchanged files with check annotations Beta
{-# LANGUAGE CPP #-} | ||
{-# LANGUAGE DataKinds #-} | ||
{-# LANGUAGE LambdaCase #-} | ||
{-# LANGUAGE OverloadedStrings #-} |
[] -> error $ "GHC version could not be parsed: " <> version | ||
((runTime, _):_) | ||
| compileTime == runTime -> do | ||
atomicModifyIORef' cradle_files (\xs -> (cfp:xs,())) | ||
Check warning on line 636 in ghcide/session-loader/Development/IDE/Session.hs
|
||
session (hieYaml, toNormalizedFilePath' cfp, opts, libDir) | ||
| otherwise -> return (([renderPackageSetupException cfp GhcVersionMismatch{..}], Nothing),[]) | ||
-- Failure case, either a cradle error or the none cradle | ||
x <- bagToList $ mapBag errMsgDiagnostic $ unionManyBags $ map Compat.getMessages closure_errs | ||
DriverHomePackagesNotClosed us <- pure x | ||
pure us | ||
isBad ci = (homeUnitId_ (componentDynFlags ci)) `OS.member` bad_units | ||
Check warning on line 884 in ghcide/session-loader/Development/IDE/Session.hs
|
||
-- Whenever we spin up a session on Linux, dynamically load libm.so.6 | ||
-- in. We need this in case the binary is statically linked, in which | ||
-- case the interactive session will fail when trying to load |
{-# LANGUAGE DeriveAnyClass #-} | ||
Check warning on line 1 in ghcide/session-loader/Development/IDE/Session/Diagnostics.hs
|
||
module Development.IDE.Session.Diagnostics where | ||
import Control.Applicative | ||
surround start s end = do | ||
guard (listToMaybe s == Just start) | ||
guard (listToMaybe (reverse s) == Just end) | ||
pure $ drop 1 $ take (length s - 1) s | ||
multiCradleErrMessage :: MultiCradleErr -> [String] | ||
multiCradleErrMessage e = |
import Data.Time (UTCTime (..)) | ||
import Data.Tuple.Extra (dupe) | ||
import Debug.Trace | ||
import Development.IDE.Core.FileStore (resetInterfaceStore) | ||
Check warning on line 72 in ghcide/src/Development/IDE/Core/Compile.hs
|
||
import Development.IDE.Core.Preprocessor | ||
import Development.IDE.Core.ProgressReporting (progressUpdate) | ||
import Development.IDE.Core.RuleTypes | ||
convImport (L _ i) = ( | ||
(ideclPkgQual i) | ||
Check warning on line 960 in ghcide/src/Development/IDE/Core/Compile.hs
|
||
, reLoc $ ideclName i) | ||
msrImports = implicit_imports ++ imps |
{ source_version = ver | ||
, old_value = m_old | ||
, get_file_version = use GetModificationTime_{missingFileDiagnostics = False} | ||
, get_linkable_hashes = \fs -> map (snd . fromJust . hirCoreFp) <$> uses_ GetModIface fs | ||
Check warning on line 792 in ghcide/src/Development/IDE/Core/Rules.hs
|
||
, regenerate = regenerateHiFile session f ms | ||
} | ||
r <- loadInterface (hscEnv session) ms linkableType recompInfo | ||
-- thus bump its modification time, forcing this rule to be rerun every time. | ||
exists <- liftIO $ doesFileExist obj_file | ||
mobj_time <- liftIO $ | ||
if exists | ||
Check warning on line 1065 in ghcide/src/Development/IDE/Core/Rules.hs
|
||
then Just <$> getModTime obj_file | ||
else pure Nothing | ||
case mobj_time of |
moduleUnit, toUnitId) | ||
import qualified GHC.Unit.Module as Module | ||
import GHC.Unit.State (ModuleOrigin (..)) | ||
import GHC.Utils.Error (Severity (..), emptyMessages) | ||
Check warning on line 482 in ghcide/src/Development/IDE/GHC/Compat/Core.hs
|
||
import GHC.Utils.Panic hiding (try) | ||
import qualified GHC.Utils.Panic.Plain as Plain | ||
examplesPath = "bench/example" | ||
defConfig :: Config | ||
Success defConfig = execParserPure defaultPrefs (info configP fullDesc) [] | ||
Check warning on line 345 in ghcide-bench/src/Experiments.hs
|
||
quiet, verbose :: Config -> Bool | ||
verbose = (== All) . verbosity | ||
results <- forM benchmarks $ \b@Bench{name} -> do | ||
let p = (proc (ghcide ?config) (allArgs name dir)) | ||
{ std_in = CreatePipe, std_out = CreatePipe, std_err = CreatePipe } | ||
run sess = withCreateProcess p $ \(Just inH) (Just outH) (Just errH) pH -> do | ||
Check warning on line 453 in ghcide-bench/src/Experiments.hs
|
||
-- Need to continuously consume to stderr else it gets blocked | ||
-- Can't pass NoStream either to std_err | ||
hSetBuffering errH NoBuffering |
Uh oh!
There was an error while loading. Please reload this page.