Using hint with stack-installed packages

17 views
Skip to first unread message

Leonardo Taglialegne

unread,
Mar 22, 2017, 9:46:48 AM3/22/17
to haskell-stack
I'm developing an application which will use hint for runtime evaluation of some haskell code.

The application is divided into an exe and a lib, and I want to make the lib types accessible to the running code.

When I stack install the project, hint can't find the lib modules. Do you know how could I instruct it to look into the correct places? What are the correct places anyhow?

Should I simply wrap ghc myself?

Michael Snoyman

unread,
Mar 22, 2017, 12:54:50 PM3/22/17
to Leonardo Taglialegne, haskell-stack
I would imagine this is a matter of setting the appropriate package databases. I haven't played with hint in a while, but I think you can do that by setting GHC_PACKAGE_PATH. If you run `stack exec env`, you should see the correct value.

--
You received this message because you are subscribed to the Google Groups "haskell-stack" group.
To unsubscribe from this group and stop receiving emails from it, send an email to haskell-stack+unsubscribe@googlegroups.com.
To post to this group, send email to haskel...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/haskell-stack/98470c65-4ca3-472a-8bda-6be9286f206b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

miniBill

unread,
Mar 22, 2017, 1:32:30 PM3/22/17
to Michael Snoyman, haskell-stack
Thank you very much, this solved my problem perfectly
Reply all
Reply to author
Forward
0 new messages