Compile failures / inaccurate version bounds
hvr opened this issue · 1 comments
hvr commented
Among other issues, this resulted in Hackage not being able to build the documentation, see
- https://hackage.haskell.org/package/stackage-curator-0.14.3/reports/1
- https://hackage.haskell.org/package/stackage-curator-0.14.3/reports/2
Please be aware that inaccurate version bounds result in a poor experience for Hackage users.
Configuring component lib from stackage-curator-0.14.3
Preprocessing library stackage-curator-0.14.3...
[ 1 of 21] Compiling Stackage.Types ( Stackage/Types.hs, /tmp/matrix-worker/1480483440/dist-newstyle/build/x86_64-linux/ghc-7.8.4/stackage-curator-0.14.3/build/Stackage/Types.o )
Stackage/Types.hs:379:10:
Not in scope: type constructor or class ‘Monoid’
Perhaps you meant ‘Monad’ (imported from Prelude)
cabal: Failed to build stackage-curator-0.14.3 (which is required by
exe:stackage-curator from stackage-curator-0.14.3 and exe:stackage-build-plan
from stackage-curator-0.14.3).
Configuring component lib from stackage-curator-0.14.3
Preprocessing library stackage-curator-0.14.3...
[ 1 of 21] Compiling Stackage.Types ( Stackage/Types.hs, /tmp/matrix-worker/1480481721/dist-newstyle/build/x86_64-linux/ghc-7.10.3/stackage-curator-0.14.3/build/Stackage/Types.o )
[ 2 of 21] Compiling Stackage.Curator.UploadDocs ( Stackage/Curator/UploadDocs.hs, /tmp/matrix-worker/1480481721/dist-newstyle/build/x86_64-linux/ghc-7.10.3/stackage-curator-0.14.3/build/Stackage/Curator/UploadDocs.o )
Stackage/Curator/UploadDocs.hs:85:12:
Couldn't match type ‘Env’ with ‘IO Env’
Expected type: Credentials -> IO Env
Actual type: Credentials -> Env
The function ‘newEnv’ is applied to two arguments,
its type is ‘Credentials -> m0 Env’,
it is specialized to ‘Credentials -> Credentials -> Env’
In a stmt of a 'do' block: env <- newEnv NorthVirginia Discover
In the expression:
do { env <- newEnv NorthVirginia Discover;
unlessM (Dir.doesDirectoryExist input')
$ error $ "Could not find directory: " ++ show input';
input <- fmap (</> "") $ Dir.canonicalizePath input';
let inner :: M m => m ()
inner = ...;
.... }
Stackage/Curator/UploadDocs.hs:85:19:
Couldn't match expected type ‘Credentials’
with actual type ‘Region’
In the first argument of ‘newEnv’, namely ‘NorthVirginia’
In a stmt of a 'do' block: env <- newEnv NorthVirginia Discover
cabal: Failed to build stackage-curator-0.14.3 (which is required by
exe:stackage-curator from stackage-curator-0.14.3 and exe:stackage-build-plan
from stackage-curator-0.14.3).
Configuring component lib from stackage-curator-0.14.3
Preprocessing library stackage-curator-0.14.3...
[ 1 of 21] Compiling Stackage.Types ( Stackage/Types.hs, /tmp/matrix-worker/1480480708/dist-newstyle/build/x86_64-linux/ghc-8.0.1/stackage-curator-0.14.3/build/Stackage/Types.o )
[ 2 of 21] Compiling Stackage.Prelude ( Stackage/Prelude.hs, /tmp/matrix-worker/1480480708/dist-newstyle/build/x86_64-linux/ghc-8.0.1/stackage-curator-0.14.3/build/Stackage/Prelude.o )
[ 3 of 21] Compiling Stackage.CorePackages ( Stackage/CorePackages.hs, /tmp/matrix-worker/1480480708/dist-newstyle/build/x86_64-linux/ghc-8.0.1/stackage-curator-0.14.3/build/Stackage/CorePackages.o )
[ 4 of 21] Compiling Stackage.BuildConstraints ( Stackage/BuildConstraints.hs, /tmp/matrix-worker/1480480708/dist-newstyle/build/x86_64-linux/ghc-8.0.1/stackage-curator-0.14.3/build/Stackage/BuildConstraints.o )
[ 5 of 21] Compiling Stackage.GithubPings ( Stackage/GithubPings.hs, /tmp/matrix-worker/1480480708/dist-newstyle/build/x86_64-linux/ghc-8.0.1/stackage-curator-0.14.3/build/Stackage/GithubPings.o )
[ 6 of 21] Compiling Stackage.PackageIndex ( Stackage/PackageIndex.hs, /tmp/matrix-worker/1480480708/dist-newstyle/build/x86_64-linux/ghc-8.0.1/stackage-curator-0.14.3/build/Stackage/PackageIndex.o )
[ 7 of 21] Compiling Stackage.PackageDescription ( Stackage/PackageDescription.hs, /tmp/matrix-worker/1480480708/dist-newstyle/build/x86_64-linux/ghc-8.0.1/stackage-curator-0.14.3/build/Stackage/PackageDescription.o )
[ 8 of 21] Compiling Stackage.DiffPlans ( Stackage/DiffPlans.hs, /tmp/matrix-worker/1480480708/dist-newstyle/build/x86_64-linux/ghc-8.0.1/stackage-curator-0.14.3/build/Stackage/DiffPlans.o )
[ 9 of 21] Compiling Stackage.GhcPkg ( Stackage/GhcPkg.hs, /tmp/matrix-worker/1480480708/dist-newstyle/build/x86_64-linux/ghc-8.0.1/stackage-curator-0.14.3/build/Stackage/GhcPkg.o )
[10 of 21] Compiling Stackage.Stats ( Stackage/Stats.hs, /tmp/matrix-worker/1480480708/dist-newstyle/build/x86_64-linux/ghc-8.0.1/stackage-curator-0.14.3/build/Stackage/Stats.o )
[11 of 21] Compiling Stackage.Curator.UploadDocs ( Stackage/Curator/UploadDocs.hs, /tmp/matrix-worker/1480480708/dist-newstyle/build/x86_64-linux/ghc-8.0.1/stackage-curator-0.14.3/build/Stackage/Curator/UploadDocs.o )
Stackage/Curator/UploadDocs.hs:85:12: error:
• Couldn't match type ‘Env’ with ‘IO Env’
Expected type: Credentials -> IO Env
Actual type: Credentials -> Env
• The function ‘newEnv’ is applied to two arguments,
its type is ‘Credentials -> m0 Env’,
it is specialized to ‘Credentials -> Credentials -> Env’
In a stmt of a 'do' block: env <- newEnv NorthVirginia Discover
In the expression:
do { env <- newEnv NorthVirginia Discover;
unlessM (Dir.doesDirectoryExist input')
$ error $ "Could not find directory: " ++ show input';
input <- fmap (</> "") $ Dir.canonicalizePath input';
let inner :: M m => m ()
inner = ...;
.... }
Stackage/Curator/UploadDocs.hs:85:19: error:
• Couldn't match expected type ‘Credentials’
with actual type ‘Region’
• In the first argument of ‘newEnv’, namely ‘NorthVirginia’
In a stmt of a 'do' block: env <- newEnv NorthVirginia Discover
In the expression:
do { env <- newEnv NorthVirginia Discover;
unlessM (Dir.doesDirectoryExist input')
$ error $ "Could not find directory: " ++ show input';
input <- fmap (</> "") $ Dir.canonicalizePath input';
let inner :: M m => m ()
inner = ...;
.... }
cabal: Failed to build stackage-curator-0.14.3 (which is required by
exe:stackage-curator from stackage-curator-0.14.3 and exe:stackage-build-plan
from stackage-curator-0.14.3).
juhp commented
I hit the Stackage.Curator.UploadDocs
errors while trying to build stackage-curator for Stackage Nightly.