Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
Cabal
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Contributor analytics
CI/CD analytics
Repository analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Glasgow Haskell Compiler
Packages
Cabal
Commits
00b2f07d
Commit
00b2f07d
authored
8 years ago
by
John Ericson
Browse files
Options
Downloads
Patches
Plain Diff
Better document "build-tools" and "build-tool-depends"
parent
9694751a
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Cabal/Distribution/Types/BuildInfo.hs
+17
-3
17 additions, 3 deletions
Cabal/Distribution/Types/BuildInfo.hs
with
17 additions
and
3 deletions
Cabal/Distribution/Types/BuildInfo.hs
+
17
−
3
View file @
00b2f07d
...
@@ -30,8 +30,23 @@ import Language.Haskell.Extension
...
@@ -30,8 +30,23 @@ import Language.Haskell.Extension
-- Consider refactoring into executable and library versions.
-- Consider refactoring into executable and library versions.
data
BuildInfo
=
BuildInfo
{
data
BuildInfo
=
BuildInfo
{
buildable
::
Bool
,
-- ^ component is buildable here
buildable
::
Bool
,
-- ^ component is buildable here
buildTools
::
[
LegacyExeDependency
],
-- ^ tools needed to build this bit
-- | Tools needed to build this bit.
toolDepends
::
[
ExeDependency
],
-- ^ haskell tools needed to build this bit
--
-- This is a legacy field that "build-tool-depends" larely supersedes.
--
-- Unless use are very sure what you are doing, use the functions in
-- `Distribution.Simple.BuildToolDepends` rather than accessing this
-- field directly.
buildTools
::
[
LegacyExeDependency
],
-- | Haskell tools needed to build this bit
--
-- This field is better than "build-tools" because it allows one to
-- precisely specify an executable in a package.
--
-- Unless use are very sure what you are doing, use the functions in
-- `Distribution.Simple.BuildToolDepends` rather than accessing this
-- field directly.
toolDepends
::
[
ExeDependency
],
cppOptions
::
[
String
],
-- ^ options for pre-processing Haskell code
cppOptions
::
[
String
],
-- ^ options for pre-processing Haskell code
ccOptions
::
[
String
],
-- ^ options for C compiler
ccOptions
::
[
String
],
-- ^ options for C compiler
ldOptions
::
[
String
],
-- ^ options for linker
ldOptions
::
[
String
],
-- ^ options for linker
...
@@ -180,4 +195,3 @@ lookupHcOptions :: (BuildInfo -> [(CompilerFlavor,[String])])
...
@@ -180,4 +195,3 @@ lookupHcOptions :: (BuildInfo -> [(CompilerFlavor,[String])])
lookupHcOptions
f
hc
bi
=
[
opt
|
(
hc'
,
opts
)
<-
f
bi
lookupHcOptions
f
hc
bi
=
[
opt
|
(
hc'
,
opts
)
<-
f
bi
,
hc'
==
hc
,
hc'
==
hc
,
opt
<-
opts
]
,
opt
<-
opts
]
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment