Resolving dependencies... Configuring ansi-terminal-0.6.2.3... Configuring base-compat-0.9.1... Building ansi-terminal-0.6.2.3... Building base-compat-0.9.1... Configuring base16-bytestring-0.1.1.6... Installed ansi-terminal-0.6.2.3 Configuring base64-bytestring-1.0.0.1... Installed base-compat-0.9.1 Building base16-bytestring-0.1.1.6... Building base64-bytestring-1.0.0.1... Configuring byteable-0.1.1... Installed base16-bytestring-0.1.1.6 Building byteable-0.1.1... Configuring base-orphans-0.5.4... Installed base64-bytestring-1.0.0.1 Building base-orphans-0.5.4... Configuring data-default-class-0.1.2.0... Installed byteable-0.1.1 Building data-default-class-0.1.2.0... Configuring cereal-0.5.4.0... Installed base-orphans-0.5.4 Building cereal-0.5.4.0... Configuring dlist-0.8.0.2... Installed data-default-class-0.1.2.0 Building dlist-0.8.0.2... Configuring gitrev-1.2.0... Installed dlist-0.8.0.2 Building gitrev-1.2.0... Configuring hourglass-0.2.10... Installed cereal-0.5.4.0 Building hourglass-0.2.10... Configuring mtl-2.2.1... Installed gitrev-1.2.0 Building mtl-2.2.1... Configuring memory-0.13... Installed mtl-2.2.1 Building memory-0.13... Configuring old-locale-1.0.0.7... Installed hourglass-0.2.10 Building old-locale-1.0.0.7... Configuring network-2.6.3.1... Installed old-locale-1.0.0.7 Building network-2.6.3.1... Configuring prelude-extras-0.4.0.3... Installed memory-0.13 Building prelude-extras-0.4.0.3... Configuring random-1.1... Installed prelude-extras-0.4.0.3 Building random-1.1... Configuring semigroups-0.18.2... Installed network-2.6.3.1 Configuring split-0.2.3.1... Installed random-1.1 Building semigroups-0.18.2... Building split-0.2.3.1... Configuring primitive-0.6.1.0... Installed semigroups-0.18.2 Building primitive-0.6.1.0... Configuring safe-0.3.10... Installed split-0.2.3.1 Building safe-0.3.10... Configuring stm-2.4.4.1... Installed safe-0.3.10 Building stm-2.4.4.1... Configuring time-locale-compat-0.1.1.3... Installed primitive-0.6.1.0 Building time-locale-compat-0.1.1.3... Configuring text-1.2.2.1... Installed stm-2.4.4.1 Configuring transformers-compat-0.5.1.4... Installed time-locale-compat-0.1.1.3 Building text-1.2.2.1... Building transformers-compat-0.5.1.4... Configuring unix-compat-0.4.3.1... Installed transformers-compat-0.5.1.4 Building unix-compat-0.4.3.1... Configuring zlib-0.6.1.2... Installed unix-compat-0.4.3.1 Building zlib-0.6.1.2... Installed zlib-0.6.1.2 Configuring pem-0.2.2... Building pem-0.2.2... Configuring asn1-types-0.3.2... Installed pem-0.2.2 Building asn1-types-0.3.2... Configuring ansi-wl-pprint-0.6.7.3... Installed text-1.2.2.1 Configuring socks-0.5.5... Installed asn1-types-0.3.2 Building ansi-wl-pprint-0.6.7.3... Building socks-0.5.5... Configuring dlist-instances-0.1.1.1... Installed ansi-wl-pprint-0.6.7.3 Building dlist-instances-0.1.1.1... Configuring cryptonite-0.20... Installed dlist-instances-0.1.1.1 Configuring StateVar-1.1.0.4... Installed socks-0.5.5 Building cryptonite-0.20... Building StateVar-1.1.0.4... Configuring vector-0.11.0.0... Installed StateVar-1.1.0.4 Building vector-0.11.0.0... Configuring async-2.1.1... Installed vector-0.11.0.0 Building async-2.1.1... Configuring stm-chans-3.0.0.4... Installed async-2.1.1 Configuring exceptions-0.8.3... Installed cryptonite-0.20 Building stm-chans-3.0.0.4... Building exceptions-0.8.3... Configuring mmorph-1.0.9... Installed stm-chans-3.0.0.4 Building mmorph-1.0.9... Configuring MonadRandom-0.4.2.3... Installed exceptions-0.8.3 Building MonadRandom-0.4.2.3... Configuring transformers-base-0.4.4... Installed mmorph-1.0.9 Building transformers-base-0.4.4... Configuring tagged-0.8.5... Installed MonadRandom-0.4.2.3 Installed transformers-base-0.4.4 Configuring blaze-builder-0.4.0.2... Building tagged-0.8.5... Building blaze-builder-0.4.0.2... Configuring hashable-1.2.4.0... Installed tagged-0.8.5 Building hashable-1.2.4.0... Configuring mime-types-0.1.0.7... Installed blaze-builder-0.4.0.2 Building mime-types-0.1.0.7... Configuring parsec-3.1.11... Installed hashable-1.2.4.0 Building parsec-3.1.11... Configuring system-filepath-0.4.13.4... Installed mime-types-0.1.0.7 Configuring say-0.1.0.0... Installed parsec-3.1.11 Building system-filepath-0.4.13.4... Building say-0.1.0.0... Configuring asn1-encoding-0.9.4... Installed say-0.1.0.0 Building asn1-encoding-0.9.4... Configuring chunked-data-0.3.0... Installed system-filepath-0.4.13.4 Building chunked-data-0.3.0... Configuring mwc-random-0.13.5.0... Installed asn1-encoding-0.9.4 Configuring optparse-applicative-0.13.0.0... Installed chunked-data-0.3.0 Building mwc-random-0.13.5.0... Building optparse-applicative-0.13.0.0... Configuring vector-algorithms-0.7.0.1... Installed mwc-random-0.13.5.0 Building vector-algorithms-0.7.0.1... Configuring cryptohash-0.11.9... Installed optparse-applicative-0.13.0.0 Building cryptohash-0.11.9... Configuring safe-exceptions-0.1.4.0... Installed cryptohash-0.11.9 Building safe-exceptions-0.1.4.0... Configuring monad-control-1.0.1.0... Installed safe-exceptions-0.1.4.0 Installed vector-algorithms-0.7.0.1 Configuring distributive-0.5.0.2... Building monad-control-1.0.1.0... Configuring cookie-0.4.2.1... Installed monad-control-1.0.1.0 Building cookie-0.4.2.1... Building distributive-0.5.0.2... Configuring streaming-commons-0.1.16... Installed cookie-0.4.2.1 Building streaming-commons-0.1.16... Configuring constraints-0.8... Installed distributive-0.5.0.2 Building constraints-0.8... Configuring case-insensitive-1.2.0.7... Installed constraints-0.8 Building case-insensitive-1.2.0.7... Configuring scientific-0.3.4.9... Installed streaming-commons-0.1.16 Building scientific-0.3.4.9... Configuring void-0.7.1... Installed case-insensitive-1.2.0.7 Building void-0.7.1... Configuring unordered-containers-0.2.7.1... Installed void-0.7.1 Building unordered-containers-0.2.7.1... Configuring network-uri-2.6.1.0... Installed scientific-0.3.4.9 Building network-uri-2.6.1.0... Configuring ReadArgs-1.2.3... Installed network-uri-2.6.1.0 Building ReadArgs-1.2.3... Configuring asn1-parse-0.9.4... Installed unordered-containers-0.2.7.1 Building asn1-parse-0.9.4... Configuring system-fileio-0.3.16.3... Installed ReadArgs-1.2.3 Building system-fileio-0.3.16.3... Installed asn1-parse-0.9.4 Configuring monad-unlift-0.2.0... Building monad-unlift-0.2.0... Configuring lifted-base-0.2.3.8... Installed system-fileio-0.3.16.3 Building lifted-base-0.2.3.8... Configuring http-types-0.9.1... Installed monad-unlift-0.2.0 Building http-types-0.9.1... Configuring contravariant-1.4... Installed lifted-base-0.2.3.8 Building contravariant-1.4... Configuring mono-traversable-1.0.1... Installed http-types-0.9.1 Building mono-traversable-1.0.1... Configuring attoparsec-0.13.1.0... Installed contravariant-1.4 Building attoparsec-0.13.1.0... Configuring x509-1.6.5... Installed attoparsec-0.13.1.0 Building x509-1.6.5... Installed mono-traversable-1.0.1 Configuring basic-prelude-0.6.1... Building basic-prelude-0.6.1... Configuring enclosed-exceptions-1.0.2... Installed x509-1.6.5 Building enclosed-exceptions-1.0.2... Configuring lifted-async-0.9.0... Installed enclosed-exceptions-1.0.2 Configuring resourcet-1.1.8.1... Installed basic-prelude-0.6.1 Building lifted-async-0.9.0... Building resourcet-1.1.8.1... Configuring comonad-5... Installed lifted-async-0.9.0 Configuring http-client-0.5.4... Installed resourcet-1.1.8.1 Building http-client-0.5.4... Building comonad-5... Configuring aeson-1.0.2.1... Installed comonad-5 Building aeson-1.0.2.1... Configuring mutable-containers-0.3.3... Installed http-client-0.5.4 Building mutable-containers-0.3.3... Installed mutable-containers-0.3.3 Configuring x509-store-1.6.2... Building x509-store-1.6.2... Configuring conduit-1.2.8... Installed x509-store-1.6.2 Building conduit-1.2.8... Configuring bifunctors-5.4.1... Installed conduit-1.2.8 Building bifunctors-5.4.1... Installed aeson-1.0.2.1 Configuring x509-system-1.6.4... Building x509-system-1.6.4... Configuring x509-validation-1.6.5... Installed x509-system-1.6.4 Building x509-validation-1.6.5... Installed x509-validation-1.6.5 Configuring conduit-extra-1.1.15... Building conduit-extra-1.1.15... Installed bifunctors-5.4.1 Configuring yaml-0.8.21.1... Building yaml-0.8.21.1... Installed conduit-extra-1.1.15 Configuring tls-1.3.8... Building tls-1.3.8... Configuring profunctors-5.2... Installed yaml-0.8.21.1 Building profunctors-5.2... Configuring semigroupoids-5.1... Installed tls-1.3.8 Building semigroupoids-5.1... Installed profunctors-5.2 Configuring conduit-combinators-1.0.8.3... Building conduit-combinators-1.0.8.3... Configuring connection-0.2.6... Installed semigroupoids-5.1 Configuring cryptohash-conduit-0.1.1... Installed conduit-combinators-1.0.8.3 Building connection-0.2.6... Building cryptohash-conduit-0.1.1... Installed cryptohash-conduit-0.1.1 Configuring free-4.12.4... Building free-4.12.4... Installed connection-0.2.6 Configuring http-client-tls-0.3.3... Building http-client-tls-0.3.3... Installed http-client-tls-0.3.3 Configuring http-conduit-2.2.3... Building http-conduit-2.2.3... Installed http-conduit-2.2.3 Installed free-4.12.4 Configuring either-4.4.1.1... Configuring adjunctions-4.3... Building either-4.4.1.1... Building adjunctions-4.3... Configuring keys-3.11... Installed either-4.4.1.1 Building keys-3.11... Configuring optparse-simple-0.0.3... Installed adjunctions-4.3 Building optparse-simple-0.0.3... Configuring kan-extensions-5.0.1... Installed optparse-simple-0.0.3 Building kan-extensions-5.0.1... Configuring stackage-cli-0.1.0.2... Installed keys-3.11 Building stackage-cli-0.1.0.2... Installed kan-extensions-5.0.1 Configuring pointed-5... Building pointed-5... Installed pointed-5 Configuring vector-instances-3.3.1... Building vector-instances-3.3.1... Installed stackage-cli-0.1.0.2 Installed vector-instances-3.3.1 Configuring mono-traversable-instances-0.1.0.0... Building mono-traversable-instances-0.1.0.0... Installed mono-traversable-instances-0.1.0.0 Configuring classy-prelude-1.0.2... Building classy-prelude-1.0.2... Installed classy-prelude-1.0.2 Configuring classy-prelude-conduit-1.0.2... Building classy-prelude-conduit-1.0.2... Installed classy-prelude-conduit-1.0.2 Configuring stackage-setup-0.0.0.1... Building stackage-setup-0.0.0.1... Failed to install stackage-setup-0.0.0.1 Build log ( /home/builder/.cabal/logs/stackage-setup-0.0.0.1.log ): cabal: Entering directory '/tmp/cabal-tmp-28458/stackage-setup-0.0.0.1' Configuring stackage-setup-0.0.0.1... Building stackage-setup-0.0.0.1... Preprocessing executable 'stackage-setup' for stackage-setup-0.0.0.1... [1 of 2] Compiling Paths_stackage_setup ( dist/build/autogen/Paths_stackage_setup.hs, dist/build/stackage-setup/stackage-setup-tmp/Paths_stackage_setup.o ) [2 of 2] Compiling Main ( main/StackageSetup.hs, dist/build/stackage-setup/stackage-setup-tmp/Main.o ) main/StackageSetup.hs:145:7: error: • Couldn't match type ‘[Char]’ with ‘Path.FilePath’ Expected type: IO Path.FilePath Actual type: IO FilePath • In a stmt of a 'do' block: return (home ".stackage") In the expression: do { home <- lookupEnv "HOME" >>= \case { Just homeStr -> return (fromString homeStr) Nothing -> throwIO StackageRootNotFound }; return (home ".stackage") } In a case alternative: Nothing -> do { home <- lookupEnv "HOME" >>= \case { Just homeStr -> return (fromString homeStr) Nothing -> throwIO StackageRootNotFound }; return (home ".stackage") } main/StackageSetup.hs:147:3: error: • Couldn't match type ‘Path.FilePath’ with ‘[Char]’ Expected type: IO FilePath Actual type: IO Path.FilePath • In a stmt of a 'do' block: return stackageRoot In the expression: do { stackageRoot <- lookupEnv "STACKAGE_ROOT" >>= \case { Just dir -> return $ Path.decodeString dir Nothing -> do { ... } }; createTree stackageRoot; return stackageRoot } In an equation for ‘getStackageRootIO’: getStackageRootIO = do { stackageRoot <- lookupEnv "STACKAGE_ROOT" >>= \case { Just dir -> return $ Path.decodeString dir Nothing -> ... }; createTree stackageRoot; return stackageRoot } main/StackageSetup.hs:151:20: error: • Couldn't match type ‘[Char]’ with ‘Path.FilePath’ Expected type: Path.FilePath Actual type: FilePath • In the first argument of ‘isFile’, namely ‘path’ In a stmt of a 'do' block: exists <- isFile path In the expression: do { exists <- isFile path; if exists then Just <$> ClassyPrelude.Conduit.readFile path else return Nothing } main/StackageSetup.hs:236:34: error: • Couldn't match type ‘[Char]’ with ‘Path.FilePath’ Expected type: Path.FilePath Actual type: FilePath • In the second argument of ‘($)’, namely ‘stackageRoot snapshotsPath’ In the expression: Path.encodeString $ stackageRoot snapshotsPath In an equation for ‘path’: path = Path.encodeString $ stackageRoot snapshotsPath main/StackageSetup.hs:236:51: error: • Couldn't match type ‘Path.FilePath’ with ‘[Char]’ Expected type: FilePath Actual type: Path.FilePath • In the second argument of ‘()’, namely ‘snapshotsPath’ In the second argument of ‘($)’, namely ‘stackageRoot snapshotsPath’ In the expression: Path.encodeString $ stackageRoot snapshotsPath main/StackageSetup.hs:257:34: error: • Couldn't match type ‘[Char]’ with ‘Path.FilePath’ Expected type: Path.FilePath Actual type: FilePath • In the second argument of ‘($)’, namely ‘stackageRoot linksPath ghcMajorVersion’ In the expression: Path.encodeString $ stackageRoot linksPath ghcMajorVersion In an equation for ‘path’: path = Path.encodeString $ stackageRoot linksPath ghcMajorVersion main/StackageSetup.hs:257:51: error: • Couldn't match type ‘Path.FilePath’ with ‘[Char]’ Expected type: FilePath Actual type: Path.FilePath • In the second argument of ‘()’, namely ‘linksPath ghcMajorVersion’ In the second argument of ‘($)’, namely ‘stackageRoot linksPath ghcMajorVersion’ In the expression: Path.encodeString $ stackageRoot linksPath ghcMajorVersion main/StackageSetup.hs:366:32: error: • Couldn't match type ‘Path.FilePath’ with ‘[Char]’ Expected type: FilePath Actual type: Path.FilePath • In the second argument of ‘()’, namely ‘downloadDir downloadName’ In the expression: stackageRoot downloadDir downloadName In an equation for ‘dir’: dir = stackageRoot downloadDir downloadName main/StackageSetup.hs:367:25: error: • Couldn't match type ‘[Char]’ with ‘Path.FilePath’ Expected type: Path.FilePath Actual type: FilePath • In the first argument of ‘createTree’, namely ‘dir’ In the second argument of ‘($)’, namely ‘createTree dir’ In a stmt of a 'do' block: liftIO $ createTree dir main/StackageSetup.hs:369:32: error: • Couldn't match type ‘Path.FilePath’ with ‘[Char]’ Expected type: FilePath Actual type: Path.FilePath • In the second argument of ‘()’, namely ‘downloadPath downloadName downloadVersion’ In the expression: dir downloadPath downloadName downloadVersion In an equation for ‘versionedDir’: versionedDir = dir downloadPath downloadName downloadVersion main/StackageSetup.hs:370:36: error: • Couldn't match type ‘[Char]’ with ‘Path.FilePath’ Expected type: Path.FilePath Actual type: FilePath • In the first argument of ‘isDirectory’, namely ‘versionedDir’ In the second argument of ‘($)’, namely ‘isDirectory versionedDir’ In a stmt of a 'do' block: exists <- liftIO $ isDirectory versionedDir main/StackageSetup.hs:375:43: error: • Couldn't match type ‘[Char]’ with ‘Path.FilePath’ Expected type: Path.FilePath Actual type: FilePath • In the third argument of ‘download’, namely ‘dir’ In a stmt of a 'do' block: download downloadUrl downloadSha1 dir In the expression: do { liftIO $ checkDependencies (depsFor downloadName); download downloadUrl downloadSha1 dir; postDownload d dir versionedDir } main/StackageSetup.hs:376:24: error: • Couldn't match type ‘[Char]’ with ‘Path.FilePath’ Expected type: Path.FilePath Actual type: FilePath • In the second argument of ‘postDownload’, namely ‘dir’ In a stmt of a 'do' block: postDownload d dir versionedDir In the expression: do { liftIO $ checkDependencies (depsFor downloadName); download downloadUrl downloadSha1 dir; postDownload d dir versionedDir } main/StackageSetup.hs:376:28: error: • Couldn't match type ‘[Char]’ with ‘Path.FilePath’ Expected type: Path.FilePath Actual type: FilePath • In the third argument of ‘postDownload’, namely ‘versionedDir’ In a stmt of a 'do' block: postDownload d dir versionedDir In the expression: do { liftIO $ checkDependencies (depsFor downloadName); download downloadUrl downloadSha1 dir; postDownload d dir versionedDir } main/StackageSetup.hs:395:15: error: • Variable not in scope: fpToString :: FilePath -> FilePath • Perhaps you meant ‘fromString’ (imported from ClassyPrelude.Conduit) main/StackageSetup.hs:408:33: error: • Couldn't match type ‘Path.FilePath’ with ‘[Char]’ Expected type: Download -> Path.FilePath -> Path.FilePath -> m () Actual type: Download -> FilePath -> FilePath -> m () • In the expression: justUnpackInstructions In an equation for ‘expectInstructions’: expectInstructions "stackage" = justUnpackInstructions main/StackageSetup.hs:409:29: error: • Couldn't match type ‘Path.FilePath’ with ‘[Char]’ Expected type: Download -> Path.FilePath -> Path.FilePath -> m () Actual type: Download -> FilePath -> FilePath -> m () • In the expression: justUnpackInstructions In an equation for ‘expectInstructions’: expectInstructions "alex" = justUnpackInstructions main/StackageSetup.hs:410:30: error: • Couldn't match type ‘Path.FilePath’ with ‘[Char]’ Expected type: Download -> Path.FilePath -> Path.FilePath -> m () Actual type: Download -> FilePath -> FilePath -> m () • In the expression: justUnpackInstructions In an equation for ‘expectInstructions’: expectInstructions "happy" = justUnpackInstructions main/StackageSetup.hs:411:24: error: • Couldn't match type ‘Path.FilePath’ with ‘[Char]’ Expected type: Download -> Path.FilePath -> Path.FilePath -> m () Actual type: Download -> FilePath -> FilePath -> m () • In the expression: unexpectedInstructions t In an equation for ‘expectInstructions’: expectInstructions t = unexpectedInstructions t main/StackageSetup.hs:418:27: error: Variable not in scope: fpToText :: FilePath -> Text main/StackageSetup.hs:429:20: error: • Couldn't match type ‘[Char]’ with ‘Path.FilePath’ Expected type: Path.FilePath Actual type: FilePath • In the first argument of ‘unzipXZ’, namely ‘dir’ In the first argument of ‘(>>)’, namely ‘unzipXZ dir (Path.fromText file)’ In the expression: unzipXZ dir (Path.fromText file) >> go next main/StackageSetup.hs:468:16: error: • Couldn't match type ‘Path.FilePath’ with ‘[Char]’ Expected type: FilePath Actual type: Path.FilePath • In the first argument of ‘(<.>)’, namely ‘versionedDir’ In the expression: versionedDir <.> "src" In an equation for ‘srcDir’: srcDir = versionedDir <.> "src" main/StackageSetup.hs:469:22: error: • Couldn't match type ‘[Char]’ with ‘Path.FilePath’ Expected type: Path.FilePath Actual type: FilePath • In the first argument of ‘isDirectory’, namely ‘srcDir’ In the first argument of ‘whenM’, namely ‘(isDirectory srcDir)’ In the expression: whenM (isDirectory srcDir) main/StackageSetup.hs:469:43: error: • Couldn't match type ‘[Char]’ with ‘Path.FilePath’ Expected type: Path.FilePath Actual type: FilePath • In the first argument of ‘removeTree’, namely ‘srcDir’ In the second argument of ‘($)’, namely ‘removeTree srcDir’ In a stmt of a 'do' block: whenM (isDirectory srcDir) $ removeTree srcDir main/StackageSetup.hs:470:23: error: • Couldn't match type ‘[Char]’ with ‘Path.FilePath’ Expected type: Path.FilePath Actual type: FilePath • In the second argument of ‘rename’, namely ‘srcDir’ In a stmt of a 'do' block: rename versionedDir srcDir In the second argument of ‘($)’, namely ‘do { let srcDir = versionedDir <.> "src"; whenM (isDirectory srcDir) $ removeTree srcDir; rename versionedDir srcDir; createTree versionedDir; .... }’ main/StackageSetup.hs:472:18: error: • Couldn't match type ‘[Char]’ with ‘Path.FilePath’ Expected type: Path.FilePath Actual type: FilePath • In the first argument of ‘inDir’, namely ‘srcDir’ In the expression: inDir srcDir In the expression: inDir srcDir $ do { callProcess "./configure" ["--prefix=" <> Path.encodeString versionedDir]; callProcess "make" ["install"] } main/StackageSetup.hs:476:14: error: • Couldn't match type ‘[Char]’ with ‘Path.FilePath’ Expected type: Path.FilePath Actual type: FilePath • In the first argument of ‘removeTree’, namely ‘srcDir’ In a stmt of a 'do' block: removeTree srcDir In the second argument of ‘($)’, namely ‘do { let srcDir = versionedDir <.> "src"; whenM (isDirectory srcDir) $ removeTree srcDir; rename versionedDir srcDir; createTree versionedDir; .... }’ main/StackageSetup.hs:496:25: error: • Couldn't match type ‘Path.FilePath’ with ‘[Char]’ Expected type: FilePath Actual type: Path.FilePath • In the first argument of ‘cabalBootstrap’, namely ‘dir’ In the first argument of ‘(>>)’, namely ‘cabalBootstrap dir version’ In the expression: cabalBootstrap dir version >> go next main/StackageSetup.hs:501:23: error: • Couldn't match type ‘Path.FilePath’ with ‘[Char]’ Expected type: FilePath Actual type: Path.FilePath • In the first argument of ‘cabalMoveExe’, namely ‘versionedDir’ In the first argument of ‘(>>)’, namely ‘cabalMoveExe versionedDir’ In the expression: cabalMoveExe versionedDir >> go next main/StackageSetup.hs:506:42: error: • Couldn't match type ‘Path.FilePath’ with ‘[Char]’ Expected type: FilePath Actual type: Path.FilePath • In the second argument of ‘()’, namely ‘Path.fromText ("cabal-install-" <> version)’ In the expression: dir Path.fromText ("cabal-install-" <> version) In an equation for ‘cabalInstallVersionedDir’: cabalInstallVersionedDir = dir Path.fromText ("cabal-install-" <> version) main/StackageSetup.hs:507:9: error: • Couldn't match type ‘[Char]’ with ‘Path.FilePath’ Expected type: Path.FilePath Actual type: FilePath • In the first argument of ‘inDir’, namely ‘cabalInstallVersionedDir’ In the expression: inDir cabalInstallVersionedDir In a stmt of a 'do' block: inDir cabalInstallVersionedDir $ do { callProcess "./bootstrap.sh" [] } main/StackageSetup.hs:509:14: error: • Couldn't match type ‘[Char]’ with ‘Path.FilePath’ Expected type: Path.FilePath Actual type: FilePath • In the first argument of ‘removeTree’, namely ‘cabalInstallVersionedDir’ In a stmt of a 'do' block: removeTree cabalInstallVersionedDir In the expression: do { let cabalInstallVersionedDir = dir Path.fromText ("cabal-install-" <> version); inDir cabalInstallVersionedDir $ do { callProcess "./bootstrap.sh" [] }; removeTree cabalInstallVersionedDir } main/StackageSetup.hs:514:14: error: • Couldn't match type ‘[Char]’ with ‘Path.FilePath’ Expected type: Path.FilePath Actual type: FilePath • In the first argument of ‘createTree’, namely ‘versionedDirBin’ In a stmt of a 'do' block: createTree versionedDirBin In the expression: do { let versionedDirBin = versionedDir "bin"; createTree versionedDirBin; homeCabal <- getHomeCabal; rename homeCabal (versionedDirBin "cabal") } main/StackageSetup.hs:516:10: error: • Couldn't match type ‘[Char]’ with ‘Path.FilePath’ Expected type: Path.FilePath Actual type: FilePath • In the first argument of ‘rename’, namely ‘homeCabal’ In a stmt of a 'do' block: rename homeCabal (versionedDirBin "cabal") In the expression: do { let versionedDirBin = versionedDir "bin"; createTree versionedDirBin; homeCabal <- getHomeCabal; rename homeCabal (versionedDirBin "cabal") } main/StackageSetup.hs:516:21: error: • Couldn't match type ‘[Char]’ with ‘Path.FilePath’ Expected type: Path.FilePath Actual type: FilePath • In the second argument of ‘rename’, namely ‘(versionedDirBin "cabal")’ In a stmt of a 'do' block: rename homeCabal (versionedDirBin "cabal") In the expression: do { let versionedDirBin = versionedDir "bin"; createTree versionedDirBin; homeCabal <- getHomeCabal; rename homeCabal (versionedDirBin "cabal") } main/StackageSetup.hs:522:12: error: • Couldn't match type ‘Path.FilePath’ with ‘[Char]’ Expected type: FilePath Actual type: Path.FilePath • In the first argument of ‘()’, namely ‘Path.decodeString home’ In the second argument of ‘($)’, namely ‘Path.decodeString home ".cabal" "bin" "cabal"’ In a stmt of a 'do' block: return $ Path.decodeString home ".cabal" "bin" "cabal" main/StackageSetup.hs:527:20: error: • Couldn't match type ‘[Char]’ with ‘Path.FilePath’ Expected type: Path.FilePath Actual type: FilePath • In the first argument of ‘isFile’, namely ‘homeCabal’ In a stmt of a 'do' block: exists <- isFile homeCabal In the expression: do { homeCabal <- getHomeCabal; exists <- isFile homeCabal; if exists then do { let ...; .... } else action } main/StackageSetup.hs:531:27: error: • Couldn't match type ‘[Char]’ with ‘Path.FilePath’ Expected type: Path.FilePath Actual type: FilePath • In the first argument of ‘rename’, namely ‘homeCabal’ In the expression: rename homeCabal tempCabal In an equation for ‘toTemp’: toTemp = rename homeCabal tempCabal main/StackageSetup.hs:531:37: error: • Couldn't match type ‘[Char]’ with ‘Path.FilePath’ Expected type: Path.FilePath Actual type: FilePath • In the second argument of ‘rename’, namely ‘tempCabal’ In the expression: rename homeCabal tempCabal In an equation for ‘toTemp’: toTemp = rename homeCabal tempCabal main/StackageSetup.hs:532:29: error: • Couldn't match type ‘[Char]’ with ‘Path.FilePath’ Expected type: Path.FilePath Actual type: FilePath • In the first argument of ‘rename’, namely ‘tempCabal’ In the expression: rename tempCabal homeCabal In an equation for ‘fromTemp’: fromTemp = rename tempCabal homeCabal main/StackageSetup.hs:532:39: error: • Couldn't match type ‘[Char]’ with ‘Path.FilePath’ Expected type: Path.FilePath Actual type: FilePath • In the second argument of ‘rename’, namely ‘homeCabal’ In the expression: rename tempCabal homeCabal In an equation for ‘fromTemp’: fromTemp = rename tempCabal homeCabal main/StackageSetup.hs:548:14: error: • Couldn't match type ‘Path.FilePath’ with ‘[Char]’ Expected type: FilePath Actual type: Path.FilePath • In the first argument of ‘()’, namely ‘dir’ In the expression: dir Path.decodeString fname In an equation for ‘file’: file = dir Path.decodeString fname main/StackageSetup.hs:548:22: error: • Couldn't match type ‘Path.FilePath’ with ‘[Char]’ Expected type: FilePath Actual type: Path.FilePath • In the second argument of ‘()’, namely ‘Path.decodeString fname’ In the expression: dir Path.decodeString fname In an equation for ‘file’: file = dir Path.decodeString fname main/StackageSetup.hs:566:54: error: Variable not in scope: fpToText :: Path.FilePath -> seq0 main/StackageSetup.hs:568:36: error: Variable not in scope: fpToText :: Path.FilePath -> seq1 main/StackageSetup.hs:598:3: error: • Couldn't match type ‘[Char]’ with ‘Path.FilePath’ Expected type: Path.FilePath Actual type: FilePath • In the expression: "environment" Path.fromText name In an equation for ‘downloadDir’: downloadDir name = "environment" Path.fromText name main/StackageSetup.hs:598:21: error: • Couldn't match type ‘Path.FilePath’ with ‘[Char]’ Expected type: FilePath Actual type: Path.FilePath • In the second argument of ‘()’, namely ‘Path.fromText name’ In the expression: "environment" Path.fromText name In an equation for ‘downloadDir’: downloadDir name = "environment" Path.fromText name cabal: Leaving directory '/tmp/cabal-tmp-28458/stackage-setup-0.0.0.1' cabal: Error: some packages failed to install: stackage-setup-0.0.0.1 failed during the building phase. The exception was: ExitFailure 1