Cabal woe

Oleg Grenrus oleg.grenrus at iki.fi
Tue Jul 9 14:07:07 UTC 2024


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



More information about the ghc-devs mailing list