X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=compiler%2Ftypecheck%2FTcExpr.lhs;h=531b1b0c6477b74506e4fa08a64aafc90abfc149;hb=25bff7fe1a22edbafa188af8d844c67057fa5eb8;hp=03e06874c8430b5c89d7ee0a2f406eaad3e15dce;hpb=d2ce0f52d42edf32bb9f13796e6ba6edba8bd516;p=ghc-hetmet.git diff --git a/compiler/typecheck/TcExpr.lhs b/compiler/typecheck/TcExpr.lhs index 03e0687..531b1b0 100644 --- a/compiler/typecheck/TcExpr.lhs +++ b/compiler/typecheck/TcExpr.lhs @@ -311,7 +311,7 @@ tcExpr (SectionR op arg2) res_ty tcExpr (SectionL arg1 op) res_ty = do { (op', op_ty) <- tcInferFun op ; dflags <- getDOpts -- Note [Left sections] - ; let n_reqd_args | dopt Opt_PostfixOperators dflags = 1 + ; let n_reqd_args | xopt Opt_PostfixOperators dflags = 1 | otherwise = 2 ; (co_fn, (arg1_ty:arg_tys), op_res_ty) <- unifyOpFunTys op n_reqd_args op_ty