From 48f45676f7c6c79b249b51dde9a6791393860676 Mon Sep 17 00:00:00 2001 From: Niklas Haas Date: Sat, 15 Mar 2014 15:15:44 +0100 Subject: Hide minimal definition for only-method classes Previously this was not covered by the All xs check since here it is not actually an All, rather a single Var n. This also adds the previously missing html-test/src/Minimal.hs. --- html-test/ref/DeprecatedClass.html | 16 --------------- html-test/ref/Hash.html | 8 -------- html-test/ref/Test.html | 8 -------- html-test/ref/Ticket61.html | 8 -------- html-test/src/Minimal.hs | 40 ++++++++++++++++++++++++++++++++++++++ src/Haddock/Backends/Xhtml/Decl.hs | 7 ++++++- 6 files changed, 46 insertions(+), 41 deletions(-) create mode 100644 html-test/src/Minimal.hs diff --git a/html-test/ref/DeprecatedClass.html b/html-test/ref/DeprecatedClass.html index 76c0c173..c8799bf2 100644 --- a/html-test/ref/DeprecatedClass.html +++ b/html-test/ref/DeprecatedClass.html @@ -95,14 +95,6 @@ window.onload = function () {pageLoad();setSynopsis("mini_DeprecatedClass.html") >

some class

Minimal complete definition

foo

Methods

Deprecated: SomeOtherClass

Minimal complete definition

bar

Methods

A class of types which can be hashed.

Minimal complete definition

hash

Methods

a where

Minimal complete definition

ff

Methods

a where

Minimal complete definition

f

Methods

noHtml + -- Minimal complete definition = the only shown method + Var (L _ n) : _ | [getName n] == + [getName n' | L _ (TypeSig ns _) <- lsigs, L _ n' <- ns] + -> noHtml + -- Minimal complete definition = nothing And [] : _ -> subMinimal $ toHtml "Nothing" -- cgit v1.2.3