Ticket #167 (closed defect: invalid)

Opened 4 years ago

Last modified 2 years ago

Errors in --hoogle output

Reported by: NeilMitchell Owned by:
Priority: major Milestone:
Version: 2.8.1 Keywords:
Cc:

Description

Given the input file below, when running haddock --hoogle Haddock.hs I get the output below. There are 3 obvious bugs, all of which I think were introduced when rewriting various bits to move to using the GHC library (there was a bug #3, which got fixed in Haddock 2.8).

I'm also tracking this bug at: http://code.google.com/p/ndmitchell/issues/detail?id=390

{-# LANGUAGE TypeOperators, IncoherentInstances #-}

module Haddock where


-- | BUG 1: bug1 will not have any documentation
class  BUG1 a  where
    -- | This documentation is dropped
    bug1 :: Integer -> a


data a :**: b = Bug2 -- ^ BUG 2: The :**: is prefix without brackets


-- | BUG 4: The instance below has [incoherent] on it
bug4 :: (); bug4 = ()
instance Num ()
-- Hoogle documentation, generated by Haddock
-- See Hoogle, http://www.haskell.org/hoogle/

@package main

module Haddock

-- | BUG 1: bug1 will not have any documentation
class BUG1 a
bug1 :: (BUG1 a) => Integer -> a
data (:**:) a b

-- | BUG 2: The :**: is prefix without brackets
Bug2 :: :**: a b

-- | BUG 4: The instance below has [incoherent] on it
bug4 :: ()
instance [incoherent] Num ()

Change History

Changed 4 years ago by NeilMitchell

  • status changed from new to closed
  • resolution set to invalid

See bug #168 - the submit button spins for me forever (but obviously submits anyway).

Changed 2 years ago by anonymous

  • milestone 2.7.0 deleted

Milestone 2.7.0 deleted

Note: See TracTickets for help on using tickets.