Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Building the containers tests on GHC 8.2.1 is especially noisy due to -Wmissing-home-modules #434

Closed
RyanGlScott opened this issue Aug 24, 2017 · 1 comment

Comments

@RyanGlScott
Copy link
Member

On a recent build of the containers test suites using GHC 8.2.1, I encountered a veritable wall of warnings that were entirely due to -Wmissing-home-modules:

$ cabal test
Preprocessing test suite 'seq-properties' for containers-0.5.10.2..
Building test suite 'seq-properties' for containers-0.5.10.2..

<no location info>: warning: [-Wmissing-home-modules]
    These modules are needed for compilation but not listed in your .cabal file's other-modules: Data.Sequence
                                                                                                 Data.Sequence.Internal
                                                                                                 Utils.Containers.Internal.StrictPair

<no location info>: warning: [-Wmissing-home-modules]
    These modules are needed for compilation but not listed in your .cabal file's other-modules: Data.Sequence
                                                                                                 Data.Sequence.Internal
                                                                                                 Utils.Containers.Internal.StrictPair
Preprocessing test suite 'intmap-strict-properties' for containers-0.5.10.2..
Building test suite 'intmap-strict-properties' for containers-0.5.10.2..

<no location info>: warning: [-Wmissing-home-modules]
    These modules are needed for compilation but not listed in your .cabal file's other-modules: Data.IntMap.Internal
                                                                                                 Data.IntMap.Internal.Debug
                                                                                                 Data.IntMap.Internal.DeprecatedDebug
                                                                                                 Data.IntMap.Strict
                                                                                                 Data.IntSet
                                                                                                 Data.IntSet.Internal
                                                                                                 Utils.Containers.Internal.BitUtil
                                                                                                 Utils.Containers.Internal.StrictFold
                                                                                                 Utils.Containers.Internal.StrictPair

<no location info>: warning: [-Wmissing-home-modules]
    These modules are needed for compilation but not listed in your .cabal file's other-modules: Data.IntMap.Internal
                                                                                                 Data.IntMap.Internal.Debug
                                                                                                 Data.IntMap.Internal.DeprecatedDebug
                                                                                                 Data.IntMap.Strict
                                                                                                 Data.IntSet
                                                                                                 Data.IntSet.Internal
                                                                                                 Utils.Containers.Internal.BitUtil
                                                                                                 Utils.Containers.Internal.StrictFold
                                                                                                 Utils.Containers.Internal.StrictPair
Preprocessing test suite 'map-strictness-properties' for containers-0.5.10.2..
Building test suite 'map-strictness-properties' for containers-0.5.10.2..

<no location info>: warning: [-Wmissing-home-modules]
    These modules are needed for compilation but not listed in your .cabal file's other-modules: Data.Map.Internal
                                                                                                 Data.Map.Internal.Debug
                                                                                                 Data.Map.Internal.DeprecatedShowTree
                                                                                                 Data.Map.Strict
                                                                                                 Data.Map.Strict.Internal
                                                                                                 Data.Set.Internal
                                                                                                 Utils.Containers.Internal.BitQueue
                                                                                                 Utils.Containers.Internal.BitUtil
                                                                                                 Utils.Containers.Internal.PtrEquality
                                                                                                 Utils.Containers.Internal.StrictFold
                                                                                                 Utils.Containers.Internal.StrictMaybe
                                                                                                 Utils.Containers.Internal.StrictPair

<no location info>: warning: [-Wmissing-home-modules]
    These modules are needed for compilation but not listed in your .cabal file's other-modules: Data.Map.Internal
                                                                                                 Data.Map.Internal.Debug
                                                                                                 Data.Map.Internal.DeprecatedShowTree
                                                                                                 Data.Map.Strict
                                                                                                 Data.Map.Strict.Internal
                                                                                                 Data.Set.Internal
                                                                                                 Utils.Containers.Internal.BitQueue
                                                                                                 Utils.Containers.Internal.BitUtil
                                                                                                 Utils.Containers.Internal.PtrEquality
                                                                                                 Utils.Containers.Internal.StrictFold
                                                                                                 Utils.Containers.Internal.StrictMaybe
                                                                                                 Utils.Containers.Internal.StrictPair
Preprocessing test suite 'bitqueue-properties' for containers-0.5.10.2..
Building test suite 'bitqueue-properties' for containers-0.5.10.2..

