On my phone now so I can't go into deep detail. But the best route is to tell users to add your library to the packages list in their stack.yaml file. A simple explanation is that you have no way of knowing in advance which GHC version or library versions they'll want to build against.
--
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-stac...@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/283169e5-74a2-47f2-a32f-b4eebb9b0332%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
On my phone now so I can't go into deep detail. But the best route is to tell users to add your library to the packages list in their stack.yaml file. A simple explanation is that you have no way of knowing in advance which GHC version or library versions they'll want to build against.
To view this discussion on the web visit https://groups.google.com/d/msgid/haskell-stack/ddddf353-6d08-4fe9-ba8e-57648101ab91%40googlegroups.com.
Ah, I see, you're targeting the case where the user has a .hs file, not a complete .cabal project. Yes, you've got it nailed :)
I can't speak for others, but personally I don't understand your goals here, or what steps you're following to get these results.
To view this discussion on the web visit https://groups.google.com/d/msgid/haskell-stack/84f6d02d-67c5-45cc-844e-27d7a5b25e19%40googlegroups.com.
I can't speak for others, but personally I don't understand your goals here, or what steps you're following to get these results.
The original way we designed stack would have allowed this, but we ran into a bug on windows with absolute paths so stuck with relative paths.
If you generate a tarball and reference that instead, it should provide the behavior you're looking for by decompressing in a user directory.
Supporting file:// URLs seems like an easy extension to what we're already doing, and fits in with the work I did for custom snapshots
To view this discussion on the web visit https://groups.google.com/d/msgid/haskell-stack/CAOPS0rp65qQWeWD%2Bu%2B3PrNXGVAdrLXdDRyaWe_ZBYg%3D1RFYNVQ%40mail.gmail.com.