~ubuntu-branches/ubuntu/precise/ghc/precise

« back to all changes in this revision

Viewing changes to compiler/deSugar/Match.lhs-boot

  • Committer: Bazaar Package Importer
  • Author(s): Joachim Breitner
  • Date: 2011-01-17 12:49:24 UTC
  • Revision ID: james.westby@ubuntu.com-20110117124924-do1pym1jlf5o636m
Tags: upstream-7.0.1
ImportĀ upstreamĀ versionĀ 7.0.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
\begin{code}
 
2
module Match where
 
3
import Var      ( Id )
 
4
import TcType   ( Type )
 
5
import DsMonad  ( DsM, EquationInfo, MatchResult )
 
6
import CoreSyn  ( CoreExpr )
 
7
import HsSyn    ( LPat, HsMatchContext, MatchGroup )
 
8
import Name     ( Name )
 
9
 
 
10
match   :: [Id]
 
11
        -> Type
 
12
        -> [EquationInfo]
 
13
        -> DsM MatchResult
 
14
 
 
15
matchWrapper
 
16
        :: HsMatchContext Name
 
17
        -> MatchGroup Id
 
18
        -> DsM ([Id], CoreExpr)
 
19
 
 
20
matchSimply
 
21
        :: CoreExpr
 
22
        -> HsMatchContext Name
 
23
        -> LPat Id
 
24
        -> CoreExpr
 
25
        -> CoreExpr
 
26
        -> DsM CoreExpr
 
27
 
 
28
matchSinglePat
 
29
        :: CoreExpr
 
30
        -> HsMatchContext Name
 
31
        -> LPat Id
 
32
        -> Type
 
33
        -> MatchResult
 
34
        -> DsM MatchResult
 
35
\end{code}