... | ... | @@ -91,7 +91,7 @@ There may be code in the wild that previously depended on the assumption that re |
|
|
### Changes to unused import warnings
|
|
|
|
|
|
|
|
|
GHC 8.8 tightened up the implementation of its unused import warning algorithm to more closely match the specification in [wiki:Commentary/Compiler/UnusedImports](commentary/compiler/unused-imports), as GHC 8.0 inadvertently introduced a [ regression](https://ghc.haskell.org/trac/ghc/ticket/13064) that caused it to stray from this specification. As a result, some programs which compile without warnings on GHC 8.0 through 8.6 will now produce warnings on GHC 8.8. A good example that illustrates this is this one:
|
|
|
GHC 8.8 tightened up the implementation of its unused import warning algorithm to more closely match the specification in [wiki:Commentary/Compiler/UnusedImports](commentary/compiler/unused-imports), as GHC 8.0 inadvertently introduced a [ regression](https://gitlab.haskell.org/ghc/ghc/issues/13064) that caused it to stray from this specification. As a result, some programs which compile without warnings on GHC 8.0 through 8.6 will now produce warnings on GHC 8.8. A good example that illustrates this is this one:
|
|
|
|
|
|
```
|
|
|
{-# OPTIONS_GHC -Wunused-imports #-}moduleT13064whereimportControl.ApplicativeimportPrelude(IO,pure)-- Import of 'pure' is redundantfoo::IO()foo=()<$ pure ()
|
... | ... | |