Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doesn't work for benchmarks #104

Open
brandon-leapyear opened this issue Oct 2, 2020 · 1 comment
Open

Doesn't work for benchmarks #104

brandon-leapyear opened this issue Oct 2, 2020 · 1 comment

Comments

@brandon-leapyear
Copy link
Collaborator

brandon-leapyear commented Oct 2, 2020

Using hint using non-base packages currently fails in benchmarks. For more details, see the stack issue:

commercialhaskell/stack#3462

@brandon-leapyear
Copy link
Collaborator Author

brandon-leapyear commented Oct 2, 2020

This is an old work account. Please reference @brandonchinn178 for all future communication


I'm currently working around this using:

import qualified Language.Haskell.Interpreter as Hint

runInterpreter :: (MonadIO m, MonadMask m) => Hint.InterpreterT IO a -> IO (Either Hint.InterpreterError a)
runInterpreter m = do
  packagePath <- head . lines <$> readProcess "stack" ["path", "--ghc-package-path"] ""
  setEnv "GHC_PACKAGE_PATH" packagePath
  Hint.runInterpreter m

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant