Resolving dependencies... Configuring hslackbuilder-0.0.1... Building hslackbuilder-0.0.1... Failed to install hslackbuilder-0.0.1 Build log ( /home/builder/.cabal/logs/hslackbuilder-0.0.1.log ): cabal: Entering directory '/tmp/cabal-tmp-14323/hslackbuilder-0.0.1' Configuring hslackbuilder-0.0.1... Warning: 'ghc-options: -prof' is not necessary and will lead to problems when used on a library. Use the configure flag --enable-library-profiling and/or --enable-profiling. Building hslackbuilder-0.0.1... Preprocessing executable 'cabal2slackBuild' for hslackbuilder-0.0.1... [1 of 2] Compiling Distribution.Slackware.SlackBuild ( Distribution/Slackware/SlackBuild.hs, dist/build/cabal2slackBuild/cabal2slackBuild-tmp/Distribution/Slackware/SlackBuild.o ) Distribution/Slackware/SlackBuild.hs:76:20: error: • Variable not in scope: showVersion :: Version -> c • Perhaps you meant one of these: data constructor ‘ThisVersion’ (imported from Distribution.Version), ‘thisVersion’ (imported from Distribution.Version), ‘specVersion’ (imported from Distribution.PackageDescription) Distribution/Slackware/SlackBuild.hs:84:52: error: • Couldn't match expected type ‘[Char]’ with actual type ‘PackageName’ • In the second argument of ‘($)’, namely ‘name’ In the expression: wrap "# Build" "for Slackware" . pad $ name In the expression: ["#!/bin/sh", wrap "# Build" "for Slackware" . pad $ name, legalNotice] Distribution/Slackware/SlackBuild.hs:96:36: error: • Couldn't match expected type ‘[Char]’ with actual type ‘PackageName’ • In the second argument of ‘(++)’, namely ‘name’ In the expression: "PKG=/tmp/package-" ++ name In the expression: ["PKG=/tmp/package-" ++ name, "rm -rf $PKG", "mkdir $PKG", "cd /tmp", ....] Distribution/Slackware/SlackBuild.hs:100:54: error: • Couldn't match expected type ‘[Char]’ with actual type ‘PackageName’ • In the third argument of ‘wrap’, namely ‘name’ In the expression: wrap "tar xzvf $CWD/" "-$VERSION.tar.gz" name In the expression: ["PKG=/tmp/package-" ++ name, "rm -rf $PKG", "mkdir $PKG", "cd /tmp", ....] Distribution/Slackware/SlackBuild.hs:101:54: error: • Couldn't match expected type ‘[Char]’ with actual type ‘PackageName’ • In the third argument of ‘wrap’, namely ‘name’ In the expression: wrap "cd `basename " "-$VERSION i`" name In the expression: ["PKG=/tmp/package-" ++ name, "rm -rf $PKG", "mkdir $PKG", "cd /tmp", ....] Distribution/Slackware/SlackBuild.hs:144:41: error: • Couldn't match expected type ‘[Char]’ with actual type ‘PackageName’ • In the first argument of ‘(++)’, namely ‘name’ In the second argument of ‘(++)’, namely ‘name ++ "-$VERSION/html/" ++ name ++ "-$VERSION.txt $PKG/var/spool/hoogle/"’ In the expression: "cp $PKG/usr/share/doc/" ++ name ++ "-$VERSION/html/" ++ name ++ "-$VERSION.txt $PKG/var/spool/hoogle/" Distribution/Slackware/SlackBuild.hs:144:70: error: • Couldn't match expected type ‘[Char]’ with actual type ‘PackageName’ • In the first argument of ‘(++)’, namely ‘name’ In the second argument of ‘(++)’, namely ‘name ++ "-$VERSION.txt $PKG/var/spool/hoogle/"’ In the second argument of ‘(++)’, namely ‘"-$VERSION/html/" ++ name ++ "-$VERSION.txt $PKG/var/spool/hoogle/"’ Distribution/Slackware/SlackBuild.hs:148:55: error: • Couldn't match expected type ‘[Char]’ with actual type ‘PackageName’ • In the third argument of ‘wrap’, namely ‘name’ In the expression: wrap "mkdir -p $PKG/usr/doc/" "-$VERSION" name In the expression: [wrap "mkdir -p $PKG/usr/doc/" "-$VERSION" name, "cp -a \\", wrap " " " \\" (unwords otherFiles), wrap " $PKG/usr/doc/" "-$VERSION" name] Distribution/Slackware/SlackBuild.hs:151:48: error: • Couldn't match expected type ‘[Char]’ with actual type ‘PackageName’ • In the third argument of ‘wrap’, namely ‘name’ In the expression: wrap " $PKG/usr/doc/" "-$VERSION" name In the expression: [wrap "mkdir -p $PKG/usr/doc/" "-$VERSION" name, "cp -a \\", wrap " " " \\" (unwords otherFiles), wrap " $PKG/usr/doc/" "-$VERSION" name] Distribution/Slackware/SlackBuild.hs:154:20: error: • Variable not in scope: licenseFile :: PackageDescription -> FilePath • Perhaps you meant ‘licenseFiles’ (imported from Distribution.PackageDescription) Distribution/Slackware/SlackBuild.hs:158:103: error: • Couldn't match expected type ‘[Char]’ with actual type ‘PackageName’ • In the second argument of ‘(++)’, namely ‘name’ In the second argument of ‘($)’, namely ‘(when (usePrefix c) "hs-") ++ name’ In the expression: wrap "makepkg -l y -c n ../" "-$VERSION-$ARCH-$BUILD.tgz" $ (when (usePrefix c) "hs-") ++ name Distribution/Slackware/SlackBuild.hs:173:5: error: • Couldn't match type ‘PackageName’ with ‘[Char]’ Expected type: [[Char]] Actual type: [PackageName] • In the second argument of ‘($)’, namely ‘[name, emptyLine, synopsis d, emptyLine, ....] ++ filter (not . null) [concatIf (copyright d) "copyright:", concatIf (author d) "author:", concatIf (maintainer d) "maintainer:", concatIf (homepage d) "homepage:"] ++ endNote’ In the expression: format $ [name, emptyLine, synopsis d, emptyLine, ....] ++ filter (not . null) [concatIf (copyright d) "copyright:", concatIf (author d) "author:", concatIf (maintainer d) "maintainer:", concatIf (homepage d) "homepage:"] ++ endNote In an equation for ‘slackDesc’: slackDesc c d = format $ [name, emptyLine, synopsis d, ....] ++ filter (not . null) [concatIf (copyright d) "copyright:", concatIf (author d) "author:", concatIf (maintainer d) "maintainer:", ....] ++ endNote where desc = format . lines . description name = pkgName . package $ d concatIf p s = when (p /= []) (s ++ " " ++ p) format [] = [] format (x : xs) = when (usePrefix c) "hs-" ++ name ++ ": " ++ x ++ "\n" ++ format xs .... Distribution/Slackware/SlackBuild.hs:174:7: error: • Couldn't match expected type ‘PackageName’ with actual type ‘[t0]’ • In the expression: emptyLine In the first argument of ‘(++)’, namely ‘[name, emptyLine, synopsis d, emptyLine, ....]’ In the second argument of ‘($)’, namely ‘[name, emptyLine, synopsis d, emptyLine, ....] ++ filter (not . null) [concatIf (copyright d) "copyright:", concatIf (author d) "author:", concatIf (maintainer d) "maintainer:", concatIf (homepage d) "homepage:"] ++ endNote’ Distribution/Slackware/SlackBuild.hs:175:7: error: • Couldn't match type ‘[Char]’ with ‘PackageName’ Expected type: PackageName Actual type: String • In the expression: synopsis d In the first argument of ‘(++)’, namely ‘[name, emptyLine, synopsis d, emptyLine, ....]’ In the second argument of ‘($)’, namely ‘[name, emptyLine, synopsis d, emptyLine, ....] ++ filter (not . null) [concatIf (copyright d) "copyright:", concatIf (author d) "author:", concatIf (maintainer d) "maintainer:", concatIf (homepage d) "homepage:"] ++ endNote’ Distribution/Slackware/SlackBuild.hs:176:7: error: • Couldn't match expected type ‘PackageName’ with actual type ‘[t1]’ • In the expression: emptyLine In the first argument of ‘(++)’, namely ‘[name, emptyLine, synopsis d, emptyLine, ....]’ In the second argument of ‘($)’, namely ‘[name, emptyLine, synopsis d, emptyLine, ....] ++ filter (not . null) [concatIf (copyright d) "copyright:", concatIf (author d) "author:", concatIf (maintainer d) "maintainer:", concatIf (homepage d) "homepage:"] ++ endNote’ Distribution/Slackware/SlackBuild.hs:177:7: error: • Couldn't match expected type ‘PackageName’ with actual type ‘[Char]’ • In the expression: desc d In the first argument of ‘(++)’, namely ‘[name, emptyLine, synopsis d, emptyLine, ....]’ In the second argument of ‘($)’, namely ‘[name, emptyLine, synopsis d, emptyLine, ....] ++ filter (not . null) [concatIf (copyright d) "copyright:", concatIf (author d) "author:", concatIf (maintainer d) "maintainer:", concatIf (homepage d) "homepage:"] ++ endNote’ Distribution/Slackware/SlackBuild.hs:178:7: error: • Couldn't match expected type ‘PackageName’ with actual type ‘[t2]’ • In the expression: emptyLine In the first argument of ‘(++)’, namely ‘[name, emptyLine, synopsis d, emptyLine, ....]’ In the second argument of ‘($)’, namely ‘[name, emptyLine, synopsis d, emptyLine, ....] ++ filter (not . null) [concatIf (copyright d) "copyright:", concatIf (author d) "author:", concatIf (maintainer d) "maintainer:", concatIf (homepage d) "homepage:"] ++ endNote’ Distribution/Slackware/SlackBuild.hs:180:8: error: • Couldn't match type ‘[Char]’ with ‘PackageName’ Expected type: [PackageName] Actual type: [[Char]] • In the second argument of ‘(++)’, namely ‘filter (not . null) [concatIf (copyright d) "copyright:", concatIf (author d) "author:", concatIf (maintainer d) "maintainer:", concatIf (homepage d) "homepage:"] ++ endNote’ In the second argument of ‘($)’, namely ‘[name, emptyLine, synopsis d, emptyLine, ....] ++ filter (not . null) [concatIf (copyright d) "copyright:", concatIf (author d) "author:", concatIf (maintainer d) "maintainer:", concatIf (homepage d) "homepage:"] ++ endNote’ In the expression: format $ [name, emptyLine, synopsis d, emptyLine, ....] ++ filter (not . null) [concatIf (copyright d) "copyright:", concatIf (author d) "author:", concatIf (maintainer d) "maintainer:", concatIf (homepage d) "homepage:"] ++ endNote Distribution/Slackware/SlackBuild.hs:196:23: error: • Couldn't match expected type ‘[Char]’ with actual type ‘PackageName’ • In the first argument of ‘(++)’, namely ‘name’ In the second argument of ‘(++)’, namely ‘name ++ ": " ++ x ++ "\n" ++ format xs’ In the expression: when (usePrefix c) "hs-" ++ name ++ ": " ++ x ++ "\n" ++ format xs Distribution/Slackware/SlackBuild.hs:208:19: error: • Couldn't match type ‘PackageName’ with ‘[Char]’ Expected type: String Actual type: PackageName • In the first argument of ‘check’, namely ‘p’ In the expression: check p v In the first argument of ‘format’, namely ‘[check p v | (Dependency p v) <- buildDepends d]’ Distribution/Slackware/SlackBuild.hs:214:13: error: • Variable not in scope: showVersionRange :: t3 -> [Char] • Perhaps you meant ‘foldVersionRange’ (imported from Distribution.Version) Distribution/Slackware/SlackBuild.hs:215:25: error: • Variable not in scope: showVersionRange :: t3 -> [t] • Perhaps you meant ‘foldVersionRange’ (imported from Distribution.Version) cabal: Leaving directory '/tmp/cabal-tmp-14323/hslackbuilder-0.0.1' cabal: Error: some packages failed to install: hslackbuilder-0.0.1 failed during the building phase. The exception was: ExitFailure 1