Skip to content
Snippets Groups Projects
Commit f3d04375 authored by sof's avatar sof
Browse files

[project @ 1997-06-05 20:35:57 by sof]

Recognise SOURCE pragma for imports
parent cea181aa
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment