You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ 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
| ^^^^^^
The text was updated successfully, but these errors were encountered:
The recent release of
random-fu-0.3.0.0
breakslambdabot
:The text was updated successfully, but these errors were encountered: