Build #2 for cli-builder-0.1.0

[all reports]

Package cli-builder-0.1.0
Install BuildFailed
Docs NotTried
Tests NotTried
Time submitted 2016-11-17 08:39:17.373422 UTC
Compiler ghc-8.0.1.20161018
OS linux
Arch x86_64
Dependencies base-4.9.0.0, either-4.4.1.1, exceptions-0.8.3, optparse-applicative-0.13.0.0, transformers-0.5.2.0
Flags test-doctest

Build log

[view raw]

Resolving dependencies...
Configuring ansi-terminal-0.6.2.3...
Configuring base-orphans-0.5.4...
Building ansi-terminal-0.6.2.3...
Building base-orphans-0.5.4...
Installed base-orphans-0.5.4
Configuring mtl-2.2.1...
Building mtl-2.2.1...
Configuring random-1.1...
Installed ansi-terminal-0.6.2.3
Building random-1.1...
Configuring semigroups-0.18.2...
Installed mtl-2.2.1
Building semigroups-0.18.2...
Configuring prelude-extras-0.4.0.3...
Installed random-1.1
Building prelude-extras-0.4.0.3...
Configuring stm-2.4.4.1...
Installed semigroups-0.18.2
Building stm-2.4.4.1...
Configuring text-1.2.2.1...
Installed stm-2.4.4.1
Configuring transformers-compat-0.5.1.4...
Installed prelude-extras-0.4.0.3
Building text-1.2.2.1...
Building transformers-compat-0.5.1.4...
Installed transformers-compat-0.5.1.4
Configuring ansi-wl-pprint-0.6.7.3...
Building ansi-wl-pprint-0.6.7.3...
Installed ansi-wl-pprint-0.6.7.3
Configuring StateVar-1.1.0.4...
Building StateVar-1.1.0.4...
Installed StateVar-1.1.0.4
Configuring exceptions-0.8.3...
Building exceptions-0.8.3...
Configuring mmorph-1.0.6...
Installed exceptions-0.8.3
Building mmorph-1.0.6...
Configuring tagged-0.8.5...
Installed mmorph-1.0.6
Building tagged-0.8.5...
Configuring transformers-base-0.4.4...
Installed text-1.2.2.1
Building transformers-base-0.4.4...
Configuring MonadRandom-0.4.2.3...
Installed tagged-0.8.5
Configuring optparse-applicative-0.13.0.0...
Installed transformers-base-0.4.4
Building MonadRandom-0.4.2.3...
Building optparse-applicative-0.13.0.0...
Installed MonadRandom-0.4.2.3
Configuring monad-control-1.0.1.0...
Building monad-control-1.0.1.0...
Configuring distributive-0.5.0.2...
Installed monad-control-1.0.1.0
Configuring hashable-1.2.4.0...
Installed optparse-applicative-0.13.0.0
Building hashable-1.2.4.0...
Building distributive-0.5.0.2...
Installed hashable-1.2.4.0
Configuring void-0.7.1...
Building void-0.7.1...
Installed void-0.7.1
Configuring contravariant-1.4...
Installed distributive-0.5.0.2
Building contravariant-1.4...
Installed contravariant-1.4
Configuring comonad-5...
Building comonad-5...
Installed comonad-5
Configuring bifunctors-5.4.1...
Building bifunctors-5.4.1...
Installed bifunctors-5.4.1
Configuring semigroupoids-5.1...
Configuring profunctors-5.2...
Building profunctors-5.2...
Building semigroupoids-5.1...
Installed profunctors-5.2
Installed semigroupoids-5.1
Configuring free-4.12.4...
Building free-4.12.4...
Installed free-4.12.4
Configuring either-4.4.1.1...
Building either-4.4.1.1...
Installed either-4.4.1.1
Configuring cli-builder-0.1.0...
Building cli-builder-0.1.0...
Failed to install cli-builder-0.1.0
Build log ( /home/builder/.cabal/logs/cli-builder-0.1.0.log ):
cabal: Entering directory '/tmp/cabal-tmp-19123/cli-builder-0.1.0'
Configuring cli-builder-0.1.0...
Building cli-builder-0.1.0...
Preprocessing library cli-builder-0.1.0...
[1 of 4] Compiling System.CLI.Builder.Types ( src/System/CLI/Builder/Types.hs, dist/build/System/CLI/Builder/Types.o )
[2 of 4] Compiling System.CLI.Builder.Option ( src/System/CLI/Builder/Option.hs, dist/build/System/CLI/Builder/Option.o )
[3 of 4] Compiling System.CLI.Builder.Internal ( src/System/CLI/Builder/Internal.hs, dist/build/System/CLI/Builder/Internal.o )