<no location info>: warning: [-Wmissing-home-modules]
    These modules are needed for compilation but not listed in your .cabal file's other-modules: Utils.Containers.Internal.BitQueue
                                                                                                 Utils.Containers.Internal.BitUtil

<no location info>: warning: [-Wmissing-home-modules]
    These modules are needed for compilation but not listed in your .cabal file's other-modules: Utils.Containers.Internal.BitQueue
                                                                                                 Utils.Containers.Internal.BitUtil
Preprocessing test suite 'map-lazy-properties' for containers-0.5.10.2..
Building test suite 'map-lazy-properties' for containers-0.5.10.2..

<no location info>: warning: [-Wmissing-home-modules]
    These modules are needed for compilation but not listed in your .cabal file's other-modules: Data.Map.Internal
                                                                                                 Data.Map.Internal.Debug
                                                                                                 Data.Map.Internal.DeprecatedShowTree
                                                                                                 Data.Map.Lazy
                                                                                                 Data.Map.Merge.Lazy
                                                                                                 Data.Set
                                                                                                 Data.Set.Internal
                                                                                                 Utils.Containers.Internal.BitQueue
                                                                                                 Utils.Containers.Internal.BitUtil
                                                                                                 Utils.Containers.Internal.PtrEquality
                                                                                                 Utils.Containers.Internal.StrictFold
                                                                                                 Utils.Containers.Internal.StrictMaybe
                                                                                                 Utils.Containers.Internal.StrictPair

<no location info>: warning: [-Wmissing-home-modules]
    These modules are needed for compilation but not listed in your .cabal file's other-modules: Data.Map.Internal
                                                                                                 Data.Map.Internal.Debug
                                                                                                 Data.Map.Internal.DeprecatedShowTree
                                                                                                 Data.Map.Lazy
                                                                                                 Data.Map.Merge.Lazy
                                                                                                 Data.Set
                                                                                                 Data.Set.Internal
                                                                                                 Utils.Containers.Internal.BitQueue
                                                                                                 Utils.Containers.Internal.BitUtil
                                                                                                 Utils.Containers.Internal.PtrEquality
                                                                                                 Utils.Containers.Internal.StrictFold
                                                                                                 Utils.Containers.Internal.StrictMaybe
                                                                                                 Utils.Containers.Internal.StrictPair
Preprocessing test suite 'intmap-strictness-properties' for containers-0.5.10.2..
Building test suite 'intmap-strictness-properties' for containers-0.5.10.2..

<no location info>: warning: [-Wmissing-home-modules]
    These modules are needed for compilation but not listed in your .cabal file's other-modules: Data.IntMap.Internal
                                                                                                 Data.IntMap.Internal.DeprecatedDebug
                                                                                                 Data.IntMap.Strict
                                                                                                 Data.IntSet.Internal
                                                                                                 Utils.Containers.Internal.BitUtil
                                                                                                 Utils.Containers.Internal.StrictFold
                                                                                                 Utils.Containers.Internal.StrictPair

<no location info>: warning: [-Wmissing-home-modules]
    These modules are needed for compilation but not listed in your .cabal file's other-modules: Data.IntMap.Internal
                                                                                                 Data.IntMap.Internal.DeprecatedDebug
                                                                                                 Data.IntMap.Strict
                                                                                                 Data.IntSet.Internal
                                                                                                 Utils.Containers.Internal.BitUtil
                                                                                                 Utils.Containers.Internal.StrictFold
                                                                                                 Utils.Containers.Internal.StrictPair
Preprocessing test suite 'intset-properties' for containers-0.5.10.2..
Building test suite 'intset-properties' for containers-0.5.10.2..

<no location info>: warning: [-Wmissing-home-modules]
    These modules are needed for compilation but not listed in your .cabal file's other-modules: Data.IntSet
                                                                                                 Data.IntSet.Internal
                                                                                                 Data.Set
                                                                                                 Data.Set.Internal
                                                                                                 Utils.Containers.Internal.BitUtil
                                                                                                 Utils.Containers.Internal.PtrEquality
                                                                                                 Utils.Containers.Internal.StrictFold
                                                                                                 Utils.Containers.Internal.StrictPair

