Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found

Target

Select target project
  • rae/haddock
  • sjakobi/haddock
  • RyanGlScott/haddock
  • mynguyenbmc/haddock
  • kcsongor/haddock
  • wz1000/haddock
  • dten/haddock
  • bgamari/haddock
  • abrar/haddock
  • obsidiansystems/haddock
  • inaki/haddock
  • hsyl20/haddock
  • JoshMeredith/haddock
  • matheus23/haddock
  • Gertjan423/haddock
  • ulysses4ever/haddock
  • facundominguez/haddock
  • SuedeHead/haddock
  • Haskell-mouse/haddock
  • fgaz/haddock
  • arybczak/haddock
  • coot/haddock
  • hithroc/haddock
  • ani/haddock
  • supersven/haddock
  • alt-romes/haddock
  • sspencer/haddock
  • Joald/haddock
  • raehik/haddock
  • lexi.lambda/haddock
  • torsten.schmits/haddock
  • Bodigrim/haddock
  • doyougnu/haddock
  • barci2/haddock
  • Jade/haddock
  • wavewave/haddock
  • soulomoon/haddock
  • tvh/haddock
  • trac-sjoerd_visscher/haddock
  • Kleidukos/haddock
  • mmzk1526/haddock
  • stephenjudkins/haddock
  • KommuSoft1/haddock
