From f3d043759a41fb2c981d6531720a804f3e2d8390 Mon Sep 17 00:00:00 2001 From: sof Date: Thu, 5 Jun 1997 20:35:57 +0000 Subject: [PATCH] [project @ 1997-06-05 20:35:57 by sof] Recognise SOURCE pragma for imports --- ghc/compiler/reader/ReadPrefix.lhs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ghc/compiler/reader/ReadPrefix.lhs b/ghc/compiler/reader/ReadPrefix.lhs index 4c7c829..c14fa70 100644 --- a/ghc/compiler/reader/ReadPrefix.lhs +++ b/ghc/compiler/reader/ReadPrefix.lhs @@ -901,11 +901,11 @@ rdImport :: ParseTree -> UgnM RdrNameImportDecl rdImport pt - = rdU_binding pt `thenUgn` \ (U_import imod iqual ias ispec srcline) -> + = rdU_binding pt `thenUgn` \ (U_import imod iqual ias ispec isrc srcline) -> mkSrcLocUgn srcline $ \ src_loc -> wlkMaybe rdU_stringId ias `thenUgn` \ maybe_as -> wlkMaybe rd_spec ispec `thenUgn` \ maybe_spec -> - returnUgn (ImportDecl imod (cvFlag iqual) maybe_as maybe_spec src_loc) + returnUgn (ImportDecl imod (cvFlag iqual) (cvFlag isrc) maybe_as maybe_spec src_loc) where rd_spec pt = rdU_either pt `thenUgn` \ spec -> case spec of -- 1.7.10.4