haskell-suite / haskell-names

Haskell suite library for name resolution
52 stars 17 forks source link

Test suite build failure on GHC 7.10 #63

Closed snoyberg closed 9 years ago

snoyberg commented 9 years ago
Resolving dependencies...
Configuring haskell-names-0.5.2...
Building haskell-names-0.5.2...
Preprocessing library haskell-names-0.5.2...

src/Language/Haskell/Names/Annotated.hs:5:27: Warning:
    -XOverlappingInstances is deprecated: instead use per-instance pragmas OVERLAPPING/OVERLAPPABLE/OVERLAPS

src/Language/Haskell/Names/Open/Base.hs:6:104: Warning:
    -XOverlappingInstances is deprecated: instead use per-instance pragmas OVERLAPPING/OVERLAPPABLE/OVERLAPS
[ 1 of 19] Compiling Paths_haskell_names ( dist/build/autogen/Paths_haskell_names.hs, dist/build/Paths_haskell_names.o )
[ 2 of 19] Compiling Language.Haskell.Names.Open.Derived ( src/Language/Haskell/Names/Open/Derived.hs, dist/build/Language/Haskell/Names/Open/Derived.o )
[ 3 of 19] Compiling Language.Haskell.Names.Types ( src/Language/Haskell/Names/Types.hs, dist/build/Language/Haskell/Names/Types.o )

src/Language/Haskell/Names/Types.hs:11:1: Warning:
    The import of ‘Data.Traversable’ is redundant
      except perhaps to import instances from ‘Data.Traversable’
    To import instances alone, use: import Data.Traversable()
[ 4 of 19] Compiling Language.Haskell.Names.LocalSymbolTable ( src/Language/Haskell/Names/LocalSymbolTable.hs, dist/build/Language/Haskell/Names/LocalSymbolTable.o )

src/Language/Haskell/Names/LocalSymbolTable.hs:11:1: Warning:
    The import of ‘Data.Monoid’ is redundant
      except perhaps to import instances from ‘Data.Monoid’
    To import instances alone, use: import Data.Monoid()
[ 5 of 19] Compiling Language.Haskell.Names.SyntaxUtils ( src/Language/Haskell/Names/SyntaxUtils.hs, dist/build/Language/Haskell/Names/SyntaxUtils.o )
[ 6 of 19] Compiling Language.Haskell.Names.GlobalSymbolTable ( src/Language/Haskell/Names/GlobalSymbolTable.hs, dist/build/Language/Haskell/Names/GlobalSymbolTable.o )
[ 7 of 19] Compiling Language.Haskell.Names.RecordWildcards ( src/Language/Haskell/Names/RecordWildcards.hs, dist/build/Language/Haskell/Names/RecordWildcards.o )
[ 8 of 19] Compiling Language.Haskell.Names.GetBound ( src/Language/Haskell/Names/GetBound.hs, dist/build/Language/Haskell/Names/GetBound.o )
[ 9 of 19] Compiling Language.Haskell.Names.Open.Base ( src/Language/Haskell/Names/Open/Base.hs, dist/build/Language/Haskell/Names/Open/Base.o )

src/Language/Haskell/Names/Open/Base.hs:15:1: Warning:
    The import of ‘Control.Applicative’ is redundant
      except perhaps to import instances from ‘Control.Applicative’
    To import instances alone, use: import Control.Applicative()
[10 of 19] Compiling Language.Haskell.Names.Open.Instances ( src/Language/Haskell/Names/Open/Instances.hs, dist/build/Language/Haskell/Names/Open/Instances.o )

src/Language/Haskell/Names/Open/Instances.hs:20:1: Warning:
    The import of ‘Control.Applicative’ is redundant
      except perhaps to import instances from ‘Control.Applicative’
    To import instances alone, use: import Control.Applicative()
[11 of 19] Compiling Language.Haskell.Names.Open ( src/Language/Haskell/Names/Open.hs, dist/build/Language/Haskell/Names/Open.o )
[12 of 19] Compiling Language.Haskell.Names.Annotated ( src/Language/Haskell/Names/Annotated.hs, dist/build/Language/Haskell/Names/Annotated.o )

src/Language/Haskell/Names/Annotated.hs:26:1: Warning:
    The import of ‘Control.Applicative’ is redundant
      except perhaps to import instances from ‘Control.Applicative’
    To import instances alone, use: import Control.Applicative()
[13 of 19] Compiling Language.Haskell.Names.Interfaces ( src/Language/Haskell/Names/Interfaces.hs, dist/build/Language/Haskell/Names/Interfaces.o )

