Reputation: 18909
I'm wondering if there is an environment variable where I can set default GHC options, such as -fwarn-incomplete-patterns
, -fwarn-incomplete-uni-patterns
or -Wall
, analogous to CFLAGS
.
I've couldn't find anything in google, and the man
page only revealed GHCRTS
, but not sure if that's the variable I'm looking for.
Upvotes: 2
Views: 687
Reputation: 48581
No, there is not. I opened GHC Trac ticket #9500 requesting this a few months ago, but it hasn't attracted much attention. Frankly, even I don't think it would be such a terrifically valuable feature. But if you want to try implementing it, you're more than welcome to!
Upvotes: 4