Closed mcandre closed 12 years ago
Couldn't match expected type `RVar Char'
against inferred type `random-fu-0.1.4:Data.Random.RVar.RVar Char'
This part looks suspect to me; something in your ghc-pkg database appears to still want an old version of random-fu. Is 'choice' the one from "random-extras"? If so, I'm not sure whether the author of that package maintains it, but its cabal file demands random-fu version 0.1.*, so that's probably the problem. As far as I know, though, most of its "extras" are already in random-fu, so you may not need it anyway. "choice", for example, does the same thing as "randomElement". If there's a performance difference or some other reason to prefer the random-extras version, I'd like to hear about that anyway so I can fix mine ;)
Thanks, randomElement does exactly that, and I was able to remove random-extras as a dependency from genetics.
Something may have changed in the random-fu API, because my Haskell project, genetics, fails to compile in Ubuntu.
Specs:
Trace: