Package: haddock
Version: 0.7-1
Severity: normal

  Trying to generate documentation from some files containing GHC
extensions generates a parse error.  The culprit seems to be the
ability to derive from arbitrary classes -- haddock swallows this
just fine for unary classes but panics if the class being derived
has more arguments.  I've attached a trivial example.

  Daniel

-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental'), (1, 'unstable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.15-1-686
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)

Versions of packages haddock depends on:
ii  libc6                         2.3.6-2    GNU C Library: Shared libraries an
ii  libgmp3c2                     4.1.4-11   Multiprecision arithmetic library

haddock recommends no packages.

-- no debconf information
module Foo where

class Foo z f | f -> z where
    foo :: f -> f -> z

newtype (Foo z f) => Bar z f = Bar f
    deriving(Foo z)

Attachment: signature.asc
Description: Digital signature

Reply via email to