Configuring mwc-random-0.13.3.0...
Building mwc-random-0.13.3.0...
Preprocessing library mwc-random-0.13.3.0...
[1 of 3] Compiling System.Random.MWC ( System/Random/MWC.hs, dist/dist-sandbox-13ddcb59/build/System/Random/MWC.o )
System/Random/MWC.hs:440:3:
Could not deduce (Control.Monad.Primitive.PrimBase m)
arising from a use of ‘unsafePrimToIO’
from the context (PrimMonad m)
bound by the type signature for
withSystemRandom :: PrimMonad m =>
(Gen (PrimState m) -> m a) -> IO a
at System/Random/MWC.hs:431:21-69
Possible fix:
add (Control.Monad.Primitive.PrimBase m) to the context of
the type signature for
withSystemRandom :: PrimMonad m =>
(Gen (PrimState m) -> m a) -> IO a
In the expression: unsafePrimToIO
In a stmt of a 'do' block:
unsafePrimToIO $ initialize (I.fromList seed) >>= act
In the expression:
do { seed <- acquireSeedSystem
E.catch \ (_ :: E.IOException) -> do { ... };
unsafePrimToIO $ initialize (I.fromList seed) >>= act }
Configuring mwc-random-0.13.3.0... Building mwc-random-0.13.3.0... Preprocessing library mwc-random-0.13.3.0... [1 of 3] Compiling System.Random.MWC ( System/Random/MWC.hs, dist/dist-sandbox-13ddcb59/build/System/Random/MWC.o )
System/Random/MWC.hs:440:3: Could not deduce (Control.Monad.Primitive.PrimBase m) arising from a use of ‘unsafePrimToIO’ from the context (PrimMonad m) bound by the type signature for withSystemRandom :: PrimMonad m => (Gen (PrimState m) -> m a) -> IO a at System/Random/MWC.hs:431:21-69 Possible fix: add (Control.Monad.Primitive.PrimBase m) to the context of the type signature for withSystemRandom :: PrimMonad m => (Gen (PrimState m) -> m a) -> IO a In the expression: unsafePrimToIO In a stmt of a 'do' block: unsafePrimToIO $ initialize (I.fromList seed) >>= act In the expression: do { seed <- acquireSeedSystem
E.catch
\ (_ :: E.IOException) -> do { ... }; unsafePrimToIO $ initialize (I.fromList seed) >>= act }