too many specialisations for one function

Mitchell, Neil neil.mitchell.2 at credit-suisse.com
Fri Sep 12 04:00:28 EDT 2008


Hi

Using GHC Head from yesterday, I am encountering loads of warnings about
too many specialisations for one function. Some of these warning
messages take up at least 10 screens. To give just one example, when
compiling haddock, the Hoogle backend gives:

C:\ghc\ghc-6.9.20080905\bin\ar.exe: creating
dist\build\libHShaddock-2.2.2.a
[21 of 24] Compiling Haddock.Backends.Hoogle (
src\Haddock\Backends\Hoogle.hs,
dist\build\haddock\haddock-tmp\Haddock\Backends\Hoogle.o )
SpecConstr: too many specialisations for one function (see
-fspec-constr-count):
    Function: main:Haddock.Backends.Hoogle.dropComment{v r4Gf} [lid]
    Specialisations: [([],
                       [ghc-prim:GHC.Types.[]{(w) v 6n} [gid]
                          @ ghc-prim:GHC.Types.Char{(w) tc 3o}]),
                      ([sc_s73l{v} [lid], sc_s73m{v} [lid]],
                       [ghc-prim:GHC.Types.:{(w) v 65} [gid]
                          @ ghc-prim:GHC.Types.Char{(w) tc 3o}
                          (ghc-prim:GHC.Types.C#{(w) v 63} [gid]
sc_s73m{v} [lid])
                          sc_s73l{v} [lid]]),
                      ([],
                       [ghc-prim:GHC.Types.:{(w) v 65} [gid]
                          @ ghc-prim:GHC.Types.Char{(w) tc 3o}
                          (ghc-prim:GHC.Types.C#{(w) v 63} [gid] '-')
                          (ghc-prim:GHC.Types.[]{(w) v 6n} [gid]
                             @ ghc-prim:GHC.Types.Char{(w) tc 3o})]),
                      ([sc_s73n{v} [lid], sc_s73o{v} [lid]],
                       [ghc-prim:GHC.Types.:{(w) v 65} [gid]
                          @ ghc-prim:GHC.Types.Char{(w) tc 3o}
                          (ghc-prim:GHC.Types.C#{(w) v 63} [gid] '-')
                          (ghc-prim:GHC.Types.:{(w) v 65} [gid]
                             @ ghc-prim:GHC.Types.Char{(w) tc 3o}
                             (ghc-prim:GHC.Types.C#{(w) v 63} [gid]
sc_s73o{v} [lid])
                             sc_s73n{v} [lid])]),
                      ([],
                       [ghc-prim:GHC.Types.:{(w) v 65} [gid]
                          @ ghc-prim:GHC.Types.Char{(w) tc 3o}
                          (ghc-prim:GHC.Types.C#{(w) v 63} [gid] '-')
                          (ghc-prim:GHC.Types.:{(w) v 65} [gid]
                             @ ghc-prim:GHC.Types.Char{(w) tc 3o}
                             (ghc-prim:GHC.Types.C#{(w) v 63} [gid] '-')
                             (ghc-prim:GHC.Types.[]{(w) v 6n} [gid]
                                @ ghc-prim:GHC.Types.Char{(w) tc
3o}))]),
                      ([sc_s73p{v} [lid], sc_s73q{v} [lid]],
                       [ghc-prim:GHC.Types.:{(w) v 65} [gid]
                          @ ghc-prim:GHC.Types.Char{(w) tc 3o}
                          (ghc-prim:GHC.Types.C#{(w) v 63} [gid] '-')
                          (ghc-prim:GHC.Types.:{(w) v 65} [gid]
                             @ ghc-prim:GHC.Types.Char{(w) tc 3o}
                             (ghc-prim:GHC.Types.C#{(w) v 63} [gid] '-')
                             (ghc-prim:GHC.Types.:{(w) v 65} [gid]
                                @ ghc-prim:GHC.Types.Char{(w) tc 3o}
                                (ghc-prim:GHC.Types.C#{(w) v 63} [gid]
sc_s73q{v} [lid])
                                sc_s73p{v} [lid]))])]
Linking dist\build\haddock\haddock.exe ...

These messages obscure any real warnings and are quite verbose. Are they
debug markings that accidentally got committed? In general, given things
like this, is it work reporting them - or just ignoring them until a
release candidate?

Thanks

Neil

==============================================================================
Please access the attached hyperlink for an important electronic communications disclaimer: 

http://www.credit-suisse.com/legal/en/disclaimer_email_ib.html
==============================================================================



More information about the Cvs-ghc mailing list