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
1aa5ee61
Commit
1aa5ee61
authored
14 years ago
by
Mark Lentczner
Browse files
Options
Downloads
Patches
Plain Diff
merge with David's source cleanups
parent
8b692e2d
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/Backends/Xhtml/Utils.hs
+2
-38
2 additions, 38 deletions
src/Haddock/Backends/Xhtml/Utils.hs
with
2 additions
and
38 deletions
src/Haddock/Backends/Xhtml/Utils.hs
+
2
−
38
View file @
1aa5ee61
...
...
@@ -23,10 +23,9 @@ module Haddock.Backends.Xhtml.Utils (
arrow
,
comma
,
dcolon
,
dot
,
darrow
,
equals
,
forallSymbol
,
quote
,
hsep
,
onclick
,
collapsebutton
,
collapseId
,
cssFiles
,
styleSheet
,
stylePickers
,
styleMenu
)
where
...
...
@@ -192,38 +191,3 @@ collapsebutton id_ =
-- the ECMA script string delimiter used in collapsebutton above.
collapseId
::
Name
->
String
collapseId
nm
=
"i:"
++
escapeStr
(
getOccString
nm
)
-- Standard set of style sheets, first is the preferred
cssThemes
::
[(
String
,
String
)]
cssThemes
=
[
(
"Classic"
,
"xhaddock.css"
),
(
"Tibbe"
,
"thaddock.css"
),
(
"Snappy"
,
"shaddock.css"
)
]
cssFiles
::
[
String
]
cssFiles
=
map
snd
cssThemes
styleSheet
::
Html
styleSheet
=
toHtml
$
zipWith
mkLink
cssThemes
rels
where
rels
=
(
"stylesheet"
:
repeat
"alternate stylesheet"
)
mkLink
(
aTitle
,
aFile
)
aRel
=
(
thelink
!
[
href
aFile
,
rel
aRel
,
thetype
"text/css"
,
XHtml
.
title
aTitle
])
noHtml
stylePickers
::
[
Html
]
stylePickers
=
map
mkPicker
cssThemes
where
mkPicker
(
aTitle
,
aFile
)
=
let
js
=
"setActiveStyleSheet('"
++
aFile
++
"'); return false;"
in
anchor
!
[
href
"#"
,
onclick
js
]
<<
aTitle
styleMenu
::
Html
styleMenu
=
thediv
!
[
identifier
"style-menu-holder"
]
<<
[
anchor
!
[
href
"#"
,
onclick
js
]
<<
"Style
\9662
"
,
unordList
stylePickers
!
[
identifier
"style-menu"
,
theclass
"hide"
]
]
where
js
=
"styleMenu(); return false;"
\ No newline at end of file
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