Build #8 for xml-prettify-0.1.0.1

[all reports]

Package xml-prettify-0.1.0.1
Install BuildFailed
Docs NotTried
Tests NotTried
Time submitted 2016-12-29 20:51:53.993386 UTC
Compiler ghc-8.0.1.20161018
OS linux
Arch x86_64
Dependencies base-4.9.0.0, base-4.9.0.0, cmdargs-0.10.14, unix-2.7.2.0
Flags none

Build log

[view raw]

Resolving dependencies...
Configuring cmdargs-0.10.14...
Building cmdargs-0.10.14...
Installed cmdargs-0.10.14
Configuring xml-prettify-0.1.0.1...
Building xml-prettify-0.1.0.1...
Failed to install xml-prettify-0.1.0.1
Build log ( /home/builder/.cabal/logs/xml-prettify-0.1.0.1.log ):
cabal: Entering directory '/tmp/cabal-tmp-27596/xml-prettify-0.1.0.1'
Configuring xml-prettify-0.1.0.1...
Building xml-prettify-0.1.0.1...
Preprocessing library xml-prettify-0.1.0.1...
[1 of 1] Compiling Text.XML.Prettify ( src/Text/XML/Prettify.hs, dist/build/Text/XML/Prettify.o )

src/Text/XML/Prettify.hs:41:1: warning: [-Woverlapping-patterns]
    Pattern match is redundant
    In an equation for ‘inputToTags’: inputToTags "" = ...
Preprocessing executable 'xml-prettify' for xml-prettify-0.1.0.1...
[1 of 2] Compiling Text.XML.Prettify ( src/Text/XML/Prettify.hs, dist/build/xml-prettify/xml-prettify-tmp/Text/XML/Prettify.o )

src/Text/XML/Prettify.hs:41:1: warning: [-Woverlapping-patterns]
    Pattern match is redundant
    In an equation for ‘inputToTags’: inputToTags "" = ...
[2 of 2] Compiling Main             ( src/Main.hs, dist/build/xml-prettify/xml-prettify-tmp/Main.o )

src/Main.hs:27:15: error:
    • Variable not in scope: mode :: XmlPrettify -> t
    • Perhaps you meant one of these:
        ‘mod’ (imported from Prelude),
        ‘modes’ (imported from System.Console.CmdArgs), ‘modes’ (line 29)

src/Main.hs:32:15: error:
    • Couldn't match expected type ‘[t2] -> IO XmlPrettify’
                  with actual type ‘IO [Char]’
    • The function ‘cmdArgs’ is applied to two arguments,
      but its type ‘[Char] -> IO [Char]’ has only one
      In a stmt of a 'do' block:
        prettify <- cmdArgs
                      "xml-prettify v0.0.3, (c) David M. Rosenberg 2010" [xmlprettify]
      In the expression:
        do { prettify <- cmdArgs
                           "xml-prettify v0.0.3, (c) David M. Rosenberg 2010" [xmlprettify];
             let infiles = input_files prettify;
             goodFile <- liftM (all (== True)) $ mapM fileExist infiles;
             result <- case (goodFile, infiles) of {
                         (_, []) -> showHelp
                         (True, _) -> prettyPrint infiles
                         (False, _) -> showHelp };
             .... }

src/Main.hs:60:15: error:
    • Couldn't match expected type ‘[t1] -> t0 -> m b’
                  with actual type ‘Maybe String’
    • The function ‘cmdArgsHelp’ is applied to three arguments,
      but its type ‘CmdArgs a0 -> Maybe String’ has only one
      In a stmt of a 'do' block:
        helptext <- cmdArgsHelp
                      "xml-prettify v0.0.3, (c) David M. Rosenberg 2010"
                      [xmlprettify]
                      Text
      In the expression:
        do { helptext <- cmdArgsHelp
                           "xml-prettify v0.0.3, (c) David M. Rosenberg 2010"
                           [xmlprettify]
                           Text;
             return helptext }
    • Relevant bindings include
        showHelp :: m b (bound at src/Main.hs:59:1)

src/Main.hs:60:27: error:
    • Couldn't match expected type ‘CmdArgs a0’
                  with actual type ‘[Char]’
    • In the first argument of ‘cmdArgsHelp’, namely
        ‘"xml-prettify v0.0.3, (c) David M. Rosenberg 2010"’
      In a stmt of a 'do' block:
        helptext <- cmdArgsHelp
                      "xml-prettify v0.0.3, (c) David M. Rosenberg 2010"
                      [xmlprettify]
                      Text
      In the expression:
        do { helptext <- cmdArgsHelp
                           "xml-prettify v0.0.3, (c) David M. Rosenberg 2010"
                           [xmlprettify]
                           Text;
             return helptext }

src/Main.hs:60:92: error:
    • Data constructor not in scope: Text
    • Perhaps you meant ‘Next’ (imported from System.Posix)
cabal: Leaving directory '/tmp/cabal-tmp-27596/xml-prettify-0.1.0.1'
cabal: Error: some packages failed to install:
xml-prettify-0.1.0.1 failed during the building phase. The exception was:
ExitFailure 1