haskell / mwc-random

A very fast Haskell library for generating high quality pseudo-random numbers.
http://hackage.haskell.org/package/mwc-random
BSD 2-Clause "Simplified" License
55 stars 25 forks source link

Modernize #88

Closed lehins closed 4 months ago

lehins commented 11 months ago

This PR takes care of some minor issues that I've ran into that are a result of either newer ghc or newer dependency

Also usage of unsafeSTToPrim was uncalled for, there was nothing unsafe there. Switched to stToPrim

This PR discovered some sort of linker issue with doctests on newer MacOS, which unfortunately I have no idea how to fix:

System/Random/MWC.hs:30: failure in expression `g <- createSystemRandom'
expected: 
 but got: ld: warning: -undefined dynamic_lookup may not work with chained fixups
          ^

Examples: 33  Tried: 8  Errors: 0  Failures: 1
Shimuuar commented 4 months ago

Sorry I forgot about this PR. Some problems I fixed independently while updating benchmarks and rest are cherry-picked in #92.