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
5939e7e1
Commit
5939e7e1
authored
May 01, 2008
by
Joachim Breitner
Browse files
With --executable, --internal just adds --ignore-all-exports
parent
778e6739
Changes
1
Hide whitespace changes
Inline
Side-by-side
Distribution/Simple/Haddock.hs
View file @
5939e7e1
...
...
@@ -240,6 +240,8 @@ haddock pkg_descr lbi suffixes flags = do
let
template
=
showPkg
++
"-haddock-prolog.txt"
prolog
|
null
(
PD
.
description
pkg_descr
)
=
synopsis
pkg_descr
|
otherwise
=
PD
.
description
pkg_descr
titleComment
|
fromFlag
(
haddockInternal
flags
)
=
" (internal documentation)"
|
otherwise
=
""
withTempFile
distPref
template
$
\
prologFileName
prologFileHandle
->
do
hPutStrLn
prologFileHandle
prolog
hClose
prologFileHandle
...
...
@@ -247,15 +249,18 @@ haddock pkg_descr lbi suffixes flags = do
|
isVersion2
=
srcMainPath
:
otherModules
bi
|
otherwise
=
replaceLitExts
inFiles
let
preprocessDir
=
buildDir
lbi
</>
exeName
exe
</>
exeName
exe
++
"-tmp"
let
exportsFlags
|
fromFlag
(
haddockInternal
flags
)
=
[
"--ignore-all-exports"
]
|
otherwise
=
[]
rawSystemProgram
verbosity
confHaddock
([
outputFlag
,
"--odir="
++
exeTargetDir
,
"--title="
++
exeName
exe
,
"--title="
++
exeName
exe
++
titleComment
,
"--prologue="
++
prologFileName
]
++
linkToHscolour
++
packageFlags
++
programArgs
confHaddock
++
verboseFlags
++
exportsFlags
++
haddock2options
bi
preprocessDir
++
targets
)
...
...
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