Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot build the package with ghc 8.6.5 #13

Open
mradke opened this issue Sep 3, 2020 · 0 comments · May be fixed by #14
Open

Cannot build the package with ghc 8.6.5 #13

mradke opened this issue Sep 3, 2020 · 0 comments · May be fixed by #14

Comments

@mradke
Copy link

mradke commented Sep 3, 2020

On NixOS 20.03, with ghc865, I'll get the following output when invoking cabal v2-build:

Build profile: -w ghc-8.6.5 -O1
In order, the following will be built (use -v for more details):
 - yeshql-core-4.1.1.2 (lib) (requires build)
 - yeshql-hdbc-4.1.1.2 (lib) (requires build)
 - yeshql-4.2.0.0 (lib) (requires build)
 - OdbcWithHaskell-0.1.0.0 (exe:OdbcWithHaskell) (first run)
Starting     yeshql-core-4.1.1.2 (lib)
Building     yeshql-core-4.1.1.2 (lib)

Failed to build yeshql-core-4.1.1.2.
Build log (
$HOME/.cabal/logs/ghc-8.6.5/yeshql-core-4.1.1.2-11162d7df6bb6a286e119f6f345d75da704cb3cbc7a9033f84eb677c7942f62d.log
):
Configuring library for yeshql-core-4.1.1.2..
Preprocessing library for yeshql-core-4.1.1.2..
Building library for yeshql-core-4.1.1.2..
[1 of 4] Compiling Database.YeshQL.Parser ( src/Database/YeshQL/Parser.hs, dist/build/Database/YeshQL/Parser.o )
[2 of 4] Compiling Database.YeshQL.Core ( src/Database/YeshQL/Core.hs, dist/build/Database/YeshQL/Core.o )
[3 of 4] Compiling Database.YeshQL.Util ( src/Database/YeshQL/Util.hs, dist/build/Database/YeshQL/Util.o )

src/Database/YeshQL/Util.hs:60:21: error:
    Not in scope: type constructor or class ‘MonadFail’
   |
60 | withParsedQuery :: (MonadFail m, MonadPerformIO m, Monad m)
   |                     ^^^^^^^^^

src/Database/YeshQL/Util.hs:64:23: error:
    Not in scope: type constructor or class ‘MonadFail’
   |
64 | withParsedQueries :: (MonadFail m, MonadPerformIO m, Monad m)
   |                       ^^^^^^^^^

src/Database/YeshQL/Util.hs:68:25: error:
    Not in scope: type constructor or class ‘MonadFail’
   |
68 | withParsedQueryFile :: (MonadFail m, MonadPerformIO m, Monad m)
   |                         ^^^^^^^^^

src/Database/YeshQL/Util.hs:76:27: error:
    Not in scope: type constructor or class ‘MonadFail’
   |
76 | withParsedQueriesFile :: (MonadFail m, MonadPerformIO m, Monad m)
   |                           ^^^^^^^^^

src/Database/YeshQL/Util.hs:84:16: error:
    Not in scope: type constructor or class ‘MonadFail’
   |
84 | withParsed :: (MonadFail m, Monad m, Show e)
   |                ^^^^^^^^^

src/Database/YeshQL/Util.hs:116:20: error:
    Not in scope: type constructor or class ‘MonadFail’
    |
116 | withParsedFile :: (MonadFail m, MonadPerformIO m, Monad m, Show e) => (String -> Either e a) -> (a -> m b) -> FilePath -> m b
    |                    ^^^^^^^^^
cabal: Failed to build yeshql-core-4.1.1.2 (which is required by
exe:OdbcWithHaskell from OdbcWithHaskell-0.1.0.0). See the build log above for
details.

In the environment cabal --version yields:

cabal-install version 3.0.0.0
compiled using version 3.0.0.0 of the Cabal library 

This is probably a usage error, since I'm fairly new to cabal.
Anyhow I'd assume this should not happen.

@mradke mradke linked a pull request Sep 3, 2020 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant