Skip to content

HEAD gives warnings about code that it generates itself

The HEAD is now giving warnings about code that it generates itself, e.g.

module Q where

data Foo = Bar Int

gives

$ ghc -fforce-recomp -Wall -fgenerics -c q.hs

q.hs:4:5:
    Warning: Definition but no type signature for `Q.$gtoFoo'
             Inferred type: Q.$gtoFoo :: Int -> Foo

q.hs:4:5:
    Warning: Definition but no type signature for `Q.$gfromFoo'
             Inferred type: Q.$gfromFoo :: Foo -> Int

I assume that this is since the change which added the inferred type to the warning, but I haven't confirmed that.

Trac metadata
Trac field Value
Version 6.7
Type Bug
TypeOfFailure OtherFailure
Priority normal
Resolution Unresolved
Component Compiler (Type checker)
Test case
Differential revisions
BlockedBy
Related
Blocking
CC
Operating system Unknown
Architecture Unknown
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information