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 be build against random-fu-0.3 #203

Open
Bodigrim opened this issue Feb 19, 2022 · 2 comments
Open

Cannot be build against random-fu-0.3 #203

Bodigrim opened this issue Feb 19, 2022 · 2 comments

Comments

@Bodigrim
Copy link

The recent release of random-fu-0.3.0.0 breaks lambdabot:

$ cabal build -w ghc-8.10 lambdabot-core
Build profile: -w ghc-8.10.6 -O1
In order, the following will be built (use -v for more details):
 - lambdabot-core-5.3.0.2 (lib) (first run)
Preprocessing library for lambdabot-core-5.3.0.2..
Building library for lambdabot-core-5.3.0.2..
[ 6 of 32] Compiling Lambdabot.Util

src/Lambdabot/Util.hs:66:15: error:
    • Could not deduce (StatefulGen g0 IO)
        arising from a use of ‘sample’
      from the context: MonadIO m
        bound by the type signature for:
                   random :: forall (m :: * -> *) a. MonadIO m => [a] -> m a
        at src/Lambdabot/Util.hs:65:1-33
      The type variable ‘g0’ is ambiguous
      These potential instances exist:
        three instances involving out-of-scope types
        (use -fprint-potential-instances to see them all)
    • In the first argument of ‘(.)’, namely ‘sample’
      In the second argument of ‘(.)’, namely ‘sample . randomElement’
      In the expression: io . sample . randomElement
   |
66 | random = io . sample . randomElement
   |               ^^^^^^
@Bodigrim
Copy link
Author

As a Hackage trustee I made revisions, prohibiting unbuildable configurations, e. g., https://hackage.haskell.org/package/lambdabot-core-5.3.0.2/revisions/

@int-e
Copy link
Member

int-e commented Feb 22, 2022

Thanks for the heads-up and the revisions!

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