src/System/CLI/Builder/Internal.hs:38:36: error:
    • Couldn't match expected type ‘OptReader a’
                  with actual type ‘(String -> Maybe (ParserInfo a5))
                                    -> OptReader a5’
    • Probable cause: ‘rdr’ is applied to too few arguments
      In the third argument of ‘mkParser’, namely ‘rdr’
      In the expression: mkParser d g rdr
      In an equation for ‘fromCommandFields’:
          fromCommandFields m
            = mkParser d g rdr
            where
                Mod _ d g = (<>) metavar "COMMAND" m
                (cmds, subs) = mkCommand m
                rdr = CmdReader cmds (fmap add_helper . subs)
                add_helper pinfo
                  = pinfo {infoParser = infoParser pinfo <**> helpOption}
    • Relevant bindings include
        m :: ModCommandFields a
          (bound at src/System/CLI/Builder/Internal.hs:38:19)
        fromCommandFields :: ModCommandFields a -> Parser a
          (bound at src/System/CLI/Builder/Internal.hs:38:1)

src/System/CLI/Builder/Internal.hs:40:35: error:
    • Variable not in scope:
        (<>) :: Mod f2 a4 -> ModCommandFields a -> Mod t0 t
    • Perhaps you meant one of these:
        ‘<$>’ (imported from Options.Applicative),
        ‘*>’ (imported from Options.Applicative),
        ‘<$’ (imported from Options.Applicative)

src/System/CLI/Builder/Internal.hs:41:20: error:
    • Couldn't match expected type ‘(t1, t)’
                  with actual type ‘(Maybe String, [String],
                                     String -> Maybe (ParserInfo a))’
    • In the expression: mkCommand m
      In a pattern binding: (cmds, subs) = mkCommand m
      In an equation for ‘fromCommandFields’:
          fromCommandFields m
            = mkParser d g rdr
            where
                Mod _ d g = (<>) metavar "COMMAND" m
                (cmds, subs) = mkCommand m
                rdr = CmdReader cmds (fmap add_helper . subs)
                add_helper pinfo
                  = pinfo {infoParser = infoParser pinfo <**> helpOption}
    • Relevant bindings include
        cmds :: t1 (bound at src/System/CLI/Builder/Internal.hs:41:6)
        subs :: t (bound at src/System/CLI/Builder/Internal.hs:41:12)
        m :: ModCommandFields a
          (bound at src/System/CLI/Builder/Internal.hs:38:19)
        fromCommandFields :: ModCommandFields a -> Parser a
          (bound at src/System/CLI/Builder/Internal.hs:38:1)

src/System/CLI/Builder/Internal.hs:42:27: error:
    • Couldn't match expected type ‘[String]’
                  with actual type ‘a3 -> f1 (ParserInfo a2)’
    • Probable cause: ‘(.)’ is applied to too few arguments
      In the second argument of ‘CmdReader’, namely
        ‘(fmap add_helper . subs)’
      In the expression: CmdReader cmds (fmap add_helper . subs)
      In an equation for ‘rdr’:
          rdr = CmdReader cmds (fmap add_helper . subs)

src/System/CLI/Builder/Internal.hs:50:3: error:
    • Variable not in scope:
        (<>) :: Parser (a1 -> a1) -> Mod f0 a0 -> Parser (a -> a)
    • Perhaps you meant one of these:
        ‘<$>’ (imported from Options.Applicative),
        ‘*>’ (imported from Options.Applicative),
        ‘<$’ (imported from Options.Applicative)
cabal: Leaving directory '/tmp/cabal-tmp-19123/cli-builder-0.1.0'
cabal: Error: some packages failed to install:
cli-builder-0.1.0 failed during the building phase. The exception was:
ExitFailure 1