Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
H
haddock
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Analyze
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
haddock
Commits
7648b30c
Commit
7648b30c
authored
17 years ago
by
David Waern
Browse files
Options
Downloads
Patches
Plain Diff
Correct comments
parent
de960751
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/Main.hs
+4
-4
4 additions, 4 deletions
src/Main.hs
with
4 additions
and
4 deletions
src/Main.hs
+
4
−
4
View file @
7648b30c
...
...
@@ -1381,17 +1381,17 @@ getPackage session pkgInfo = do
}
-- | Try to create a HaddockPackage for each package
in the session except for
--
rts.
Print a warning on stdout if a HaddockPackage could not be created.
-- | Try to create a HaddockPackage for each package
.
-- Print a warning on stdout if a HaddockPackage could not be created.
getPackages
::
Session
->
[
PackageId
]
->
IO
[
HaddockPackage
]
getPackages
session
packages
=
do
-- get InstalledPackageInfos for e
very
package
in the session
-- get InstalledPackageInfos for e
ach
package
dynflags
<-
getSessionDynFlags
session
let
pkgInfos
=
map
(
getPackageDetails
(
pkgState
dynflags
))
packages
-- try to read the installed haddock information (.haddock interface file and
-- html path) for the packages
and html path
-- html path) for the packages
liftM
catMaybes
$
mapM
tryGetPackage
pkgInfos
where
-- try to get a HaddockPackage, warn if we can't
...
...
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