1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
module TcExpr where
import Name
import HsSyn ( HsExpr, LHsExpr, SyntaxExpr )
import TcType ( TcRhoType, TcSigmaType, SyntaxOpType, ExpType, ExpRhoType )
import TcRnTypes( TcM, CtOrigin )
import HsExtension ( GhcRn, GhcTcId )
tcPolyExpr ::
LHsExpr GhcRn
-> TcSigmaType
-> TcM (LHsExpr GhcTcId)
tcMonoExpr, tcMonoExprNC ::
LHsExpr GhcRn
-> ExpRhoType
-> TcM (LHsExpr GhcTcId)
tcInferSigma, tcInferSigmaNC ::
LHsExpr GhcRn
-> TcM (LHsExpr GhcTcId, TcSigmaType)
tcInferRho ::
LHsExpr GhcRn
-> TcM (LHsExpr GhcTcId, TcRhoType)
tcSyntaxOp :: CtOrigin
-> SyntaxExpr GhcRn
-> [SyntaxOpType] -- ^ shape of syntax operator arguments
-> ExpType -- ^ overall result type
-> ([TcSigmaType] -> TcM a) -- ^ Type check any arguments
-> TcM (a, SyntaxExpr GhcTcId)
tcSyntaxOpGen :: CtOrigin
-> SyntaxExpr GhcRn
-> [SyntaxOpType]
-> SyntaxOpType
-> ([TcSigmaType] -> TcM a)
-> TcM (a, SyntaxExpr GhcTcId)
tcCheckId :: Name -> ExpRhoType -> TcM (HsExpr GhcTcId)
|