Skip to content

Unncessary import

I keep getting this in my builds

compiler/GHC/Tc/Errors/Hole/FitTypes.hs-boot:8:1: error: [-Werror]
    Unnecessary {-# SOURCE #-} in the import of module ‘GHC.Types.Var’
  |
8 | import {-# SOURCE #-} GHC.Types.Var (Id)
  | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

And indeed, the import doesn't need to be a SOURCE import. You can see my fix as one of the commits in !5699 (closed) which is where I first encountered it.

But it now keeps breaking my builds. @mpickering or @bgamari (or anyone else) could you take 4 mins to make a patch and give it to Marge? We should get this out of our hair. Thanks!

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information