Skip to content

Commit 33a1449

Browse files
committed
Make hls-graph use explicit exports rather than module-level exports
1 parent e49a8f7 commit 33a1449

File tree

4 files changed

+106
-8
lines changed

4 files changed

+106
-8
lines changed
Lines changed: 68 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,70 @@
1+
{-# LANGUAGE PatternSynonyms #-}
12

2-
module Development.IDE.Graph(module X) where
3+
module Development.IDE.Graph(
4+
shake,
5+
shakeOptions,
6+
Rules, action, withoutActions, alternatives, priority, versioned,
7+
Action, traced,
8+
liftIO, actionOnException, actionFinally, actionBracket, actionCatch, actionRetry, runAfter,
9+
ShakeException(..),
10+
-- * Configuration
11+
ShakeOptions(..), Rebuild(..), Lint(..), Change(..),
12+
getShakeOptions, getShakeOptionsRules, getHashedShakeVersion,
13+
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,
27+
-- * 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,
47+
-- * Oracle rules
48+
ShakeValue, RuleResult, addOracle, addOracleCache, addOracleHash, askOracle, askOracles,
49+
-- * Special rules
50+
alwaysRerun,
51+
-- * Resources
52+
Resource, newResource, newResourceIO, withResource, withResources,
53+
newThrottle, newThrottleIO,
54+
unsafeExtraThread,
55+
-- * Cache
56+
newCache, newCacheIO,
57+
historyDisable, produces,
58+
-- * Batching
59+
needHasChanged,
60+
resultHasChanged,
61+
batch,
62+
reschedule,
63+
-- * Deprecated
64+
askOracleWith,
65+
deprioritize,
66+
pattern Quiet, pattern Normal, pattern Loud, pattern Chatty,
67+
putLoud, putNormal, putQuiet
68+
) where
369

4-
import Development.Shake as X
70+
import Development.Shake
Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11

2-
module Development.IDE.Graph.Classes(module X) where
2+
module Development.IDE.Graph.Classes(
3+
Show(..), Typeable, Eq(..), Hashable(..), Binary(..), NFData(..)
4+
) where
35

4-
import Development.Shake.Classes as X
6+
import Development.Shake.Classes
Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,14 @@
11

2-
module Development.IDE.Graph.Database(module X) where
2+
module Development.IDE.Graph.Database(
3+
ShakeDatabase,
4+
shakeOpenDatabase,
5+
shakeWithDatabase,
6+
shakeOneShotDatabase,
7+
shakeRunDatabase,
8+
shakeLiveFilesDatabase,
9+
shakeProfileDatabase,
10+
shakeErrorsDatabase,
11+
shakeRunAfter
12+
) where
313

4-
import Development.Shake.Database as X
14+
import Development.Shake.Database
Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,24 @@
11

2-
module Development.IDE.Graph.Rule(module X) where
2+
module Development.IDE.Graph.Rule(
3+
-- * Defining builtin rules
4+
-- | Functions and types for defining new types of Shake rules.
5+
addBuiltinRule,
6+
BuiltinLint, noLint, BuiltinIdentity, noIdentity, BuiltinRun, RunMode(..), RunChanged(..), RunResult(..),
7+
-- * Calling builtin rules
8+
-- | Wrappers around calling Shake rules. In general these should be specialised to a builtin rule.
9+
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
22+
) where
323

4-
import Development.Shake.Rule as X
24+
import Development.Shake.Rule

0 commit comments

Comments
 (0)