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
482ef5d9
Commit
482ef5d9
authored
17 years ago
by
David Waern
Browse files
Options
Downloads
Patches
Plain Diff
Small comment/layout fixes
parent
e8121306
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/Haddock/Options.hs
+12
-4
12 additions, 4 deletions
src/Haddock/Options.hs
src/Main.hs
+1
-2
1 addition, 2 deletions
src/Main.hs
with
13 additions
and
6 deletions
src/Haddock/Options.hs
+
12
−
4
View file @
482ef5d9
--
-- Haddock - A Haskell Documentation Tool
--
-- (c) Simon Marlow 2003
--
-- Ported to use the GHC API by David Waern during "Summer of Code" 2006
--
module
Haddock.Options
(
parseHaddockOpts
,
Flag
(
..
),
...
...
@@ -14,6 +23,9 @@ getUsage :: IO String
getUsage
=
do
prog
<-
getProgramName
return
$
usageInfo
(
usageHeader
prog
)
(
options
False
)
where
usageHeader
::
String
->
String
usageHeader
prog
=
"Usage: "
++
prog
++
" [OPTION...] file...
\n
"
parseHaddockOpts
::
[
String
]
->
IO
([
Flag
],
[
String
])
...
...
@@ -25,10 +37,6 @@ parseHaddockOpts words =
throwE
(
concat
errors
++
usage
)
usageHeader
::
String
->
String
usageHeader
prog
=
"Usage: "
++
prog
++
" [OPTION...] file...
\n
"
data
Flag
=
Flag_CSS
String
|
Flag_Debug
...
...
This diff is collapsed.
Click to expand it.
src/Main.hs
+
1
−
2
View file @
482ef5d9
...
...
@@ -250,7 +250,6 @@ parseGhcFlags session ghcFlags = do
return
dynflags'
byeVersion
=
bye
(
"Haddock version "
++
projectVersion
++
", (c) Simon Marlow 2003; ported to the GHC-API by David Waern 2006
\n
"
)
...
...
@@ -1212,7 +1211,7 @@ type ErrMsgM a = Writer [ErrMsg] a
--------------------------------------------------------------------------------
-- | Represents the installed
h
addock information f
or
a package
-- | Represents the installed
H
addock information
o
f a package
data
HaddockPackage
=
HaddockPackage
{
pdModules
::
[
Module
],
pdDocEnv
::
DocEnv
,
...
...
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