summaryrefslogtreecommitdiff
path: root/compiler/parser/Parser.y.pp
diff options
context:
space:
mode:
Diffstat (limited to 'compiler/parser/Parser.y.pp')
-rw-r--r--compiler/parser/Parser.y.pp4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/parser/Parser.y.pp b/compiler/parser/Parser.y.pp
index d6793920a8..9803650842 100644
--- a/compiler/parser/Parser.y.pp
+++ b/compiler/parser/Parser.y.pp
@@ -480,9 +480,9 @@ export_subspec :: { Located ImpExpSubSpec }
: {- empty -} { L0 ImpExpAbs }
| '(' '..' ')' { LL ImpExpAll }
| '(' ')' { LL (ImpExpList []) }
- | '(' qcnames ')' { LL (ImpExpList $2) }
+ | '(' qcnames ')' { LL (ImpExpList (reverse $2)) }
-qcnames :: { [RdrName] }
+qcnames :: { [RdrName] } -- A reversed list
: qcnames ',' qcname_ext { unLoc $3 : $1 }
| qcname_ext { [unLoc $1] }