Build #3 for dead-code-detection-0.4

[all reports]

Package dead-code-detection-0.4
Install BuildFailed
Docs NotTried
Tests NotTried
Time submitted 2016-11-30 07:49:12.451625 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.12, 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-compat-0.9.1...
Building base-orphans-0.5.4...
Configuring dlist-0.8.0.2...
Installed base-orphans-0.5.4
Building dlist-0.8.0.2...
Configuring generics-sop-0.2.2.0...
Installed base-compat-0.9.1
Building generics-sop-0.2.2.0...
Installed dlist-0.8.0.2
Configuring ghc-paths-0.1.0.9...
Building ghc-paths-0.1.0.9...
Configuring gitrev-1.2.0...
Installed ghc-paths-0.1.0.9
Building gitrev-1.2.0...
Configuring graph-wrapper-0.2.5.1...
Installed gitrev-1.2.0
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 text-1.2.2.1...
Installed transformers-compat-0.5.1.4
Building text-1.2.2.1...
Configuring utf8-string-1.0.1.1...
Installed generics-sop-0.2.2.0
Building utf8-string-1.0.1.1...
Installed utf8-string-1.0.1.1
Configuring Glob-0.7.13...
Building Glob-0.7.13...
Configuring tagged-0.8.5...
Installed text-1.2.2.1
Building tagged-0.8.5...
Installed Glob-0.7.13
Configuring string-conversions-0.4...
Building string-conversions-0.4...
Configuring hashable-1.2.4.0...
Installed tagged-0.8.5
Downloading getopt-generics-0.12...
Building hashable-1.2.4.0...
Installed string-conversions-0.4
Configuring getopt-generics-0.12...
Building getopt-generics-0.12...
Installed hashable-1.2.4.0
Configuring unordered-containers-0.2.7.1...
Building unordered-containers-0.2.7.1...
Installed getopt-generics-0.12
Installed unordered-containers-0.2.7.1
Configuring uniplate-1.6.12...
Building uniplate-1.6.12...
Installed uniplate-1.6.12
Downloading dead-code-detection-0.4...
Configuring dead-code-detection-0.4...
Building dead-code-detection-0.4...
Failed to install dead-code-detection-0.4
Build log ( /home/builder/.cabal/logs/dead-code-detection-0.4.log ):
cabal: Entering directory '/tmp/cabal-tmp-7710/dead-code-detection-0.4'
Configuring dead-code-detection-0.4...
Building dead-code-detection-0.4...
Preprocessing executable 'dead-code-detection' for dead-code-detection-0.4...
[1 of 9] Compiling Utils            ( src/Utils.hs, dist/build/dead-code-detection/dead-code-detection-tmp/Utils.o )
[2 of 9] 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 )
[3 of 9] Compiling Graph            ( src/Graph.hs, dist/build/dead-code-detection/dead-code-detection-tmp/Graph.o )
[4 of 9] Compiling GHC.Show         ( src/GHC/Show.hs, dist/build/dead-code-detection/dead-code-detection-tmp/GHC/Show.o )
[5 of 9] Compiling Files            ( src/Files.hs, dist/build/dead-code-detection/dead-code-detection-tmp/Files.o )
[6 of 9] Compiling Ast.UsedNames    ( src/Ast/UsedNames.hs, dist/build/dead-code-detection/dead-code-detection-tmp/Ast/UsedNames.o )

src/Ast/UsedNames.hs:27:5: error:
    • The constructor ‘FunBind’ should have 5 arguments, but has been given 6
    • In the pattern: FunBind _ _ matches _ _ _
      In a case alternative:
          FunBind _ _ matches _ _ _ -> usedNames matches
      In the expression:
        \case {
          FunBind _ _ matches _ _ _ -> usedNames matches
          PatBind lhs rhs _ _ _ -> usedNames lhs ++ usedNames rhs
          x -> o x }

src/Ast/UsedNames.hs:74:5: error:
    • The constructor ‘BindStmt’ should have 5 arguments, but has been given 4
    • In the pattern: BindStmt pat expr _ _
      In a case alternative:
          BindStmt pat expr _ _ -> usedNames pat ++ usedNames expr
      In the expression:
        \case {
          BindStmt pat expr _ _ -> usedNames pat ++ usedNames expr
          LastStmt expr _ -> usedNames expr
          BodyStmt expr _ _ _ -> usedNames expr
          LetStmt x -> usedNames x
          x -> o x }

src/Ast/UsedNames.hs:103:5: error:
    • The constructor ‘RecordUpd’ should have 6 arguments, but has been given 5
    • In the pattern: RecordUpd expr recordBinds [] _ _
      In a case alternative:
          RecordUpd expr recordBinds [] _ _
            -> usedNames expr ++ usedNames recordBinds
      In the expression:
        \case {
          HsVar n -> [n]
          HsLet binds expr -> usedNames binds ++ usedNames expr
          HsLit _ -> []
          HsApp f x -> usedNames f ++ usedNames x
          OpApp a op _ b -> usedNames a ++ usedNames op ++ usedNames b
          HsPar x -> usedNames x
          ExplicitList _ Nothing list -> usedNames list
          ExplicitTuple exprs _ -> usedNames exprs
          HsOverLit {} -> []
          HsLam x -> usedNames x
          HsDo context stmts _ -> usedNames context ++ usedNames stmts
          SectionL a b -> usedNames a ++ usedNames b
          SectionR a b -> usedNames a ++ usedNames b
          HsCase on matchGroup -> usedNames on ++ usedNames matchGroup
          RecordUpd expr recordBinds [] _ _
            -> usedNames expr ++ usedNames recordBinds
          HsLamCase _ matchGroup -> usedNames matchGroup
          HsIf _ c t e -> usedNames c ++ usedNames t ++ usedNames e
          ExprWithTySig expr _ _ -> usedNames expr
          NegApp expr _ -> usedNames expr
          ArithSeq _ _ info -> usedNames info
          RecordCon constructor _ binds
            -> unLoc constructor : usedNames binds
          x -> o x }

src/Ast/UsedNames.hs:157:5: error:
    • Couldn't match type ‘FieldOcc Name’ with ‘Name’
      Expected type: [Name]
        Actual type: [FieldOcc Name]
    • In the expression: unLoc assigned : usedNames expr
      In an equation for ‘usedNames’:
          usedNames (HsRecField assigned expr _)
            = unLoc assigned : usedNames expr
      In the instance declaration for ‘UsedNames (HsRecField Name arg)’

src/Ast/UsedNames.hs:157:22: error:
    • Couldn't match type ‘Name’ with ‘FieldOcc Name’
      Expected type: [FieldOcc Name]
        Actual type: [Name]
    • In the second argument of ‘(:)’, namely ‘usedNames expr’
      In the expression: unLoc assigned : usedNames expr
      In an equation for ‘usedNames’:
          usedNames (HsRecField assigned expr _)
            = unLoc assigned : usedNames expr
cabal: Leaving directory '/tmp/cabal-tmp-7710/dead-code-detection-0.4'
cabal: Error: some packages failed to install:
dead-code-detection-0.4 failed during the building phase. The exception was:
ExitFailure 1

Test log

No test log was submitted for this report.