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

blockfrost-client 0.8.0.0 doesn't build with GHC 9.6.3 #47

Closed
jonathangenlambda opened this issue Jan 4, 2024 · 1 comment
Closed

Comments

@jonathangenlambda
Copy link

Building blockfrost-client 0.8.0.0 seems to be failing when building with GHC 9.6.3 with the following error:

Building library for blockfrost-client-0.8.0.0..
[ 1 of 16] Compiling Blockfrost.Client.Types ( src/Blockfrost/Client/Types.hs, dist/build/Blockfrost/Client/Types.o, dist/build/Blockfrost/Client/Types.dyn_o )
[ 2 of 16] Compiling Blockfrost.Client.NutLink ( src/Blockfrost/Client/NutLink.hs, dist/build/Blockfrost/Client/NutLink.o, dist/build/Blockfrost/Client/NutLink.dyn_o )
[ 3 of 16] Compiling Blockfrost.Client.IPFS ( src/Blockfrost/Client/IPFS.hs, dist/build/Blockfrost/Client/IPFS.o, dist/build/Blockfrost/Client/IPFS.dyn_o )

src/Blockfrost/Client/IPFS.hs:31:14: error: [GHC-88464]
    Variable not in scope: liftIO :: IO Bool -> m Bool
    Suggested fix: Perhaps use 'liftA2' (imported from Prelude)
   |
31 |   hasFile <- liftIO $ System.Directory.doesFileExist fp
   |              ^^^^^^

src/Blockfrost/Client/IPFS.hs:34:7: error: [GHC-88464]
    Variable not in scope: liftIO :: IO () -> m a0
    Suggested fix: Perhaps use 'liftA2' (imported from Prelude)
   |
34 |       liftIO $ putStrLn $ "Uploading: " ++ fp
   |       ^^^^^^

The problem stems from the fact that Control.Monad.Except doesn't reexport Control.Monad.Trans anymore which in turn reexported Control.Monad.IO.Class.

Please repair or adjust dependencies, as https://hackage.haskell.org/package/blockfrost-client reports base (>=4.7 && <5)

@sorki sorki closed this as completed in 5ef9d54 Jan 16, 2024
@sorki
Copy link
Contributor

sorki commented Jan 16, 2024

Thanks, fixed and released as blockfrost-client-0.8.0.1.

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

No branches or pull requests

2 participants