Skip to content

Commit 9a7fce1

Browse files
committed
Cut down on what hls-graph exports
Delete unnecesssary hiding
1 parent 7b51a2a commit 9a7fce1

File tree

7 files changed

+10
-77
lines changed

7 files changed

+10
-77
lines changed

ghcide/src/Development/IDE/Core/Actions.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ import Development.IDE.GHC.Compat hiding (TargetFile,
3030
writeHieFile)
3131
import qualified Development.IDE.Spans.AtPoint as AtPoint
3232
import Development.IDE.Types.Location
33-
import Development.IDE.Graph hiding (Diagnostic)
33+
import Development.IDE.Graph
3434
import qualified HieDb
3535
import Language.LSP.Types (DocumentHighlight (..),
3636
SymbolInformation (..))

ghcide/src/Development/IDE/Core/Rules.hs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,8 +123,7 @@ import Development.IDE.Types.HscEnvEq
123123
import Development.IDE.Types.Location
124124
import qualified Development.IDE.Types.Logger as L
125125
import Development.IDE.Types.Options
126-
import Development.IDE.Graph hiding
127-
(Diagnostic)
126+
import Development.IDE.Graph
128127
import Development.IDE.Graph.Classes hiding (get, put)
129128
import Fingerprint
130129
import GHC.Generics (Generic)

ghcide/src/Development/IDE/Core/Shake.hs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,8 +119,7 @@ import Development.IDE.Types.Logger hiding (Priority)
119119
import qualified Development.IDE.Types.Logger as Logger
120120
import Development.IDE.Types.Options
121121
import Development.IDE.Types.Shake
122-
import Development.IDE.Graph hiding (Info, ShakeValue,
123-
doesFileExist)
122+
import Development.IDE.Graph hiding (ShakeValue)
124123
import qualified Development.IDE.Graph as Shake
125124
import Development.IDE.Graph.Classes
126125
import Development.IDE.Graph.Database
Lines changed: 6 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -1,70 +1,22 @@
11
{-# LANGUAGE PatternSynonyms #-}
22

33
module Development.IDE.Graph(
4-
shake,
54
shakeOptions,
6-
Rules, action, withoutActions, alternatives, priority, versioned,
7-
Action, traced,
8-
liftIO, actionOnException, actionFinally, actionBracket, actionCatch, actionRetry, runAfter,
5+
Rules,
6+
Action, action,
7+
actionFinally, actionBracket, actionCatch,
98
ShakeException(..),
109
-- * Configuration
11-
ShakeOptions(..), Rebuild(..), Lint(..), Change(..),
12-
getShakeOptions, getShakeOptionsRules, getHashedShakeVersion,
10+
ShakeOptions(shakeThreads, shakeFiles, shakeExtra),
1311
getShakeExtra, getShakeExtraRules, addShakeExtra,
14-
-- ** Command line
15-
shakeArgs, shakeArgsWith, shakeArgsOptionsWith, shakeOptDescrs, addHelpSuffix,
16-
-- ** Targets
17-
getTargets, addTarget, withTargetDocs, withoutTargets,
18-
-- ** Progress reporting
19-
Progress(..), progressSimple, progressDisplay, progressTitlebar, progressProgram, getProgress,
20-
-- ** Verbosity
21-
Verbosity(..), getVerbosity, putVerbose, putInfo, putWarn, putError, withVerbosity, quietly,
22-
-- * Running commands
23-
command, command_, cmd, cmd_, unit,
24-
Stdout(..), StdoutTrim(..), Stderr(..), Stdouterr(..), Exit(..), Process(..), CmdTime(..), CmdLine(..), FSATrace(..),
25-
CmdResult, CmdString, CmdOption(..),
26-
addPath, addEnv,
2712
-- * Explicit parallelism
28-
parallel, forP, par,
29-
-- * Utility functions
30-
copyFile', copyFileChanged,
31-
readFile', readFileLines,
32-
writeFile', writeFileLines, writeFileChanged,
33-
removeFiles, removeFilesAfter,
34-
withTempFile, withTempDir,
35-
withTempFileWithin, withTempDirWithin,
36-
-- * File rules
37-
need, want, (%>), (|%>), (?>), phony, (~>), phonys,
38-
(&%>), (&?>),
39-
orderOnly, orderOnlyAction,
40-
FilePattern, (?==), (<//>), filePattern,
41-
needed, trackRead, trackWrite, trackAllow,
42-
-- * Directory rules
43-
doesFileExist, doesDirectoryExist, getDirectoryContents, getDirectoryFiles, getDirectoryDirs,
44-
getDirectoryFilesIO,
45-
-- * Environment rules
46-
getEnv, getEnvWithDefault, getEnvError,
13+
parallel,
4714
-- * Oracle rules
48-
ShakeValue, RuleResult, addOracle, addOracleCache, addOracleHash, askOracle, askOracles,
15+
ShakeValue, RuleResult,
4916
-- * Special rules
5017
alwaysRerun,
51-
-- * Resources
52-
Resource, newResource, newResourceIO, withResource, withResources,
53-
newThrottle, newThrottleIO,
54-
unsafeExtraThread,
55-
-- * Cache
56-
newCache, newCacheIO,
57-
historyDisable, produces,
5818
-- * Batching
59-
needHasChanged,
60-
resultHasChanged,
61-
batch,
6219
reschedule,
63-
-- * Deprecated
64-
askOracleWith,
65-
deprioritize,
66-
pattern Quiet, pattern Normal, pattern Loud, pattern Chatty,
67-
putLoud, putNormal, putQuiet
6820
) where
6921

7022
import Development.Shake

hls-graph/src/Development/IDE/Graph/Database.hs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,8 @@
22
module Development.IDE.Graph.Database(
33
ShakeDatabase,
44
shakeOpenDatabase,
5-
shakeWithDatabase,
6-
shakeOneShotDatabase,
75
shakeRunDatabase,
8-
shakeLiveFilesDatabase,
96
shakeProfileDatabase,
10-
shakeErrorsDatabase,
11-
shakeRunAfter
127
) where
138

149
import Development.Shake.Database

hls-graph/src/Development/IDE/Graph/Rule.hs

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -7,18 +7,6 @@ module Development.IDE.Graph.Rule(
77
-- * Calling builtin rules
88
-- | Wrappers around calling Shake rules. In general these should be specialised to a builtin rule.
99
apply, apply1,
10-
-- * User rules
11-
-- | Define user rules that can be used by builtin rules.
12-
-- Absent any builtin rule making use of a user rule at a given type, a user rule will have on effect -
13-
-- they have no inherent effect or interpretation on their own.
14-
addUserRule, getUserRuleList, getUserRuleMaybe, getUserRuleOne,
15-
-- * Lint integration
16-
-- | Provide lint warnings when running code.
17-
lintTrackRead, lintTrackWrite, lintTrackAllow,
18-
-- * History caching
19-
-- | Interact with the non-local cache. When using the cache it is important that all
20-
-- rules have accurate 'BuiltinIdentity' functions.
21-
historyIsEnabled, historySave, historyLoad
2210
) where
2311

2412
import Development.Shake.Rule

hls-plugin-api/src/Ide/Types.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ import Data.Semigroup
3838
import Data.String
3939
import qualified Data.Text as T
4040
import Data.Text.Encoding (encodeUtf8)
41-
import Development.IDE.Graph hiding (command)
41+
import Development.IDE.Graph
4242
import GHC.Generics
4343
import Ide.Plugin.Config
4444
import Ide.Plugin.Properties

0 commit comments

Comments
 (0)