From f21570e5526ce564ac8abeff5310cf753f86ffb8 Mon Sep 17 00:00:00 2001 From: Simon Hengel Date: Mon, 15 Oct 2012 10:41:29 +0200 Subject: Move HTML reference renderings to /html-test/ref/ --- html-test/ref/Test.html | 2245 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 2245 insertions(+) create mode 100644 html-test/ref/Test.html (limited to 'html-test/ref/Test.html') diff --git a/html-test/ref/Test.html b/html-test/ref/Test.html new file mode 100644 index 00000000..f2ef2b28 --- /dev/null +++ b/html-test/ref/Test.html @@ -0,0 +1,2245 @@ + +Test

 

Portabilityportable
Stabilityprovisional
Maintainerlibraries@haskell.org
Safe HaskellNone

Test

Description

This module illustrates & tests most of the features of Haddock. + Testing references from the description: T, f, g, visible. +

Synopsis

Type declarations +

Data types +

data T a b

This comment applies to the following declaration + and it continues until the next non-comment line +

Constructors

A Int (Maybe Float)

This comment describes the A constructor +

B (T a b, T Int Float)

This comment describes the B constructor +

data T2 a b

An abstract data declaration +

data T3 a b

A data declaration with no documentation annotations on the constructors +

Constructors

A1 a 
B1 b 

data T4 a b

Constructors

A2 a 
B2 b 

data T5 a b

Constructors

A3 a

documents A3 +

B3 b

documents B3 +

data T6

Testing alternative comment styles +

Constructors

A4

This is the doc for A4 +

B4

This is the doc for B4 +

C4

This is the doc for C4 +

newtype N1 a

A newtype +

Constructors

N1 a 

newtype N2 a b

A newtype with a fieldname +

Constructors

N2 

Fields

n :: a b
 

newtype N3 a b

A newtype with a fieldname, documentation on the field +

Constructors

N3 

Fields

n3 :: a b

this is the n3 field +

data N4 a b

An abstract newtype - we show this one as data rather than newtype because + the difference isn't visible to the programmer for an abstract type. +

newtype N5 a b

Constructors

N5 

Fields

n5 :: a b

no docs on the datatype or the constructor +

newtype N6 a b

Constructors

N6

docs on the constructor only +

Fields

n6 :: a b
 

newtype N7 a b

docs on the newtype and the constructor +

Constructors

N7

The N7 constructor +

Fields

n7 :: a b
 

Records +

data R

This is the documentation for the R record, which has four fields, + p, q, r, and s. +

Constructors

C1

This is the C1 record constructor, with the following fields: +

Fields

p :: Int

This comment applies to the p field +

q :: forall a. a -> a

This comment applies to the q field +

r :: Int

This comment applies to both r and s +

s :: Int

This comment applies to both r and s +

C2

This is the C2 record constructor, also with some fields: +

Fields

t :: T1 -> T2 Int Int -> T3 Bool Bool -> T4 Float Float -> T5 () ()
 
u :: Int
 
v :: Int
 

data R1

Testing different record commenting styles +

Constructors

C3

This is the C3 record constructor +

Fields

s1 :: Int

The s1 record selector +

s2 :: Int

The s2 record selector +

s3 :: Int

The s3 record selector +

test that we can export record selectors on their own: +

Class declarations +

class D a => C a where

This comment applies to the previous declaration (the C class) +

Methods

a :: IO a

this is a description of the a method +

b :: [a]

this is a description of the b method +

class D a where

This is a class declaration with no separate docs for the methods +

Methods

d :: T a b

e :: (a, a)

Instances

class E a

This is a class declaration with no methods (or no methods exported) +

class F a where

Methods

ff :: a

Test that we can export a class method on its own: +

Function types +

f :: C a => a -> Int

In a comment string we can refer to identifiers in scope with +single quotes like this: T, and we can refer to modules by +using double quotes: Foo. We can add emphasis like this. +

  • This is a bulleted list +
  • This is the next item (different kind of bullet) +
  1. This is an ordered list +
  2. This is the next item (different kind of bullet) +
cat
a small, furry, domesticated mammal +
pineapple
a fruit grown in the tropics +
+     This is a block of code, which can include other markup: R
+     formatting
+               is
+                 significant
+
 this is another block of code
+

We can also include URLs in documentation: http://www.haskell.org/. +

g :: Int -> IO CInt

we can export foreign declarations too +

Auxiliary stuff +

This is some documentation that is attached to a name ($aux1) + rather than a source declaration. The documentation may be + referred to in the export list using its name. +

 code block in named doc

This is some documentation that is attached to a name ($aux2) +

 code block on its own in named doc
 code block on its own in named doc (after newline)

a nested, named doc comment +

with a paragraph, +

 and a code block
test
+test1
+
 test2
+  test3
+
+test1
+test2
+
test3
+test4
+
+test1
+test2
+
test3
+test4
+
test3
+test4
+
+test1
+test2
+

