On 9.7.2024 16.35, Simon Peyton Jones wrote:
Would it be possible to support the simple story above, as well?

TL;DR the GHC developers (e.g. you, richard, sebastian) are virtually the only group of people who want to invoke GHC manually, from your POV the story might seem simple, but in grand scheme of things it's niche and obscure. `cabal-install` (and `stack` FWIW) don't want you to have any (implicit) state. That's not great for "real world projects".

You may want to read through https://github.com/haskell/cabal/issues/6481 issue, which is kind of an opener towards support what you want. But again, it's niche feature.

Creating a package as Matt proposes doesn't take much time (once you have done it few times), and allows to easily share the snippet (as everything can be contained inside package or/and project files).

- Oleg

_______________________________________________
ghc-devs mailing list
ghc-devs@haskell.org
http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs

Reply via email to