haskell - Issue using Hoe from cabal sandbox - System.Random not found -


i'm trying use hoe utility cabal sandbox , presented following error:

lyndon@endpin ~/haskell-sandboxes/hoe-1.0.1 ./.cabal-sandbox/bin/hoe head compile error: <no location info>:     not find module ‘system.random’     use -v see list of files searched for. 

i believe due hoe using hint interpret expressions @ runtime, , part of this, expecting able load globally installed modules. however, since i'm using cabal-sandbox, modules installed locally.

i've attempted environment variables can use specify location of random module ./.cabal-sandbox/lib/x86_64-osx-ghc-7.8.3/random-1.1, nothing obvious has appeared.

22070308 suggested haskell_package_sandbox might help, doesn't seem to.

i came across solution

setting ghc_package_path include sandbox, , default package location:

lyndon@endpin ~/haskell-sandboxes/hoe-1.0.1 find ~/ghc_versions/ghc-7.8.3/ | grep package.cache /users/lyndon/ghc_versions/ghc-7.8.3//lib/ghc-7.8.3/package.conf.d/package.cache lyndon@endpin ~/haskell-sandboxes/hoe-1.0.1 ghc_package_path=~/ghc_versions/ghc-7.8.3//lib/ghc-7.8.3/package.conf.d:./.cabal-sandbox/x86_64-osx-ghc-7.8.3-packages.conf.d ./.cabal-sandbox/bin/hoe head asdf 'a' 

Comments

Popular posts from this blog

python - Mongodb How to add addtional information when aggregating? -

java - Spring Data JPA: Why findOne(id) executing delete query internally? -

java - Incorrect order of records in M-M relationship in hibernate -