aux11: +

test3
+test4
+
+test1
+test2
+
 foo
+
 bar
+

This is some inline documentation in the export list +

 a code block using bird-tracks
+ each line must begin with > (which isn't significant unless it
+ is at the beginning of the line).
+

A hidden module +

hidden :: Int -> Int

A visible module +

module Visible

nested-style doc comments +

Existential / Universal types +

data Ex a

A data-type using existential/universal types +

Constructors

forall b . C b => Ex1 b 
forall b . Ex2 b 
forall b . C a => Ex3 b 
Ex4 (forall a. a -> a) 

Type signatures with argument docs +

k

Arguments

:: T () ()

This argument has type T +

-> T2 Int Int

This argument has type 'T2 Int Int' +

-> (T3 Bool Bool -> T4 Float Float)

This argument has type T3 Bool Bool -> T4 Float Float +

-> T5 () ()

This argument has a very long description that should + hopefully cause some wrapping to happen when it is finally + rendered by Haddock in the generated HTML page. +

-> IO ()

This is the result type +

This is a function with documentation for each argument +

l

Arguments

:: (Int, Int, Float)

takes a triple +

-> Int

returns an Int +

m

Arguments

:: R 
-> N1 ()

one of the arguments +

-> IO Int

and the return value +

This function has some arg docs +

o

Arguments

:: Float

The input float +

-> IO Float

The output float +

A foreign import with argument docs +

A section +

A subsection +

 a literal line
+

$ a non literal line $ +

f' :: Int

a function with a prime can be referred to as f' + but f' doesn't get link'd 'f\'' +

withType :: Int

Comment on a definition with type signature +

withoutType :: a

Comment on a definition without type signature +

-- cgit v1.2.3 From e2c75d48f4dfd4140e977d097a95aa06b614fa24 Mon Sep 17 00:00:00 2001 From: Simon Hengel Date: Fri, 7 Dec 2012 19:52:58 +0100 Subject: Bump version --- doc/haddock.xml | 2 +- haddock.cabal | 2 +- haddock.spec | 2 +- html-test/ref/A.html | 2 +- html-test/ref/AdvanceTypes.html | 2 +- html-test/ref/B.html | 2 +- html-test/ref/Bug1.html | 2 +- html-test/ref/Bug2.html | 2 +- html-test/ref/Bug3.html | 2 +- html-test/ref/Bug4.html | 2 +- html-test/ref/Bug6.html | 2 +- html-test/ref/Bug7.html | 2 +- html-test/ref/Bug8.html | 2 +- html-test/ref/BugDeprecated.html | 2 +- html-test/ref/BugExportHeadings.html | 2 +- html-test/ref/Bugs.html | 2 +- html-test/ref/CrossPackageDocs.html | 2 +- html-test/ref/DeprecatedClass.html | 2 +- html-test/ref/DeprecatedData.html | 2 +- html-test/ref/DeprecatedFunction.html | 2 +- html-test/ref/DeprecatedFunction2.html | 2 +- html-test/ref/DeprecatedFunction3.html | 2 +- html-test/ref/DeprecatedModule.html | 2 +- html-test/ref/DeprecatedModule2.html | 2 +- html-test/ref/DeprecatedNewtype.html | 2 +- html-test/ref/DeprecatedReExport.html | 2 +- html-test/ref/DeprecatedRecord.html | 2 +- html-test/ref/DeprecatedTypeFamily.html | 2 +- html-test/ref/DeprecatedTypeSynonym.html | 2 +- html-test/ref/DeprecationMessageParseError.html | 2 +- html-test/ref/Examples.html | 2 +- html-test/ref/FunArgs.html | 2 +- html-test/ref/GADTRecords.html | 2 +- html-test/ref/Hash.html | 2 +- html-test/ref/HiddenInstances.html | 2 +- html-test/ref/HiddenInstancesB.html | 2 +- html-test/ref/Hyperlinks.html | 2 +- html-test/ref/IgnoreExports.html | 2 +- html-test/ref/ModuleWithWarning.html | 2 +- html-test/ref/NamedDoc.html | 2 +- html-test/ref/NoLayout.html | 2 +- html-test/ref/NonGreedy.html | 2 +- html-test/ref/Properties.html | 2 +- html-test/ref/PruneWithWarning.html | 2 +- html-test/ref/QuasiExpr.html | 2 +- html-test/ref/QuasiQuote.html | 2 +- html-test/ref/SpuriousSuperclassConstraints.html | 2 +- html-test/ref/TH.html | 2 +- html-test/ref/TH2.html | 2 +- html-test/ref/Test.html | 2 +- html-test/ref/Ticket112.html | 2 +- html-test/ref/Ticket61.html | 2 +- html-test/ref/Ticket75.html | 2 +- html-test/ref/TypeFamilies.html | 2 +- html-test/ref/TypeOperators.html | 2 +- html-test/ref/Unicode.html | 2 +- html-test/ref/Visible.html | 2 +- 57 files changed, 57 insertions(+), 57 deletions(-) (limited to 'html-test/ref/Test.html') diff --git a/doc/haddock.xml b/doc/haddock.xml index 4e4447dc..139b2830 100644 --- a/doc/haddock.xml +++ b/doc/haddock.xml @@ -21,7 +21,7 @@ Simon Marlow, David Waern - This document describes Haddock version 2.13.1, a Haskell + This document describes Haddock version 2.13.2, a Haskell documentation tool. diff --git a/haddock.cabal b/haddock.cabal index 99bf5e4a..06a85364 100644 --- a/haddock.cabal +++ b/haddock.cabal @@ -1,5 +1,5 @@ name: haddock -version: 2.13.1 +version: 2.13.2 synopsis: A documentation-generation tool for Haskell libraries description: Haddock is a documentation-generation tool for Haskell libraries diff --git a/haddock.spec b/haddock.spec index 401f1e8a..9d6ea8f6 100644 --- a/haddock.spec +++ b/haddock.spec @@ -17,7 +17,7 @@ # version label of your release tarball. %define name haddock -%define version 2.13.1 +%define version 2.13.2 %define release 1 Name: %{name} diff --git a/html-test/ref/A.html b/html-test/ref/A.html index 328fec02..9a60933e 100644 --- a/html-test/ref/A.html +++ b/html-test/ref/A.html @@ -176,7 +176,7 @@ window.onload = function () {pageLoad();setSynopsis("mini_A.html");}; >

Produced by Haddock version 2.13.1

version 2.13.2

Produced by Haddock version 2.13.1

version 2.13.2

Produced by Haddock version 2.13.1

version 2.13.2

Produced by Haddock version 2.13.1

version 2.13.2

Produced by Haddock version 2.13.1

version 2.13.2

Produced by Haddock version 2.13.1

version 2.13.2

Produced by Haddock version 2.13.1

version 2.13.2

Produced by Haddock version 2.13.1

version 2.13.2

Produced by Haddock version 2.13.1

version 2.13.2

Produced by Haddock version 2.13.1

version 2.13.2

Produced by Haddock version 2.13.1

version 2.13.2

Produced by Haddock version 2.13.1

version 2.13.2

Produced by Haddock version 2.13.1

version 2.13.2

Produced by Haddock version 2.13.1

version 2.13.2

Produced by Haddock version 2.13.1

version 2.13.2

Produced by Haddock version 2.13.1

version 2.13.2

Produced by Haddock version 2.13.1

version 2.13.2

Produced by Haddock version 2.13.1

version 2.13.2

Produced by Haddock version 2.13.1

version 2.13.2

Produced by Haddock version 2.13.1

version 2.13.2

Produced by Haddock version 2.13.1

version 2.13.2

Produced by Haddock version 2.13.1

version 2.13.2

Produced by Haddock version 2.13.1

version 2.13.2

Produced by Haddock version 2.13.1

version 2.13.2

Produced by Haddock version 2.13.1

version 2.13.2

Produced by Haddock version 2.13.1

version 2.13.2

Produced by Haddock version 2.13.1

version 2.13.2

Produced by Haddock version 2.13.1

version 2.13.2

Produced by Haddock version 2.13.1

version 2.13.2

Produced by Haddock version 2.13.1

version 2.13.2

Produced by Haddock version 2.13.1

version 2.13.2

Produced by Haddock version 2.13.1

version 2.13.2

Produced by Haddock version 2.13.1

version 2.13.2

Produced by Haddock version 2.13.1

version 2.13.2

Produced by Haddock version 2.13.1

version 2.13.2

Produced by Haddock version 2.13.1

version 2.13.2

Produced by Haddock version 2.13.1

version 2.13.2

Produced by Haddock version 2.13.1

version 2.13.2

Produced by Haddock version 2.13.1

version 2.13.2

Produced by Haddock version 2.13.1

version 2.13.2

Produced by Haddock version 2.13.1

version 2.13.2

Produced by Haddock version 2.13.1

version 2.13.2

Produced by Haddock version 2.13.1

version 2.13.2

Produced by Haddock version 2.13.1

version 2.13.2

Produced by Haddock version 2.13.1

version 2.13.2

Produced by Haddock version 2.13.1

version 2.13.2

Produced by Haddock version 2.13.1

version 2.13.2

Produced by Haddock version 2.13.1

version 2.13.2

Produced by Haddock version 2.13.1

version 2.13.2

Produced by Haddock version 2.13.1

version 2.13.2

Produced by Haddock version 2.13.1

version 2.13.2

Produced by Haddock version 2.13.1

version 2.13.2

Produced by Haddock version 2.13.1

version 2.13.2

Produced by Haddock version 2.13.1

version 2.13.2