43 results
Show changes
Showing
with 832 additions and 56 deletions
module A where
data A = A
module B ( module A ) where
import A
-- | Module: M
f :: a -> a
infix -->
infix --->
data Typ = Type (String,[Typ])
| TFree (String, [String])
x --> y = Type("fun",[s,t])
(--->) = flip $ foldr (-->)
-- Haddock 0.6 didn't parse this module, because the qualified
-- identifier C.safe was incorrectly lexed as 3 tokens.
module Check where
import qualified Foo as C
check = undefined { C.safe = 3 }
TOP = ..
include $(TOP)/mk/boilerplate.mk
all :: index.html
index.html : $(HS_SRCS) $(HADDOCK_INPLACE)
$(HADDOCK_INPLACE) -h $(HS_SRCS)
CLEAN_FILES += index.html
include $(TOP)/mk/target.mk
module NoLayout where {
-- | the class 'C'
g :: Int;
}
-- #hide
module A where { data T = MkT; f :: T; f = MkT }
module B(Test, vis) where
vis = id
data Test = Test
module C(C.bla) where
import D
bla :: Test
bla = undefined
-- The link to the type T in the doc for this module should point to
-- B.T, not A.T. Bug fixed in rev 1.59 of Main.hs.
module D(Test, hej) where
import B
hej = vis
utils/haddock_USES_CABAL = YES
utils/haddock_PACKAGE = haddock
utils/haddock_CONFIGURE_OPTS = --flag in-ghc-tree
utils/haddock_dist_SHELL_WRAPPER = YES
utils/haddock_dist_INSTALL = YES
utils/haddock_dist_INSTALL_INPLACE = YES
utils/haddock_dist_INSTALL_SHELL_WRAPPER_NAME = haddock-ghc-$(ProjectVersion)
utils/haddock_dist_PROGNAME = haddock
ifeq "$(GhcProfiled)" "YES"
utils/haddock_dist_PROGRAM_WAY = p
utils/haddock_dist_WAY = p
utils/haddock/dist/build/tmp/$(utils/haddock_dist_PROG) : $(utils/haddock_dist_p_LIB)
endif
ifeq "$(HADDOCK_DOCS)" "NO"
utils/haddock_dist_NOT_NEEDED = YES
endif
$(eval $(call build-prog,utils/haddock,dist,2))
ifneq "$(BINDIST)" "YES"
$(INPLACE_BIN)/$(utils/haddock_dist_PROG): $(INPLACE_LIB)/html $(INPLACE_LIB)/latex
$(INPLACE_LIB)/html:
$(call removeTrees,$@)
"$(CP)" -RL utils/haddock/haddock-api/resources/html $@
$(INPLACE_LIB)/latex:
$(call removeTrees,$@)
"$(CP)" -RL utils/haddock/haddock-api/resources/latex $@
endif
utils/haddock_dist_DATA_FILES += html/quick-jump.min.js
utils/haddock_dist_DATA_FILES += html/quick-jump.css
utils/haddock_dist_DATA_FILES += html/haddock-bundle.min.js
utils/haddock_dist_DATA_FILES += html/Classic.theme/haskell_icon.gif
utils/haddock_dist_DATA_FILES += html/Classic.theme/minus.gif
utils/haddock_dist_DATA_FILES += html/Classic.theme/plus.gif
utils/haddock_dist_DATA_FILES += html/Classic.theme/xhaddock.css
utils/haddock_dist_DATA_FILES += html/Ocean.theme/hslogo-16.png
utils/haddock_dist_DATA_FILES += html/Ocean.theme/minus.gif
utils/haddock_dist_DATA_FILES += html/Ocean.theme/ocean.css
utils/haddock_dist_DATA_FILES += html/Ocean.theme/plus.gif
utils/haddock_dist_DATA_FILES += html/Ocean.theme/synopsis.png
utils/haddock_dist_DATA_FILES += html/Linuwial.std-theme/linuwial.css
utils/haddock_dist_DATA_FILES += html/Linuwial.std-theme/synopsis.png
utils/haddock_dist_DATA_FILES += html/solarized.css
utils/haddock_dist_DATA_FILES += html/highlight.js
utils/haddock_dist_DATA_FILES += latex/haddock.sty
ifeq "$(HADDOCK_DOCS)" "YES"
install: install_utils/haddock_data
ifeq "$(Windows_Host)" "NO"
install: install_utils/haddock_link
endif
endif
.PHONY: install_utils/haddock_data
install_utils/haddock_data:
$(foreach i,$(sort $(dir $(utils/haddock_dist_DATA_FILES))), \
$(call make-command,$(INSTALL_DIR) "$(DESTDIR)$(ghclibdir)/$i"))
$(foreach i,$(utils/haddock_dist_DATA_FILES), \
$(call make-command,$(INSTALL_DATA) $(INSTALL_OPTS) utils/haddock/haddock-api/resources/$i "$(DESTDIR)$(ghclibdir)/$(dir $i)"))
.PHONY: install_utils/haddock_link
install_utils/haddock_link:
$(call removeFiles,"$(DESTDIR)$(bindir)/haddock")
$(LN_S) $(utils/haddock_dist_INSTALL_SHELL_WRAPPER_NAME) "$(DESTDIR)$(bindir)/haddock"
BINDIST_EXTRAS += $(addprefix utils/haddock/haddock-api/resources/,$(utils/haddock_dist_DATA_FILES))
See [`haddock`'s changelog](https://hackage.haskell.org/package/haddock/changelog).
Copyright (c) 2002-2010, Simon Marlow
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:
1. Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the
distribution.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#!/usr/bin/env runhaskell
> import Distribution.Simple
> main = defaultMain
cabal-version: 3.0
name: haddock-api
version: 2.28.0
synopsis: A documentation-generation tool for Haskell libraries
description: Haddock is a documentation-generation tool for Haskell
libraries
license: BSD-2-Clause
license-file: LICENSE
author: Simon Marlow, David Waern
maintainer: Alec Theriault <alec.theriault@gmail.com>, Alex Biehl <alexbiehl@gmail.com>, Simon Hengel <sol@typeful.net>, Mateusz Kowalczyk <fuuzetsu@fuuzetsu.co.uk>
homepage: http://www.haskell.org/haddock/
bug-reports: https://github.com/haskell/haddock/issues
copyright: (c) Simon Marlow, David Waern
category: Documentation
build-type: Simple
tested-with: GHC==9.6.*
extra-source-files:
CHANGES.md
data-dir:
resources
data-files:
html/quick-jump.min.js
html/haddock-bundle.min.js
html/quick-jump.css
html/solarized.css
html/highlight.js
html/Classic.theme/haskell_icon.gif
html/Classic.theme/minus.gif
html/Classic.theme/plus.gif
html/Classic.theme/xhaddock.css
html/Ocean.theme/hslogo-16.png
html/Ocean.theme/minus.gif
html/Ocean.theme/ocean.css
html/Ocean.theme/plus.gif
html/Ocean.theme/synopsis.png
html/Linuwial.std-theme/linuwial.css
html/Linuwial.std-theme/synopsis.png
latex/haddock.sty
library
default-language: Haskell2010
-- this package typically supports only single major versions
build-depends: base ^>= 4.16.0
, ghc ^>= 9.9
, ghc-paths ^>= 0.1.0.12
, haddock-library ^>= 1.11
, xhtml ^>= 3000.2.2
, parsec ^>= 3.1.13.0
-- Versions for the dependencies below are transitively pinned by
-- the non-reinstallable `ghc` package and hence need no version
-- bounds
build-depends: array
, bytestring
, containers
, deepseq
, directory
, exceptions
, filepath
, ghc-boot
, mtl
, transformers
hs-source-dirs: src
ghc-options: -funbox-strict-fields -O2
-Wall
-Wcompat
-Wcompat-unqualified-imports
-Widentities
-Wredundant-constraints
-Wnoncanonical-monad-instances
-Wmissing-home-modules
-Wincomplete-uni-patterns
-Wincomplete-record-updates
exposed-modules:
Documentation.Haddock
other-modules:
Haddock
Haddock.Interface
Haddock.Interface.Rename
Haddock.Interface.RenameType
Haddock.Interface.Create
Haddock.Interface.AttachInstances
Haddock.Interface.Json
Haddock.Interface.LexParseRn
Haddock.Interface.ParseModuleHeader
Haddock.Parser
Haddock.Utils
Haddock.Utils.Json
Haddock.Utils.Json.Types
Haddock.Utils.Json.Parser
Haddock.Backends.Xhtml
Haddock.Backends.Xhtml.Decl
Haddock.Backends.Xhtml.DocMarkup
Haddock.Backends.Xhtml.Layout
Haddock.Backends.Xhtml.Meta
Haddock.Backends.Xhtml.Names
Haddock.Backends.Xhtml.Themes
Haddock.Backends.Xhtml.Types
Haddock.Backends.Xhtml.Utils
Haddock.Backends.LaTeX
Haddock.Backends.HaddockDB
Haddock.Backends.Hoogle
Haddock.Backends.Hyperlinker
Haddock.Backends.Hyperlinker.Parser
Haddock.Backends.Hyperlinker.Renderer
Haddock.Backends.Hyperlinker.Types
Haddock.Backends.Hyperlinker.Utils
Haddock.ModuleTree
Haddock.Types
Haddock.Doc
Haddock.Version
Haddock.InterfaceFile
Haddock.Options
Haddock.GhcUtils
Haddock.Convert
Paths_haddock_api
autogen-modules:
Paths_haddock_api
test-suite spec
type: exitcode-stdio-1.0
default-language: Haskell2010
main-is: Spec.hs
ghc-options: -Wall
hs-source-dirs:
test
, src
other-modules:
Haddock
Haddock.Backends.Hoogle
Haddock.Backends.Hyperlinker
Haddock.Backends.Hyperlinker.Renderer
Haddock.Backends.Hyperlinker.Utils
Haddock.Backends.LaTeX
Haddock.Backends.Xhtml
Haddock.Backends.Xhtml.Decl
Haddock.Backends.Xhtml.DocMarkup
Haddock.Backends.Xhtml.Layout
Haddock.Backends.Xhtml.Meta
Haddock.Backends.Xhtml.Names
Haddock.Backends.Xhtml.Themes
Haddock.Backends.Xhtml.Types
Haddock.Backends.Xhtml.Utils
Haddock.Convert
Haddock.Doc
Haddock.GhcUtils
Haddock.Interface
Haddock.Interface.AttachInstances
Haddock.Interface.Create
Haddock.Interface.Json
Haddock.Interface.LexParseRn
Haddock.Interface.ParseModuleHeader
Haddock.Interface.Rename
Haddock.InterfaceFile
Haddock.ModuleTree
Haddock.Options
Haddock.Parser
Haddock.Types
Haddock.Utils
Haddock.Utils.Json
Haddock.Utils.Json.Types
Haddock.Utils.Json.Parser
Haddock.Version
Paths_haddock_api
Haddock.Backends.Hyperlinker.ParserSpec
Haddock.Backends.Hyperlinker.Parser
Haddock.Backends.Hyperlinker.Types
build-depends: ghc ^>= 9.7
, ghc-paths ^>= 0.1.0.12
, haddock-library ^>= 1.11
, xhtml ^>= 3000.2.2
, hspec ^>= 2.9
, parsec ^>= 3.1.13.0
, QuickCheck >= 2.11 && ^>= 2.14
-- Versions for the dependencies below are transitively pinned by
-- the non-reinstallable `ghc` package and hence need no version
-- bounds
build-depends: base
, array
, bytestring
, containers
, deepseq
, directory
, exceptions
, filepath
, ghc-boot
, ghc-boot-th
, mtl
, transformers
build-tool-depends:
hspec-discover:hspec-discover ^>= 2.9
source-repository head
type: git
subdir: haddock-api
location: https://github.com/haskell/haddock.git
* {
margin: 0;
padding: 0;
}
.extension-list {
list-style-type: none;
margin-left: 0;
padding-left: 0;
}
body {
background-color: #ffffff;
color: #000000;
font-size: 100%;
font-family: sans-serif;
padding: 8px;
}
a:link { color: #0000e0; text-decoration: none }
a:visited { color: #0000a0; text-decoration: none }
a:hover { background-color: #e0e0ff; text-decoration: none }
/* <tt> font is a little too small in MSIE */
tt { font-size: 100%; }
pre { font-size: 100%; }
.keyword { text-decoration: underline; }
.caption {
font-weight: bold;
margin: 0;
padding: 0;
}
h1 {
padding-top: 15px;
font-weight: bold;
font-size: 150%;
}
h2 {
padding-top: 10px;
font-weight: bold;
font-size: 130%
}
h3 {
padding-top: 5px;
font-weight: bold;
font-size: 110%
}
h4, h5 {
font-weight: bold;
font-size: 100%
}
h1, h2, h3, h4, h5 {
margin-top: 0.5em;
margin-bottom: 0.5em;
}
p {
padding-top: 2px;
padding-left: 10px;
}
ul, ol, dl {
padding-top: 2px;
padding-left: 10px;
margin-left: 2.5em;
}
pre {
padding-top: 2px;
padding-left: 20px;
}
* + p, * + pre {
margin-top: 1em;
}
.caption + p, .src + p {
margin-top: 0;
}
.def {
font-weight: bold;
}
ul.links {
list-style: none;
text-align: left;
float: right;
display: inline-table;
padding: 0;
}
ul.links li {
display: inline;
border-left-width: 1px;
border-left-color: #ffffff;
border-left-style: solid;
white-space: nowrap;
padding: 1px 5px;
}
.hide { display: none; }
.show { }
.collapser {
background: url(minus.gif) no-repeat 0 0.3em;
}
.expander {
background: url(plus.gif) no-repeat 0 0.3em;
}
.collapser, .expander {
padding-left: 14px;
cursor: pointer;
}
@media print {
#footer { display: none; }
}
#package-header {
color: #ffffff;
padding: 5px 5px 5px 31px;
margin: 0 0 1px;
background: #000099 url(haskell_icon.gif) no-repeat 5px 6px;
position: relative;
}
#package-header .caption {
font-weight: normal;
font-style: normal;
}
#package-header a:link { color: #ffffff }
#package-header a:visited { color: #ffff00 }
#package-header a:hover { background-color: #6060ff; }
#package-header ul.links li:hover { background-color: #6060ff; }
div#style-menu-holder {
position: relative;
z-index: 2;
display: inline;
}
#style-menu {
position: absolute;
z-index: 1;
overflow: visible;
background-color: #000099;
margin: 0;
width: 6em;
text-align: center;
right: 0;
padding: 2px 2px 1px;
top: 1.25em;
}
#style-menu li {
display: list-item;
border-style: none;
margin: 0;
padding: 3px;
color: #000;
list-style-type: none;
border-top: 1px solid #ffffff;
}
#module-header {
overflow: hidden; /* makes sure info float is properly contained */
display: inline-block; /* triggers hasLayout in IE*/
}
#module-header {
display: block; /* back to block */
background-color: #0077dd;
padding: 5px;
}
#module-header .caption {
font-size: 200%;
padding: .35em 0;
font-weight: normal;
font-style: normal;
}
table.info {
color: #ffffff;
display: block;
float: right;
max-width: 50%;
}
.info th, .info td {
text-align: left;
padding: 0 10px 0 0;
}
#table-of-contents {
margin-top: 1em;
margin-bottom: 2em;
}
#table-of-contents ul {
margin-top: 1em;
margin-bottom: 1em;
margin-left: 0;
list-style-type: none;
padding: 0;
}
#table-of-contents ul ul {
margin-left: 2.5em;
}
#description .caption,
#synopsis .caption,
#module-list .caption,
#index .caption {
padding-top: 15px;
font-weight: bold;
font-size: 150%
}
#synopsis {
margin-bottom: 2em;
}
#synopsis .expander,
#synopsis .collapser {
background: none;
padding-left: inherit;
}
#synopsis .hide {
display: inherit;
}
#synopsis ul {
margin: 0;
padding-top: 0;
padding-left: 20px;
list-style-type: none;
}
#synopsis li {
margin-top: 8px;
margin-bottom: 8px;
padding: 3px;
}
#synopsis li li {
padding: 0;
margin-top: 0;
margin-bottom: 0;
}
div.top {
margin-top: 1em;
clear: left;
margin-bottom: 1em;
}
div.top h5 {
margin-left: 10px;
}
.src {
padding: 3px;
background-color: #f0f0f0;
font-family: monospace;
margin-bottom: 0;
}
.src a.link {
float: right;
border-left-width: 1px;
border-left-color: #000099;
border-left-style: solid;
white-space: nowrap;
font-size: small;
padding: 0 8px 2px 5px;
margin-right: -3px;
background-color: #f0f0f0;
-moz-user-select: none;
}
div.subs {
margin-left: 10px;
clear: both;
margin-top: 2px;
}
.subs dl {
margin-left: 0;
}
.subs dl dl {
padding-left: 0;
padding-top: 4px;
}
.subs dd
{
margin: 2px 0 9px 2em;
}
.subs dd.empty {
display: none;
}
.subs table {
margin-left: 10px;
border-spacing: 1px 1px;
margin-top: 4px;
margin-bottom: 4px;
}
.subs table table {
margin-left: 0;
}
.arguments .caption,
.fields .caption {
display: none;
}
/* need extra .subs in the selector to make it override the rules for .subs and .subs table */
.subs.arguments {
margin: 0;
}
.subs.arguments table {
border-spacing: 0;
margin-top: 0;
margin-bottom: 0;
}
.subs.arguments td.src {
white-space: nowrap;
}
.subs.arguments + p {
margin-top: 0;
}
.subs.associated-types,
.subs.methods {
margin-left: 20px;
}
.subs.associated-types .caption,
.subs.methods .caption {
margin-top: 0.5em;
margin-left: -10px;
}
.subs.associated-types .src + .src,
.subs.methods .src + .src {
margin-top: 8px;
}
p.arg {
margin-bottom: 0;
}
p.arg span {
background-color: #f0f0f0;
font-family: monospace;
white-space: nowrap;
float: none;
}
img.coll {
width : 0.75em; height: 0.75em; margin-bottom: 0; margin-right: 0.5em
}
td.arg {
padding: 3px;
background-color: #f0f0f0;
font-family: monospace;
margin-bottom: 0;
}
td.rdoc p {
margin-bottom: 0;
}
.doc table {
border-collapse: collapse;
border-spacing: 0px;
}
.doc th,
.doc td {
padding: 5px;
border: 1px solid #ddd;
}
.doc th {
background-color: #f0f0f0;
}
#footer {
background-color: #000099;
color: #ffffff;
padding: 4px
}
#footer p {
padding: 1px;
margin: 0;
}
#footer a:link {
color: #ffffff;
text-decoration: underline
}
#footer a:visited {
color: #ffff00
}
#footer a:hover {
background-color: #6060ff
}
#module-list ul {
list-style: none;
padding-bottom: 15px;
padding-left: 2px;
margin: 0;
}
#module-list ul ul {
padding-bottom: 0;
padding-left: 20px;
}
#module-list li .package {
float: right;
}
#mini #module-list .caption {
display: none;
}
#index .caption {
}
#alphabet ul {
list-style: none;
padding: 0;
margin: 0.5em 0 0;
}
#alphabet li {
display: inline;
margin: 0 0.2em;
}
#index .src {
background: none;
font-family: inherit;
}
#index td.alt {
padding-left: 2em;
}
#index td {
padding-top: 2px;
padding-bottom: 1px;
padding-right: 1em;
}
#mini h1 { font-size: 130%; }
#mini h2 { font-size: 110%; }
#mini h3 { font-size: 100%; }
#mini h1, #mini h2, #mini h3 {
margin-top: 0.5em;
margin-bottom: 0.25em;
padding: 0 0;
}
#mini h1 { border-bottom: 1px solid #ccc; }
#mini #module-header {
margin: 0;
padding: 0;
}
#mini #module-header .caption {
font-size: 130%;
background: #0077dd;
padding: 0.25em;
height: inherit;
margin: 0;
}
#mini #interface .top {
margin: 0;
padding: 0;
}
#mini #interface .src {
margin: 0;
padding: 0;
font-family: inherit;
background: inherit;
}
.warning {
color: red;
}