Associated pattern synonyms not included in haddock
Running haddock on:
{-# LANGUAGE PatternSynonyms #-}
module Foo ( A(P) ) where
data A a = A
pattern P = A
Just gives a data type A with no constructors, and no mention of the associated pattern synonym P.
Attached is a patch for haddock that prints associated patterns as GADT constructors
Trac metadata
| Trac field | Value |
|---|---|
| Version | 8.0.1-rc3 |
| Type | Bug |
| TypeOfFailure | OtherFailure |
| Priority | normal |
| Resolution | Unresolved |
| Component | Compiler |
| Test case | |
| Differential revisions | |
| BlockedBy | |
| Related | |
| Blocking | |
| CC | |
| Operating system | |
| Architecture |