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 base-orphans-0.5.4... Installed base16-bytestring-0.1.1.6 Building base-orphans-0.5.4... Configuring byteable-0.1.1... Installed base64-bytestring-1.0.0.1 Building byteable-0.1.1... 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 byteable-0.1.1 Building dlist-0.8.0.2... Configuring gitrev-1.2.0... Installed dlist-0.8.0.2 Building gitrev-1.2.0... Configuring data-default-class-0.1.2.0... Installed cereal-0.5.4.0 Building data-default-class-0.1.2.0... Configuring hourglass-0.2.10... Installed gitrev-1.2.0 Building hourglass-0.2.10... Configuring memory-0.13... Installed data-default-class-0.1.2.0 Building memory-0.13... Configuring mtl-2.2.1... Installed hourglass-0.2.10 Building mtl-2.2.1... Configuring old-locale-1.0.0.7... Installed memory-0.13 Building old-locale-1.0.0.7... Configuring primitive-0.6.1.0... Installed old-locale-1.0.0.7 Building primitive-0.6.1.0... Configuring prelude-extras-0.4.0.3... Installed mtl-2.2.1 Building prelude-extras-0.4.0.3... Configuring network-2.6.3.1... Installed primitive-0.6.1.0 Configuring random-1.1... Installed prelude-extras-0.4.0.3 Building random-1.1... Building network-2.6.3.1... Configuring split-0.2.3.1... Installed random-1.1 Building split-0.2.3.1... Configuring stm-2.4.4.1... Installed split-0.2.3.1 Building stm-2.4.4.1... Configuring semigroups-0.18.2... Installed network-2.6.3.1 Configuring safe-0.3.10... Installed stm-2.4.4.1 Building semigroups-0.18.2... Building safe-0.3.10... Configuring time-locale-compat-0.1.1.3... Installed semigroups-0.18.2 Building time-locale-compat-0.1.1.3... Configuring text-1.2.2.1... Installed safe-0.3.10 Building text-1.2.2.1... Configuring transformers-compat-0.5.1.4... Installed time-locale-compat-0.1.1.3 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 ansi-wl-pprint-0.6.7.3... Building ansi-wl-pprint-0.6.7.3... Configuring asn1-types-0.3.2... Installed ansi-wl-pprint-0.6.7.3 Building asn1-types-0.3.2... Configuring pem-0.2.2... Installed text-1.2.2.1 Building pem-0.2.2... Configuring cryptonite-0.20... Installed asn1-types-0.3.2 Building cryptonite-0.20... Configuring StateVar-1.1.0.4... Installed pem-0.2.2 Building StateVar-1.1.0.4... Configuring async-2.1.1... Installed StateVar-1.1.0.4 Building async-2.1.1... Configuring socks-0.5.5... Installed async-2.1.1 Building socks-0.5.5... Configuring stm-chans-3.0.0.4... Installed socks-0.5.5 Building stm-chans-3.0.0.4... Configuring vector-0.11.0.0... Installed stm-chans-3.0.0.4 Building vector-0.11.0.0... Configuring dlist-instances-0.1.1.1... Installed cryptonite-0.20 Building dlist-instances-0.1.1.1... Configuring MonadRandom-0.4.2.3... Installed dlist-instances-0.1.1.1 Building MonadRandom-0.4.2.3... Configuring mmorph-1.0.9... Installed MonadRandom-0.4.2.3 Building mmorph-1.0.9... Configuring transformers-base-0.4.4... Installed mmorph-1.0.9 Configuring tagged-0.8.5... Installed vector-0.11.0.0 Building transformers-base-0.4.4... Building tagged-0.8.5... Configuring exceptions-0.8.3... Installed transformers-base-0.4.4 Building exceptions-0.8.3... Installed tagged-0.8.5 Configuring optparse-applicative-0.13.0.0... Building optparse-applicative-0.13.0.0... Configuring blaze-builder-0.4.0.2... Installed exceptions-0.8.3 Building blaze-builder-0.4.0.2... Configuring mime-types-0.1.0.7... Installed blaze-builder-0.4.0.2 Configuring hashable-1.2.4.0... Installed optparse-applicative-0.13.0.0 Building mime-types-0.1.0.7... Building hashable-1.2.4.0... Configuring parsec-3.1.11... Installed hashable-1.2.4.0 Building parsec-3.1.11... Configuring say-0.1.0.0... Installed mime-types-0.1.0.7 Building say-0.1.0.0... Configuring system-filepath-0.4.13.4... Installed say-0.1.0.0 Configuring asn1-encoding-0.9.4... Installed parsec-3.1.11 Building asn1-encoding-0.9.4... Building system-filepath-0.4.13.4... Configuring chunked-data-0.3.0... Installed asn1-encoding-0.9.4 Building chunked-data-0.3.0... Configuring cryptohash-0.11.9... Installed system-filepath-0.4.13.4 Building cryptohash-0.11.9... Configuring mwc-random-0.13.5.0... Installed chunked-data-0.3.0 Building mwc-random-0.13.5.0... Configuring vector-algorithms-0.7.0.1... Installed cryptohash-0.11.9 Building vector-algorithms-0.7.0.1... Configuring monad-control-1.0.1.0... Installed mwc-random-0.13.5.0 Building monad-control-1.0.1.0... Configuring distributive-0.5.0.2... Installed monad-control-1.0.1.0 Installed vector-algorithms-0.7.0.1 Configuring cookie-0.4.2.1... Building distributive-0.5.0.2... Building cookie-0.4.2.1... Configuring safe-exceptions-0.1.4.0... Installed distributive-0.5.0.2 Configuring streaming-commons-0.1.16... Installed cookie-0.4.2.1 Building safe-exceptions-0.1.4.0... Building streaming-commons-0.1.16... Configuring case-insensitive-1.2.0.7... Installed safe-exceptions-0.1.4.0 Building case-insensitive-1.2.0.7... Configuring constraints-0.8... Installed case-insensitive-1.2.0.7 Building constraints-0.8... Configuring scientific-0.3.4.9... Installed streaming-commons-0.1.16 Building scientific-0.3.4.9... Configuring unordered-containers-0.2.7.1... Installed constraints-0.8 Building unordered-containers-0.2.7.1... Configuring void-0.7.1... Installed scientific-0.3.4.9 Building void-0.7.1... Configuring network-uri-2.6.1.0... Installed void-0.7.1 Building network-uri-2.6.1.0... Configuring asn1-parse-0.9.4... Installed network-uri-2.6.1.0 Building asn1-parse-0.9.4... Configuring system-fileio-0.3.16.3... Installed unordered-containers-0.2.7.1 Configuring ReadArgs-1.2.3... Installed asn1-parse-0.9.4 Building system-fileio-0.3.16.3... Building ReadArgs-1.2.3... Configuring lifted-base-0.2.3.8... Installed system-fileio-0.3.16.3 Building lifted-base-0.2.3.8... Installed ReadArgs-1.2.3 Configuring http-types-0.9.1... Building http-types-0.9.1... Configuring monad-unlift-0.2.0... Installed lifted-base-0.2.3.8 Building monad-unlift-0.2.0... Configuring contravariant-1.4... Installed http-types-0.9.1 Configuring attoparsec-0.13.1.0... Installed monad-unlift-0.2.0 Building contravariant-1.4... Building attoparsec-0.13.1.0... Configuring x509-1.6.5... Installed contravariant-1.4 Building x509-1.6.5... Configuring mono-traversable-1.0.1... Installed attoparsec-0.13.1.0 Building mono-traversable-1.0.1... Installed x509-1.6.5 Configuring basic-prelude-0.6.1... Building basic-prelude-0.6.1... Configuring resourcet-1.1.8.1... Installed basic-prelude-0.6.1 Building resourcet-1.1.8.1... Configuring lifted-async-0.9.0... Installed resourcet-1.1.8.1 Configuring enclosed-exceptions-1.0.2... Installed mono-traversable-1.0.1 Building lifted-async-0.9.0... Building enclosed-exceptions-1.0.2... Configuring http-client-0.5.4... Installed enclosed-exceptions-1.0.2 Building http-client-0.5.4... Configuring comonad-5... Installed lifted-async-0.9.0 Building comonad-5... Configuring aeson-1.0.2.1... Installed comonad-5 Building aeson-1.0.2.1... Configuring x509-store-1.6.2... Installed http-client-0.5.4 Building x509-store-1.6.2... Installed x509-store-1.6.2 Configuring conduit-1.2.8... Building conduit-1.2.8... Configuring mutable-containers-0.3.3... Installed conduit-1.2.8 Building mutable-containers-0.3.3... Configuring bifunctors-5.4.1... Installed mutable-containers-0.3.3 Building bifunctors-5.4.1... Configuring x509-system-1.6.4... Installed aeson-1.0.2.1 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 bifunctors-5.4.1 Configuring conduit-extra-1.1.15... Building conduit-extra-1.1.15... Configuring profunctors-5.2... Installed x509-validation-1.6.5 Building profunctors-5.2... Configuring yaml-0.8.21.1... Installed conduit-extra-1.1.15 Building yaml-0.8.21.1... Configuring semigroupoids-5.1... Installed profunctors-5.2 Building semigroupoids-5.1... Installed semigroupoids-5.1 Configuring tls-1.3.8... Building tls-1.3.8... Installed yaml-0.8.21.1 Configuring cryptohash-conduit-0.1.1... Building cryptohash-conduit-0.1.1... Configuring conduit-combinators-1.0.8.3... Installed cryptohash-conduit-0.1.1 Building conduit-combinators-1.0.8.3... Configuring free-4.12.4... Installed conduit-combinators-1.0.8.3 Building free-4.12.4... Installed tls-1.3.8 Configuring connection-0.2.6... Building connection-0.2.6... 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 free-4.12.4 Configuring either-4.4.1.1... Building either-4.4.1.1... Configuring adjunctions-4.3... Installed http-conduit-2.2.3 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 keys-3.11 Building kan-extensions-5.0.1... Installed optparse-simple-0.0.3 Configuring stackage-cli-0.1.0.2... Installed kan-extensions-5.0.1 Configuring pointed-5... Building stackage-cli-0.1.0.2... Building pointed-5... Installed pointed-5 Configuring vector-instances-3.3.1... Building vector-instances-3.3.1... Installed vector-instances-3.3.1 Configuring mono-traversable-instances-0.1.0.0... Building mono-traversable-instances-0.1.0.0... Installed stackage-cli-0.1.0.2 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 Downloading stackage-setup-0.0.0... Configuring stackage-setup-0.0.0... Building stackage-setup-0.0.0... Failed to install stackage-setup-0.0.0 Build log ( /home/builder/.cabal/logs/stackage-setup-0.0.0.log ): cabal: Entering directory '/tmp/cabal-tmp-11620/stackage-setup-0.0.0' Configuring stackage-setup-0.0.0... Building stackage-setup-0.0.0... Preprocessing executable 'stackage-setup' for stackage-setup-0.0.0... [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 ltsSnapshotsPath’ In the expression: Path.encodeString $ stackageRoot ltsSnapshotsPath In an equation for ‘path’: path = Path.encodeString $ stackageRoot ltsSnapshotsPath 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 ‘ltsSnapshotsPath’ In the second argument of ‘($)’, namely ‘stackageRoot ltsSnapshotsPath’ In the expression: Path.encodeString $ stackageRoot ltsSnapshotsPath 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:365: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:366: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:368: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:369: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:374: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:375: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:375: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:394:15: error: • Variable not in scope: fpToString :: FilePath -> FilePath • Perhaps you meant ‘fromString’ (imported from ClassyPrelude.Conduit) main/StackageSetup.hs:407: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:408: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:409: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:410: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:417:27: error: Variable not in scope: fpToText :: FilePath -> Text main/StackageSetup.hs:428: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:467: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:468: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:468: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:469: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:471: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:475: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:495: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:500: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:505: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:506: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:508: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:513: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:515: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:515: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:521: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:526: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:530: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:530: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:531: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:531: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:547: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:547: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:565:54: error: Variable not in scope: fpToText :: Path.FilePath -> seq0 main/StackageSetup.hs:567:36: error: Variable not in scope: fpToText :: Path.FilePath -> seq1 main/StackageSetup.hs:597: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:597: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-11620/stackage-setup-0.0.0' cabal: Error: some packages failed to install: stackage-setup-0.0.0 failed during the building phase. The exception was: ExitFailure 1