hint icon indicating copy to clipboard operation
hint copied to clipboard

Doesn't work for benchmarks

Open brandon-leapyear opened this issue 5 years ago • 1 comments

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

https://github.com/commercialhaskell/stack/issues/3462

brandon-leapyear avatar Oct 02 '20 21:10 brandon-leapyear

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


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

brandon-leapyear avatar Oct 02 '20 21:10 brandon-leapyear