summaryrefslogtreecommitdiff
path: root/compiler/parser/ParserCore.y
diff options
context:
space:
mode:
Diffstat (limited to 'compiler/parser/ParserCore.y')
-rw-r--r--compiler/parser/ParserCore.y4
1 files changed, 3 insertions, 1 deletions
diff --git a/compiler/parser/ParserCore.y b/compiler/parser/ParserCore.y
index 02a6c7b91d..a9669b23ec 100644
--- a/compiler/parser/ParserCore.y
+++ b/compiler/parser/ParserCore.y
@@ -10,6 +10,7 @@ import OccName
import Kind( Kind(..) )
import Name( nameOccName, nameModule )
import Module
+import PackageConfig ( mainPackageId )
import ParserCoreUtils
import LexCore
import Literal
@@ -72,7 +73,8 @@ module :: { HsExtCore RdrName }
: '%module' modid tdefs vdefgs { HsExtCore $2 $3 $4 }
modid :: { Module }
- : CNAME { mkModuleFS (mkFastString $1) }
+ : CNAME { mkModule mainPackageId -- ToDo: wrong
+ (mkModuleNameFS (mkFastString $1)) }
-------------------------------------------------------------
-- Type and newtype declarations are in HsSyn syntax