Skip to content

Cannot build the package with ghc 8.6.5 #13

Description

@mradke

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions