hint
hint copied to clipboard
Runtime Haskell interpreter
Since ghc 8.10 (confirmed with ghc 8.10.4), `hint` (which I use through `mueval`) produces duplicate location information in parse errors: ``` $ mueval -e '+' #ghc 8.8.4 :1:1: error: parse...
currently, hint's package database is configured in the same way ghc is, via environment variables and `-package-db` arguments. This is super old-school, nowadays people use a `.cabal` file to specify...
it is possible to set the visible modules using `setImportsQ`; it would be nice to also be able to specify the visible packages (and maybe the list of package databases...
Hi, hint is for 3rd party running code provided by the end user, but I was not able to find how to control access to packages from script code. Let's...
It is easy to move those values from the interpreter to the enclosing program using `interpret`. But what about moving values from the enclosing program to the interpreter? If we...
I spent lots of time figuring out why searchPath is not working for me. I was expecting that searchPath prefixes file names of loadModules! I guess docs should be more...
I spent a couple of days trying to get Hint working on Nix and I've finally managed it with the help of @mchakravarty. Below is what was required, could you...
Minimal repro: 1. Write a file `Foo.hs` like ```hs module Foo where x :: Int x = 1 ``` 1. Run `stack ghci --package hint`, then in the shell, do:...
Using hint using non-base packages currently fails in benchmarks. For more details, see the stack issue: https://github.com/commercialhaskell/stack/issues/3462
memory leak
Even a simple `pure ()` uses more and more memory (on ghc-8.6.5, about 4 Kb per loop): ```haskell import Control.Monad import GHC.Stats import Language.Haskell.Interpreter import System.Mem printMemoryConsumption :: IO ()...