Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
Glasgow Haskell Compiler
GHC
Commits
0ef2b1f8
Commit
0ef2b1f8
authored
Aug 14, 2017
by
Andrey Mokhov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Clean up imports
parent
b4977a3c
Changes
10
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
5 additions
and
23 deletions
+5
-23
src/Expression.hs
src/Expression.hs
+2
-12
src/Hadrian/Oracles/Path.hs
src/Hadrian/Oracles/Path.hs
+0
-1
src/Oracles/PackageData.hs
src/Oracles/PackageData.hs
+2
-3
src/Oracles/Setting.hs
src/Oracles/Setting.hs
+0
-1
src/Rules.hs
src/Rules.hs
+0
-1
src/Rules/Install.hs
src/Rules/Install.hs
+1
-1
src/Rules/Selftest.hs
src/Rules/Selftest.hs
+0
-1
src/Settings.hs
src/Settings.hs
+0
-1
src/Settings/Install.hs
src/Settings/Install.hs
+0
-1
src/Utilities.hs
src/Utilities.hs
+0
-1
No files found.
src/Expression.hs
View file @
0ef2b1f8
...
...
@@ -20,25 +20,15 @@ module Expression (
getInput
,
getOutput
,
-- * Re-exports
module
Data
.
Semigroup
,
module
Builder
,
module
Package
,
module
Stage
,
module
Way
module
Base
)
where
import
Control.Monad.Extra
import
Data.Semigroup
import
qualified
Hadrian.Expression
as
H
import
Hadrian.Expression
hiding
(
Expr
,
Predicate
,
Args
)
import
B
uilder
import
B
ase
import
Context
(
Context
,
vanillaContext
,
stageContext
,
getStage
,
getPackage
,
getWay
)
import
Package
import
Stage
import
Target
hiding
(
builder
,
inputs
,
outputs
)
import
Way
-- | @Expr a@ is a computation that produces a value of type @Action a@ and can
-- read parameters of the current build 'Target'.
...
...
src/Hadrian/Oracles/Path.hs
View file @
0ef2b1f8
...
...
@@ -33,7 +33,6 @@ fixAbsolutePathOnWindows path = do
else
return
path
newtype
LookupInPath
=
LookupInPath
String
deriving
(
Binary
,
Eq
,
Hashable
,
NFData
,
Show
,
Typeable
)
...
...
src/Oracles/PackageData.hs
View file @
0ef2b1f8
...
...
@@ -2,10 +2,9 @@ module Oracles.PackageData (
PackageData
(
..
),
PackageDataList
(
..
),
pkgData
,
pkgDataList
)
where
import
Data.List
import
Development.Shake
import
Hadrian.Oracles.KeyValue
import
Hadrian.Utilities
import
Base
data
PackageData
=
BuildGhciLib
FilePath
|
ComponentId
FilePath
...
...
src/Oracles/Setting.hs
View file @
0ef2b1f8
...
...
@@ -6,7 +6,6 @@ module Oracles.Setting (
topDirectory
,
relocatableBuild
,
installDocDir
,
installGhcLibDir
,
libsuf
)
where
import
Development.Shake
import
Hadrian.Expression
import
Hadrian.Oracles.KeyValue
import
Hadrian.Oracles.Path
...
...
src/Rules.hs
View file @
0ef2b1f8
...
...
@@ -5,7 +5,6 @@ import qualified Hadrian.Oracles.DirectoryContents
import
qualified
Hadrian.Oracles.KeyValue
import
qualified
Hadrian.Oracles.Path
import
Base
import
Context
import
Expression
import
Flavour
...
...
src/Rules/Install.hs
View file @
0ef2b1f8
...
...
@@ -5,7 +5,7 @@ import qualified System.Directory as IO
import
Base
import
Context
import
Expression
hiding
(
builder
)
import
Expression
import
GHC
import
Oracles.Setting
import
Rules
...
...
src/Rules/Selftest.hs
View file @
0ef2b1f8
{-# OPTIONS_GHC -fno-warn-orphans #-}
module
Rules.Selftest
(
selftestRules
)
where
import
Development.Shake
import
Test.QuickCheck
import
Base
...
...
src/Settings.hs
View file @
0ef2b1f8
...
...
@@ -9,7 +9,6 @@ module Settings (
import
Hadrian.Oracles.KeyValue
import
Hadrian.Oracles.Path
import
Base
import
Context
import
CmdLineFlag
import
Expression
...
...
src/Settings/Install.hs
View file @
0ef2b1f8
module
Settings.Install
(
installPackageDbDirectory
)
where
import
Base
import
Expression
import
UserSettings
...
...
src/Utilities.hs
View file @
0ef2b1f8
...
...
@@ -17,7 +17,6 @@ import Hadrian.Oracles.DirectoryContents
import
Hadrian.Oracles.KeyValue
import
Hadrian.Oracles.Path
import
Base
import
CmdLineFlag
import
Context
import
Expression
hiding
(
builder
,
inputs
,
outputs
,
way
,
stage
,
package
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment