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
Package Registry
Model registry
Operate
Environments
Terraform modules
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
Stephen Judkins
haddock
Commits
050b525f
Commit
050b525f
authored
17 years ago
by
David Waern
Browse files
Options
Downloads
Patches
Plain Diff
Fix layout problems in Haddock.Types
parent
958797f5
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/Haddock/Types.hs
+17
-9
17 additions, 9 deletions
src/Haddock/Types.hs
with
17 additions
and
9 deletions
src/Haddock/Types.hs
+
17
−
9
View file @
050b525f
...
...
@@ -6,13 +6,15 @@
-- Ported to use the GHC API by David Waern 2006
--
module
Haddock.Types
where
import
GHC
hiding
(
NoLink
)
import
Outputable
import
Data.Map
data
DocOption
=
OptHide
-- ^ This module should not appear in the docs
|
OptPrune
...
...
@@ -21,11 +23,12 @@ data DocOption
-- exported by this module.
deriving
(
Eq
,
Show
)
data
ExportItem
name
=
ExportDecl
{
-- | The original name
-- | The original name
expItemName
::
Name
,
-- | A declaration
...
...
@@ -34,13 +37,13 @@ data ExportItem name
-- | Maybe a doc comment
expItemMbDoc
::
Maybe
(
HsDoc
name
),
-- | Instances relevant to this declaration
-- | Instances relevant to this declaration
expItemInstances
::
[
InstHead
name
]
}
-- ^ An exported declaration
|
ExportNoDecl
{
-- | The original name
-- | The original name
expItemName
::
Name
,
-- | Where to link to
...
...
@@ -50,8 +53,8 @@ data ExportItem name
expItemSubs
::
[
name
]
}
-- ^ An exported entity for which we have no
-- documentation (perhaps because it resides in
-- another package)
-- documentation (perhaps because it resides in
-- another package)
|
ExportGroup
{
...
...
@@ -59,10 +62,10 @@ data ExportItem name
expItemSectionLevel
::
Int
,
-- | Section id (for hyperlinks)
expItemSectionId
::
String
,
expItemSectionId
::
String
,
-- | Section heading text
expItemSectionText
::
HsDoc
name
-- | Section heading text
expItemSectionText
::
HsDoc
name
}
-- ^ A section heading
...
...
@@ -70,17 +73,21 @@ data ExportItem name
|
ExportModule
Module
-- ^ A cross-reference to another module
type
InstHead
name
=
([
HsPred
name
],
name
,
[
HsType
name
])
type
ModuleMap
=
Map
Module
HaddockModule
type
DocMap
=
Map
Name
(
HsDoc
DocName
)
type
DocEnv
=
Map
Name
Name
data
DocName
=
Link
Name
|
NoLink
Name
instance
Outputable
DocName
where
ppr
(
Link
n
)
=
ppr
n
ppr
(
NoLink
n
)
=
ppr
n
data
HaddockModule
=
HM
{
-- | A value to identify the module
...
...
@@ -129,6 +136,7 @@ data HaddockModule = HM {
hmod_instances
::
[
Instance
]
}
data
DocMarkup
id
a
=
Markup
{
markupEmpty
::
a
,
markupString
::
String
->
a
,
...
...
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