Your message dated Fri, 03 Jun 2011 00:09:43 +0200
with message-id <1307052583.26269.18.camel@kirk>
and subject line Works now
has caused the Debian Bug report #354426,
regarding haddock: Doesn't parse (all) ghc6 liberalized deriving clauses.
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
354426: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=354426
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
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)
signature.asc
Description: Digital signature
--- End Message ---
--- Begin Message ---
Version: 7.0.3-1
Hi Daniel,
if I add enough language pragmas to your example to actually compile:
{-# LANGUAGE MultiParamTypeClasses, FunctionalDependencies,
GeneralizedNewtypeDeriving #-}
then haddock generates HTML for this example just fine.
Thanks for the report,
Joachim
--
Joachim "nomeata" Breitner
Debian Developer
[email protected] | ICQ# 74513189 | GPG-Keyid: 4743206C
JID: [email protected] | http://people.debian.org/~nomeata
signature.asc
Description: This is a digitally signed message part
--- End Message ---