tweag / monad-bayes

A library for probabilistic programming in Haskell.
MIT License
410 stars 62 forks source link

Can't access `mcmcP` output because `MHResult` is in a hidden module #315

Open rihardsk opened 1 year ago

rihardsk commented 1 year ago

Not exactly a bug, but probably an oversight?

Sampling with mcmcP produces samples wrapped in MHResult, but I can't access anything because MHResult (and Trace that's contained within) is defined in Control.Monad.Bayes.Traced.Common and monad-bayes doesn't export that module (there are no re-exports in other modules either).

turion commented 1 year ago

True. This should be taken into account when fixing https://github.com/tweag/monad-bayes/issues/260.