Build #7 for dead-code-detection-0.2

[all reports]

Package dead-code-detection-0.2
Install BuildFailed
Docs NotTried
Tests NotTried
Time submitted 2016-12-01 08:51:27.497226 UTC
Compiler ghc-8.0.1.20161018
OS linux
Arch x86_64
Dependencies Glob-0.7.13, base-4.9.0.0, containers-0.5.7.1, getopt-generics-0.13, ghc-8.0.1.20161018, ghc-paths-0.1.0.9, gitrev-1.2.0, graph-wrapper-0.2.5.1, silently-1.2.5, string-conversions-0.4, uniplate-1.6.12
Flags none

Code Coverage

No Code Coverage was submitted for this report.

Build log

[view raw]

Resolving dependencies...
Configuring base-orphans-0.5.4...
Configuring base-compat-0.9.1...
Building base-orphans-0.5.4...
Building base-compat-0.9.1...
Configuring dlist-0.8.0.2...
Installed base-orphans-0.5.4
Building dlist-0.8.0.2...
Configuring ghc-paths-0.1.0.9...
Installed base-compat-0.9.1
Configuring gitrev-1.2.0...
Installed dlist-0.8.0.2
Building gitrev-1.2.0...
Configuring generics-sop-0.2.2.0...
Installed gitrev-1.2.0
Building generics-sop-0.2.2.0...
Building ghc-paths-0.1.0.9...
Configuring graph-wrapper-0.2.5.1...
Installed ghc-paths-0.1.0.9
Building graph-wrapper-0.2.5.1...
Configuring silently-1.2.5...
Installed graph-wrapper-0.2.5.1
Building silently-1.2.5...
Configuring syb-0.6...
Installed silently-1.2.5
Building syb-0.6...
Configuring transformers-compat-0.5.1.4...
Installed syb-0.6
Building transformers-compat-0.5.1.4...
Configuring utf8-string-1.0.1.1...
Installed transformers-compat-0.5.1.4
Building utf8-string-1.0.1.1...
Configuring text-1.2.2.1...
Installed utf8-string-1.0.1.1
Building text-1.2.2.1...
Installed generics-sop-0.2.2.0
Configuring tagged-0.8.5...
Building tagged-0.8.5...
Configuring Glob-0.7.13...
Installed tagged-0.8.5
Building Glob-0.7.13...
Installed text-1.2.2.1
Configuring getopt-generics-0.13...
Building getopt-generics-0.13...
Configuring hashable-1.2.4.0...
Installed Glob-0.7.13
Configuring string-conversions-0.4...
Installed getopt-generics-0.13
Building hashable-1.2.4.0...
Building string-conversions-0.4...
Installed string-conversions-0.4
Installed hashable-1.2.4.0
Configuring unordered-containers-0.2.7.1...
Building unordered-containers-0.2.7.1...
Installed unordered-containers-0.2.7.1
Configuring uniplate-1.6.12...
Building uniplate-1.6.12...
Installed uniplate-1.6.12
Configuring dead-code-detection-0.2...
Building dead-code-detection-0.2...
Failed to install dead-code-detection-0.2
Build log ( /home/builder/.cabal/logs/dead-code-detection-0.2.log ):
cabal: Entering directory '/tmp/cabal-tmp-11911/dead-code-detection-0.2'
Configuring dead-code-detection-0.2...
Building dead-code-detection-0.2...
Preprocessing executable 'dead-code-detection' for dead-code-detection-0.2...
[1 of 7] Compiling Paths_dead_code_detection ( dist/build/autogen/Paths_dead_code_detection.hs, dist/build/dead-code-detection/dead-code-detection-tmp/Paths_dead_code_detection.o )
[2 of 7] Compiling Graph            ( src/Graph.hs, dist/build/dead-code-detection/dead-code-detection-tmp/Graph.o )
[3 of 7] Compiling GHC.Show         ( src/GHC/Show.hs, dist/build/dead-code-detection/dead-code-detection-tmp/GHC/Show.o )
[4 of 7] Compiling Files            ( src/Files.hs, dist/build/dead-code-detection/dead-code-detection-tmp/Files.o )
[5 of 7] Compiling Ast              ( src/Ast.hs, dist/build/dead-code-detection/dead-code-detection-tmp/Ast.o )

src/Ast.hs:167:5: error:
    • The constructor ‘FunBind’ should have 5 arguments, but has been given 6
    • In the pattern: FunBind id _ _ _ _ _
      In a case alternative: FunBind id _ _ _ _ _ -> [unLoc id]
      In the expression:
        \case {
          FunBind id _ _ _ _ _ -> [unLoc id]
          PatBind pat _ _ _ _ -> boundNames pat
          bind -> nyi "HsBindLR" bind }

src/Ast.hs:175:18: error:
    • Couldn't match type ‘GenLocated SrcSpan Name’ with ‘Name’
      Expected type: Name
        Actual type: Located Name
    • In the expression: p
      In the expression: [p]
      In a case alternative: VarPat p -> [p]

src/Ast.hs:192:5: error:
    • Couldn't match type ‘FieldOcc Name’ with ‘Name’
      Expected type: [Name]
        Actual type: [FieldOcc Name]
    • In the second argument of ‘($)’, namely
        ‘concatMap
           (map unLoc . cd_fld_names)
           (universeBi conDecl :: [ConDeclField Name])’
      In the expression:
        filter (not . isHidden)
        $ concatMap
            (map unLoc . cd_fld_names)
            (universeBi conDecl :: [ConDeclField Name])
      In an equation for ‘boundNames’:
          boundNames conDecl
            = filter (not . isHidden)
              $ concatMap
                  (map unLoc . cd_fld_names)
                  (universeBi conDecl :: [ConDeclField Name])
            where
                isHidden :: Name -> Bool
                isHidden name = "_" `isPrefixOf` occNameString (getOccName name)

src/Ast.hs:220:30: error:
    • Couldn't match type ‘GenLocated SrcSpan Name’ with ‘Name’
      Expected type: Maybe Name
        Actual type: Maybe (Located Name)
    • In the expression: Just n
      In an equation for ‘extractHsVar’: extractHsVar (HsVar n) = Just n
      In an equation for ‘usedNames’:
          usedNames
            = catMaybes
              . map extractHsVar
                . (universeBi :: HsBindLR Name Name -> [HsExpr Name])
            where
                extractHsVar :: HsExpr Name -> Maybe Name
                extractHsVar (HsVar n) = Just n
                extractHsVar _ = Nothing
cabal: Leaving directory '/tmp/cabal-tmp-11911/dead-code-detection-0.2'
cabal: Error: some packages failed to install:
dead-code-detection-0.2 failed during the building phase. The exception was:
ExitFailure 1

Test log

No test log was submitted for this report.