[project @ 2004-10-18 15:38:27 by simonmar]
authorsimonmar <unknown>
Mon, 18 Oct 2004 15:38:27 +0000 (15:38 +0000)
committersimonmar <unknown>
Mon, 18 Oct 2004 15:38:27 +0000 (15:38 +0000)
Fix a source location bug (by deleting a line of code!)

ghc/compiler/typecheck/TcExpr.lhs

index 42fd249..03d346f 100644 (file)
@@ -363,7 +363,6 @@ tc_expr expr@(RecordCon con@(L loc con_name) rbinds) res_ty
        -- Check for missing fields
     checkMissingFields data_con rbinds         `thenM_` 
 
        -- Check for missing fields
     checkMissingFields data_con rbinds         `thenM_` 
 
-    getSrcSpanM                                        `thenM` \ loc ->
     returnM (RecordConOut data_con (L loc con_expr) rbinds')
 
 -- The main complication with RecordUpd is that we need to explicitly
     returnM (RecordConOut data_con (L loc con_expr) rbinds')
 
 -- The main complication with RecordUpd is that we need to explicitly