diff options
author | davve@dtek.chalmers.se <unknown> | 2006-10-05 22:02:58 +0000 |
---|---|---|
committer | davve@dtek.chalmers.se <unknown> | 2006-10-05 22:02:58 +0000 |
commit | 190f24892156953d73b55401d0467a6f1a88ce5d (patch) | |
tree | 13f12634d96239b4a6d76a5f6448ea670f8824ec /compiler/deSugar/MatchCon.lhs | |
parent | aa8e9422469f1ccb3c52444fa56aae34de799334 (diff) | |
download | haskell-190f24892156953d73b55401d0467a6f1a88ce5d.tar.gz |
Merge Haddock comment support from ghc.haddock -- big patch
Diffstat (limited to 'compiler/deSugar/MatchCon.lhs')
-rw-r--r-- | compiler/deSugar/MatchCon.lhs | 4 |
1 files changed, 2 insertions, 2 deletions
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} |