From 190f24892156953d73b55401d0467a6f1a88ce5d Mon Sep 17 00:00:00 2001 From: "davve@dtek.chalmers.se" Date: Thu, 5 Oct 2006 22:02:58 +0000 Subject: Merge Haddock comment support from ghc.haddock -- big patch --- compiler/deSugar/MatchCon.lhs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'compiler/deSugar/MatchCon.lhs') diff --git a/compiler/deSugar/MatchCon.lhs b/compiler/deSugar/MatchCon.lhs index fd840e6f93..c4c38b163f 100644 --- a/compiler/deSugar/MatchCon.lhs +++ b/compiler/deSugar/MatchCon.lhs @@ -10,7 +10,7 @@ module MatchCon ( matchConFamily ) where import {-# SOURCE #-} Match ( match ) -import HsSyn ( Pat(..), LPat, HsConDetails(..) ) +import HsSyn ( Pat(..), LPat, HsConDetails(..), HsRecField(..) ) import DsBinds ( dsLHsBinds ) import DataCon ( DataCon, dataConInstOrigArgTys, dataConEqSpec, dataConFieldLabels, dataConSourceArity ) @@ -132,7 +132,7 @@ conArgPats data_con arg_tys (RecCon rpats) -- mk_pat picks a WildPat of the appropriate type for absent fields, -- and the specified pattern for present fields mk_pat lbl arg_ty - = case [ pat | (sel_id,pat) <- rpats, idName (unLoc sel_id) == lbl] of + = case [ pat | HsRecField sel_id pat _ <- rpats, idName (unLoc sel_id) == lbl ] of (pat:pats) -> ASSERT( null pats ) unLoc pat [] -> WildPat arg_ty \end{code} -- cgit v1.2.1