turion / rhine

Haskell Functional Reactive Programming framework with type-level clocks
http://hackage.haskell.org/package/rhine
118 stars 21 forks source link

Running Rhine-Bayes #197

Closed reubenharry closed 1 year ago

reubenharry commented 1 year ago

Should I be able to build rhine-bayes (with either cabal or stack) in the current dev_monad_bayes branch?

Running either cabal build or stack build gives errors for me.

 → cabal build                                                                              
Warning: The package list for 'hackage.haskell.org' is 59 days old.
Run 'cabal update' to get the latest list of available packages.
Resolving dependencies...
Error: cabal: Could not resolve dependencies:
[__0] trying: rhine-0.8.0.1 (user goal)
[__1] next goal: base (dependency of rhine)
[__1] rejecting: base-4.16.4.0/installed-4.16.4.0 (conflict: rhine =>
base>=4.13 && <4.16)
[__1] skipping: base-4.17.0.0, base-4.16.4.0, base-4.16.3.0, base-4.16.2.0,
base-4.16.1.0, base-4.16.0.0 (has the same characteristics that caused the
previous version to fail: excluded by constraint '>=4.13 && <4.16' from
'rhine')
[__1] rejecting: base-4.15.1.0, base-4.15.0.0, base-4.14.3.0, base-4.14.2.0,
base-4.14.1.0, base-4.14.0.0, base-4.13.0.0, base-4.12.0.0, base-4.11.1.0,
base-4.11.0.0, base-4.10.1.0, base-4.10.0.0, base-4.9.1.0, base-4.9.0.0,
base-4.8.2.0, base-4.8.1.0, base-4.8.0.0, base-4.7.0.2, base-4.7.0.1,
base-4.7.0.0, base-4.6.0.1, base-4.6.0.0, base-4.5.1.0, base-4.5.0.0,
base-4.4.1.0, base-4.4.0.0, base-4.3.1.0, base-4.3.0.0, base-4.2.0.2,
base-4.2.0.1, base-4.2.0.0, base-4.1.0.0, base-4.0.0.0, base-3.0.3.2,
base-3.0.3.1 (constraint from non-upgradeable package requires installed
instance)
[__1] fail (backjumping, conflict set: base, rhine)
After searching the rest of the dependency tree exhaustively, these were the
goals I've had most trouble fulfilling: base, rhine
turion commented 1 year ago

Ah, it seems I just forgot to bump the version bounds for base. Both rhine-bayes and dunai-bayes should be fine for GHC 9.2. Hang on.

turion commented 1 year ago

Ok, can you pull the branch, and also pull the latest master on dunai-bayes?

reubenharry commented 1 year ago

OK, it works! However, gloss doesn't work with -threaded on mac, so I had to change that.

turion commented 1 year ago

Oh, that's a separate issue, not even related to rhine-bayes. Is there an upstream issue about that for gloss?