src/Language/Haskell/Names/Interfaces.hs:23:1: Warning:
    The import of ‘Data.Monoid’ is redundant
      except perhaps to import instances from ‘Data.Monoid’
    To import instances alone, use: import Data.Monoid()

src/Language/Haskell/Names/Interfaces.hs:28:1: Warning:
    The import of ‘Control.Applicative’ is redundant
      except perhaps to import instances from ‘Control.Applicative’
    To import instances alone, use: import Control.Applicative()
[14 of 19] Compiling Language.Haskell.Names.ScopeUtils ( src/Language/Haskell/Names/ScopeUtils.hs, dist/build/Language/Haskell/Names/ScopeUtils.o )

src/Language/Haskell/Names/ScopeUtils.hs:3:1: Warning:
    The import of ‘Control.Applicative’ is redundant
      except perhaps to import instances from ‘Control.Applicative’
    To import instances alone, use: import Control.Applicative()
[15 of 19] Compiling Language.Haskell.Names.Imports ( src/Language/Haskell/Names/Imports.hs, dist/build/Language/Haskell/Names/Imports.o )

src/Language/Haskell/Names/Imports.hs:14:1: Warning:
    The import of ‘Control.Applicative’ is redundant
      except perhaps to import instances from ‘Control.Applicative’
    To import instances alone, use: import Control.Applicative()
[16 of 19] Compiling Language.Haskell.Names.ModuleSymbols ( src/Language/Haskell/Names/ModuleSymbols.hs, dist/build/Language/Haskell/Names/ModuleSymbols.o )
[17 of 19] Compiling Language.Haskell.Names.Exports ( src/Language/Haskell/Names/Exports.hs, dist/build/Language/Haskell/Names/Exports.o )

src/Language/Haskell/Names/Exports.hs:6:1: Warning:
    The import of ‘Control.Applicative’ is redundant
      except perhaps to import instances from ‘Control.Applicative’
    To import instances alone, use: import Control.Applicative()
[18 of 19] Compiling Language.Haskell.Names.Recursive ( src/Language/Haskell/Names/Recursive.hs, dist/build/Language/Haskell/Names/Recursive.o )
[19 of 19] Compiling Language.Haskell.Names ( src/Language/Haskell/Names.hs, dist/build/Language/Haskell/Names.o )
In-place registering haskell-names-0.5.2...
Preprocessing test suite 'test' for haskell-names-0.5.2...

tests/run.hs:2:33: Warning:
    -XOverlappingInstances is deprecated: instead use per-instance pragmas OVERLAPPING/OVERLAPPABLE/OVERLAPS
[1 of 1] Compiling Main             ( tests/run.hs, dist/build/test/test-tmp/Main.o )

tests/run.hs:176:1:
    Illegal equational constraint ModuleInfo m ~ [Symbol]
    (Use GADTs or TypeFamilies to permit this)
    When checking that ‘getAnnotated’ has the inferred type
      getAnnotated :: forall (m :: * -> *).
                      (MonadIO m, MonadModule m, ModuleInfo m ~ [Symbol]) =>
                      FilePath -> m (Module (Scoped SrcSpan))

tests/run.hs:184:18:
    No instance for (GTraversable (Rec TestAnn) (a0 (Scoped SrcSpan)))
      arising from a use of ‘annotationTest’
    The type variable ‘a0’ is ambiguous
    Relevant bindings include
      filesAndMods :: [(FilePath, a0 (Scoped SrcSpan))]
        (bound at tests/run.hs:182:3)
    Note: there are several potential instances:
      instance (c0 a0, c0 b0) => GTraversable c0 (Either a0 b0)
        -- Defined in ‘traverse-with-class-0.2.0.3:Data.Generics.Traversable.Instances’
      instance c0 a0 => GTraversable c0 (Maybe a0)
        -- Defined in ‘traverse-with-class-0.2.0.3:Data.Generics.Traversable.Instances’
      instance GTraversable c (GHC.Real.Ratio n)
        -- Defined in ‘traverse-with-class-0.2.0.3:Data.Generics.Traversable.Instances’
      ...plus 72 others
    In the first argument of ‘uncurry’, namely ‘annotationTest’
    In the first argument of ‘map’, namely ‘(uncurry annotationTest)’
    In the second argument of ‘($)’, namely
      ‘map (uncurry annotationTest) filesAndMods’
phischu commented 9 years ago

Thanks, fixed with 4d2664b215c68ad6e9c4ac2bdd7ce2ee76b6302c