<no location info>: warning: [-Wmissing-home-modules]
    These modules are needed for compilation but not listed in your .cabal file's other-modules: Data.IntSet
                                                                                                 Data.IntSet.Internal
                                                                                                 Data.Set
                                                                                                 Data.Set.Internal
                                                                                                 Utils.Containers.Internal.BitUtil
                                                                                                 Utils.Containers.Internal.PtrEquality
                                                                                                 Utils.Containers.Internal.StrictFold
                                                                                                 Utils.Containers.Internal.StrictPair
Preprocessing test suite 'intmap-lazy-properties' for containers-0.5.10.2..
Building test suite 'intmap-lazy-properties' for containers-0.5.10.2..

<no location info>: warning: [-Wmissing-home-modules]
    These modules are needed for compilation but not listed in your .cabal file's other-modules: Data.IntMap.Internal
                                                                                                 Data.IntMap.Internal.Debug
                                                                                                 Data.IntMap.Internal.DeprecatedDebug
                                                                                                 Data.IntMap.Lazy
                                                                                                 Data.IntSet
                                                                                                 Data.IntSet.Internal
                                                                                                 Utils.Containers.Internal.BitUtil
                                                                                                 Utils.Containers.Internal.StrictFold
                                                                                                 Utils.Containers.Internal.StrictPair

<no location info>: warning: [-Wmissing-home-modules]
    These modules are needed for compilation but not listed in your .cabal file's other-modules: Data.IntMap.Internal
                                                                                                 Data.IntMap.Internal.Debug
                                                                                                 Data.IntMap.Internal.DeprecatedDebug
                                                                                                 Data.IntMap.Lazy
                                                                                                 Data.IntSet
                                                                                                 Data.IntSet.Internal
                                                                                                 Utils.Containers.Internal.BitUtil
                                                                                                 Utils.Containers.Internal.StrictFold
                                                                                                 Utils.Containers.Internal.StrictPair
Preprocessing test suite 'map-strict-properties' for containers-0.5.10.2..
Building test suite 'map-strict-properties' for containers-0.5.10.2..

<no location info>: warning: [-Wmissing-home-modules]
    These modules are needed for compilation but not listed in your .cabal file's other-modules: Data.Map.Internal
                                                                                                 Data.Map.Internal.Debug
                                                                                                 Data.Map.Internal.DeprecatedShowTree
                                                                                                 Data.Map.Merge.Strict
                                                                                                 Data.Map.Strict
                                                                                                 Data.Map.Strict.Internal
                                                                                                 Data.Set
                                                                                                 Data.Set.Internal
                                                                                                 Utils.Containers.Internal.BitQueue
                                                                                                 Utils.Containers.Internal.BitUtil
                                                                                                 Utils.Containers.Internal.PtrEquality
                                                                                                 Utils.Containers.Internal.StrictFold
                                                                                                 Utils.Containers.Internal.StrictMaybe
                                                                                                 Utils.Containers.Internal.StrictPair

<no location info>: warning: [-Wmissing-home-modules]
    These modules are needed for compilation but not listed in your .cabal file's other-modules: Data.Map.Internal
                                                                                                 Data.Map.Internal.Debug
                                                                                                 Data.Map.Internal.DeprecatedShowTree
                                                                                                 Data.Map.Merge.Strict
                                                                                                 Data.Map.Strict
                                                                                                 Data.Map.Strict.Internal
                                                                                                 Data.Set
                                                                                                 Data.Set.Internal
                                                                                                 Utils.Containers.Internal.BitQueue
                                                                                                 Utils.Containers.Internal.BitUtil
                                                                                                 Utils.Containers.Internal.PtrEquality
                                                                                                 Utils.Containers.Internal.StrictFold
                                                                                                 Utils.Containers.Internal.StrictMaybe
                                                                                                 Utils.Containers.Internal.StrictPair
Preprocessing test suite 'intset-strictness-properties' for containers-0.5.10.2..
Building test suite 'intset-strictness-properties' for containers-0.5.10.2..

<no location info>: warning: [-Wmissing-home-modules]
    These modules are needed for compilation but not listed in your .cabal file's other-modules: Data.IntSet
                                                                                                 Data.IntSet.Internal
                                                                                                 Utils.Containers.Internal.BitUtil
                                                                                                 Utils.Containers.Internal.StrictFold
                                                                                                 Utils.Containers.Internal.StrictPair

