In general, it's harmless.  I set an arbitrary limit on how many different 
specializations SpecConstr would make, and you are hitting it.  (Only happens 
with a compiler built with -DDEBUG.)

Still, I've seen this msg in building the libraries (something to do with HTML 
think) and it looked suspicious -- why so many specializations? -- so 
investigating that is on my to-do list.

Meanwhile, if you have an easy repro case, I'd be interested.

Simon

| -----Original Message-----
| From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
| Behalf Of Mitchell, Neil
| Sent: 12 September 2008 09:00
| To: [email protected]
| Subject: too many specialisations for one function
|
| 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
| =============================================================================
| =
|
| _______________________________________________
| Cvs-ghc mailing list
| [email protected]
| http://www.haskell.org/mailman/listinfo/cvs-ghc

_______________________________________________
Cvs-ghc mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/cvs-ghc

Reply via email to