…gajaga-fix_ghc_path Conflicts: dyre.cabal
By default Dyre included current directory in the list of include dirs. It causes a problem when running configurable program in its own project directory (particularly natural for an editor.) This patch adds an option includeCurrentDirectory that stops it from happening, if set to False. Behaviour is unchanged by default.
Normally GHC runtime system arguments are processed before the program, and invisible to System.Environment.getArgs. We use GHC.Environment.getFullArgs to forward them, and add an option rtsOptsHandling to describe whether they should be appended by any other, or replaced during relaunch.
We only really need to have the canonical path for comparison purposes in one place, and I've heard that it caused a bug for someone when it was always canonicalized.