Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Glasgow Haskell Compiler
Packages
Cabal
Commits
94e87548
Commit
94e87548
authored
May 01, 2008
by
Joachim Breitner
Browse files
Add an --internal flag to HaddockFlags
parent
d35aa51f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Distribution/Simple/Setup.hs
View file @
94e87548
...
...
@@ -864,6 +864,7 @@ data HaddockFlags = HaddockFlags {
haddockHoogle
::
Flag
Bool
,
haddockHtmlLocation
::
Flag
String
,
haddockExecutables
::
Flag
Bool
,
haddockInternal
::
Flag
Bool
,
haddockCss
::
Flag
FilePath
,
haddockHscolour
::
Flag
Bool
,
haddockHscolourCss
::
Flag
FilePath
,
...
...
@@ -876,6 +877,7 @@ defaultHaddockFlags = HaddockFlags {
haddockHoogle
=
Flag
False
,
haddockHtmlLocation
=
NoFlag
,
haddockExecutables
=
Flag
False
,
haddockInternal
=
Flag
False
,
haddockCss
=
NoFlag
,
haddockHscolour
=
Flag
False
,
haddockHscolourCss
=
NoFlag
,
...
...
@@ -906,6 +908,11 @@ haddockCommand = makeCommand name shortDesc longDesc defaultHaddockFlags options
haddockExecutables
(
\
v
flags
->
flags
{
haddockExecutables
=
v
})
trueArg
,
option
""
[
"internal"
]
"Run haddock for internal modules and include all symbols"
haddockInternal
(
\
v
flags
->
flags
{
haddockInternal
=
v
})
trueArg
,
option
""
[
"css"
]
"Use PATH as the haddock stylesheet"
haddockCss
(
\
v
flags
->
flags
{
haddockCss
=
v
})
...
...
@@ -930,6 +937,7 @@ instance Monoid HaddockFlags where
haddockHoogle
=
mempty
,
haddockHtmlLocation
=
mempty
,
haddockExecutables
=
mempty
,
haddockInternal
=
mempty
,
haddockCss
=
mempty
,
haddockHscolour
=
mempty
,
haddockHscolourCss
=
mempty
,
...
...
@@ -939,6 +947,7 @@ instance Monoid HaddockFlags where
haddockHoogle
=
combine
haddockHoogle
,
haddockHtmlLocation
=
combine
haddockHtmlLocation
,
haddockExecutables
=
combine
haddockExecutables
,
haddockInternal
=
combine
haddockInternal
,
haddockCss
=
combine
haddockCss
,
haddockHscolour
=
combine
haddockHscolour
,
haddockHscolourCss
=
combine
haddockHscolourCss
,
...
...
Write
Preview
Supports
Markdown
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