GHC 7.8.1: Many haddock-related complaints from 'ghc-pkg check'

Herbert Valerio Riedel hvr at
Thu Apr 10 09:59:34 UTC 2014

On 2014-04-09 at 19:53:47 +0200, Conal Elliott wrote:
> From a bit of experimentation, it appears that the problematic packages do
> indeed have Haddock failures. For instance,
>     bash-3.2$ cd random-
>     bash-3.2$ cabal configure
>     Resolving dependencies...
>     Configuring random-
>     bash-3.2$ cabal haddock
>     Running Haddock for random-
>     Preprocessing library random-
>     Haddock coverage:
>     System/Random.hs:2:2: parse error on input '#'

Fyi, this one specifically looks as if it could be related to

I.e. caused by `clang -E` not being "semi-idempotent" (meaning the
result from the second CPP pass can't be parsed anymore by GHC)

More information about the Glasgow-haskell-users mailing list