import TcRnMonad
import TcHsType ( tcHsSigType, UserTypeCtxt(..) )
-import TcExpr ( tcCheckSigma )
+import TcExpr ( tcPolyExpr )
import ForeignCall ( CCallConv(..) )
import ErrUtils ( Message )
addErrCtxt (foreignDeclCtxt fo) $
tcHsSigType (ForSigCtxt nm) hs_ty `thenM` \ sig_ty ->
- tcCheckSigma (nlHsVar nm) sig_ty `thenM` \ rhs ->
+ tcPolyExpr (nlHsVar nm) sig_ty `thenM` \ rhs ->
tcCheckFEType sig_ty spec `thenM_`