<no location info>: warning: [-Wmissing-home-modules]
    These modules are needed for compilation but not listed in your .cabal file's other-modules: Data.IntSet
                                                                                                 Data.IntSet.Internal
                                                                                                 Utils.Containers.Internal.BitUtil
                                                                                                 Utils.Containers.Internal.StrictFold
                                                                                                 Utils.Containers.Internal.StrictPair
Preprocessing test suite 'deprecated-properties' for containers-0.5.10.2..
Building test suite 'deprecated-properties' for containers-0.5.10.2..

<no location info>: warning: [-Wmissing-home-modules]
    These modules are needed for compilation but not listed in your .cabal file's other-modules: Data.IntMap
                                                                                                 Data.IntMap.Internal
                                                                                                 Data.IntMap.Internal.DeprecatedDebug
                                                                                                 Data.IntMap.Lazy
                                                                                                 Data.IntMap.Strict
                                                                                                 Data.IntSet.Internal
                                                                                                 Data.Map
                                                                                                 Data.Map.Internal
                                                                                                 Data.Map.Internal.Debug
                                                                                                 Data.Map.Internal.DeprecatedShowTree
                                                                                                 Data.Map.Lazy
                                                                                                 Data.Map.Strict
                                                                                                 Data.Map.Strict.Internal
                                                                                                 Data.Set.Internal
                                                                                                 Utils.Containers.Internal.BitQueue
                                                                                                 Utils.Containers.Internal.BitUtil
                                                                                                 Utils.Containers.Internal.PtrEquality
                                                                                                 Utils.Containers.Internal.StrictFold
                                                                                                 Utils.Containers.Internal.StrictMaybe
                                                                                                 Utils.Containers.Internal.StrictPair

<no location info>: warning: [-Wmissing-home-modules]
    These modules are needed for compilation but not listed in your .cabal file's other-modules: Data.IntMap
                                                                                                 Data.IntMap.Internal
                                                                                                 Data.IntMap.Internal.DeprecatedDebug
                                                                                                 Data.IntMap.Lazy
                                                                                                 Data.IntMap.Strict
                                                                                                 Data.IntSet.Internal
                                                                                                 Data.Map
                                                                                                 Data.Map.Internal
                                                                                                 Data.Map.Internal.Debug
                                                                                                 Data.Map.Internal.DeprecatedShowTree
                                                                                                 Data.Map.Lazy
                                                                                                 Data.Map.Strict
                                                                                                 Data.Map.Strict.Internal
                                                                                                 Data.Set.Internal
                                                                                                 Utils.Containers.Internal.BitQueue
                                                                                                 Utils.Containers.Internal.BitUtil
                                                                                                 Utils.Containers.Internal.PtrEquality
                                                                                                 Utils.Containers.Internal.StrictFold
                                                                                                 Utils.Containers.Internal.StrictMaybe
                                                                                                 Utils.Containers.Internal.StrictPair
Preprocessing test suite 'set-properties' for containers-0.5.10.2..
Building test suite 'set-properties' for containers-0.5.10.2..

<no location info>: warning: [-Wmissing-home-modules]
    These modules are needed for compilation but not listed in your .cabal file's other-modules: Data.IntSet
                                                                                                 Data.IntSet.Internal
                                                                                                 Data.Set
                                                                                                 Data.Set.Internal
                                                                                                 Utils.Containers.Internal.BitUtil
                                                                                                 Utils.Containers.Internal.PtrEquality
                                                                                                 Utils.Containers.Internal.StrictFold
                                                                                                 Utils.Containers.Internal.StrictPair

<no location info>: warning: [-Wmissing-home-modules]
    These modules are needed for compilation but not listed in your .cabal file's other-modules: Data.IntSet
                                                                                                 Data.IntSet.Internal
                                                                                                 Data.Set
                                                                                                 Data.Set.Internal
                                                                                                 Utils.Containers.Internal.BitUtil
                                                                                                 Utils.Containers.Internal.PtrEquality
                                                                                                 Utils.Containers.Internal.StrictFold
                                                                                                 Utils.Containers.Internal.StrictPair
Running 12 test suites...

This makes it quite difficult to see actual, substantive warnings that might appear. We should squash these warnings, either by adding the missing modules to other-modules in the right places or by suppressing them with -Wno-missing-home-modules.

@treeowl
Copy link
Contributor

treeowl commented Aug 24, 2017 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants