[GHC] #11955: Haddock documentation for pattern synonyms printed with explicit forall quantifiers
GHC
ghc-devs at haskell.org
Tue Apr 19 14:59:29 UTC 2016
#11955: Haddock documentation for pattern synonyms printed with explicit forall
quantifiers
-------------------------------------+-------------------------------------
Reporter: darchon | Owner:
Type: bug | Status: new
Priority: normal | Milestone: 8.0.1
Component: Compiler | Version: 8.0.1-rc3
Keywords: | Operating System: Unknown/Multiple
Architecture: | Type of failure: None/Unknown
Unknown/Multiple |
Test Case: | Blocked By:
Blocking: | Related Tickets:
Differential Rev(s): | Wiki Page:
-------------------------------------+-------------------------------------
Running haddock on:
{{{#!hs
{-# LANGUAGE PatternSynonyms #-}
module Foo ( A(..), pattern P ) where
data A a = A a
pattern P :: a -> A a
pattern P a <- A a
}}}
in GHC 7.10.3 gives haddock documentation for P in the form of:
{{{
pattern P :: a -> A a
}}}
while the haddock in GHC 8.0.1-rc3 gives haddock documentation for P in
the form of:
{{{
pattern P :: forall a. a -> A a
}}}
I think GHC/Haddock should not be adding the forall quantifier, and hence
think the behaviour in GHC 8.0.1-rc3 is wrong, and the behaviour of GHC
7.10.3 is preferred.
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/11955>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list