Skip to content

Combined -odir/-hidir flag

Many of my command line invocations are:

ghc -odir obj -hidir obj ...

I nearly always set both -odir and -hidir to the same thing, typically to just ask for the temporary files to not crowd the code files. It would be useful if there was one combined flag, perhaps -tdir (temporary), which gave default values to both -odir and -hidir.

Another option (suggested by quicksilver) is that -hidir could default to -odir unless set explicitly - since .hi files are really just compiler details, as far as the user is concerned.

Trac metadata
Trac field Value
Version 6.8.2
Type FeatureRequest
TypeOfFailure OtherFailure
Priority normal
Resolution Unresolved
Component Driver
Test case
Differential revisions
BlockedBy
Related
Blocking
CC
Operating system Unknown
Architecture Unknown
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information