Closed sjakobi closed 2 years ago
@sjakobi is there a PR or migration guide?
@sjakobi is there a PR or migration guide?
Neither, I'm afraid. The relevant change in mtl is documented here: https://github.com/haskell/mtl/pull/114/files
The fix is to import the removed functions directly from Control.Monad
etc.
random-source
is also affected:
src/Data/Random/Source/Internal/TH.hs:363:17: error:
Variable not in scope:
when
:: Bool
-> ReaderT Context (FD.Implementation Double) ()
-> ReaderT Context (FD.Implementation Double) a0
|
363 | when intIs64 (cost 1e-2)
| ^^^^
src/Data/Random/Source/Internal/TH.hs:394:17: error:
Variable not in scope:
when
:: Bool
-> ReaderT Context (FD.Implementation Double) ()
-> ReaderT Context (FD.Implementation Double) a1
|
394 | when (not intIs64) (cost 1e-2)
| ^^^^
As a Hackage trustee I have revised the affected versions on Hackage. See e.g. https://hackage.haskell.org/package/random-source-0.3.0.11
I have also revised rvar
: https://hackage.haskell.org/package/rvar-0.3.0.0/revisions/
https://github.com/haskell-numerics/random-fu/pull/86 closes this. random-source
is deprecated.