Runtime Haskell interpreter

#5Hint does not see packages when used in a sandbox

When building a project in a sandbox using hint, importing any sandboxed module will fail. There are also some tries how to fix it, see: https://github.com/gelisam/hawk/blob/d3d6734d3402668d42cc390b0573acea43ecdaa1/src/System/Console/Hawk/Sandbox.hs

  • I also have this problem. As a work around you can set up GHC_PACKAGE_PATH in sandbox, for example like this

    export GHC_PACKAGE_PATH="$(cabal sandbox hc-pkg list 2>/dev/null | grep : | tac | sed 's/://' | paste -d: - -)