summaryrefslogtreecommitdiff
path: root/compiler/GHC/Driver/Session.hs
diff options
context:
space:
mode:
authorAndrei Barbu <andrei@0xab.com>2021-09-30 17:19:36 -0400
committerMarge Bot <ben+marge-bot@smart-cactus.org>2021-12-15 16:33:17 -0500
commitf5a0b408c7e4ef71221eea3ea80ea250fbb28e18 (patch)
tree31b305405145c022d6aadfd512e83c3184330365 /compiler/GHC/Driver/Session.hs
parent45bd630886157fbe4856594e098202808aedbdd0 (diff)
downloadhaskell-f5a0b408c7e4ef71221eea3ea80ea250fbb28e18.tar.gz
Plugin load order should follow the commandline order (fixes #17884)
In the past the order was reversed because flags are consed onto a list. No particular behavior was documented. We now reverse the flags and document the behavior.
Diffstat (limited to 'compiler/GHC/Driver/Session.hs')
-rw-r--r--compiler/GHC/Driver/Session.hs2
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler/GHC/Driver/Session.hs b/compiler/GHC/Driver/Session.hs
index 33b27c2f9f..3af4ede9bf 100644
--- a/compiler/GHC/Driver/Session.hs
+++ b/compiler/GHC/Driver/Session.hs
@@ -573,6 +573,8 @@ data DynFlags = DynFlags {
-- Plugins
pluginModNames :: [ModuleName],
+ -- ^ the @-fplugin@ flags given on the command line, in *reverse*
+ -- order that they're specified on the command line.
pluginModNameOpts :: [(ModuleName,String)],
frontendPluginOpts :: [String],
-- ^ the @-ffrontend-opt@ flags given on the command line, in *reverse*