Cabal woe

Brandon Allbery allbery.b at gmail.com
Tue Jul 9 14:14:53 UTC 2024


You can also `cabal init -n` to get a minimal cabal file, then `cabal repl
-b primitive` or whatever.

On Tue, Jul 9, 2024 at 10:12 AM Oleg Grenrus <oleg.grenrus at iki.fi> wrote:

>
> On 9.7.2024 15.23, Sebastian Graf wrote:
> > I can't simply pass `-fforce-recomp -ddump-simpl -O`
>
> You can, `cabal build --ghc-options= "-fforce-recomp -ddump-simpl -O"`
> should work (though it applies to all packages).
>
>  > and remember all the fields that need to be set. (
>
> `cabal init` is your friend. That said, there are very little fields to
> be set for minimal package, `cabal-version, name, version` and the
> library pragma with `build-depends` and `exposed-modules`.
>
> After you have done such package few times, you will remember those
> easily. I'd argue a lot more easily that remembering how to use `cabal
> install --lib` properly.
>
> - Oleg
>
> _______________________________________________
> ghc-devs mailing list
> ghc-devs at haskell.org
> http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs
>


-- 
brandon s allbery kf8nh
allbery.b at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/ghc-devs/attachments/20240709/eddd7989/attachment.html>


More information about the ghc-devs mailing list