X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=compiler%2Frename%2FRnTypes.lhs;h=61c039cc22fc51a773c9b971e66aec6eb0f3dcc7;hb=8ec978161d50e476e327b59bdf1a2d5e57705609;hp=3086b946d3da93503ff037fe7322287ff0606065;hpb=432b9c9322181a3644083e3c19b7e240d90659e7;p=ghc-hetmet.git diff --git a/compiler/rename/RnTypes.lhs b/compiler/rename/RnTypes.lhs index 3086b94..61c039c 100644 --- a/compiler/rename/RnTypes.lhs +++ b/compiler/rename/RnTypes.lhs @@ -159,7 +159,7 @@ rnHsType doc (HsListTy ty) = do rnHsType doc (HsKindSig ty k) = do { kind_sigs_ok <- doptM Opt_KindSignatures - ; checkM kind_sigs_ok (addErr (kindSigErr ty)) + ; unless kind_sigs_ok (addErr (kindSigErr ty)) ; ty' <- rnLHsType doc ty ; return (HsKindSig ty' k) } @@ -610,7 +610,7 @@ rnSplice :: HsSplice RdrName -> RnM (HsSplice Name, FreeVars) rnSplice (HsSplice n expr) = do { checkTH expr "splice" ; loc <- getSrcSpanM - ; [n'] <- newLocalsRn [L loc n] + ; n' <- newLocalBndrRn (L loc n) ; (expr', fvs) <- rnLExpr expr -- Ugh! See Note [Splices] above