X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=compiler%2Ftypecheck%2FTcDefaults.lhs;h=9da5d96fb550ac47c596a09878745dcfe5fd6950;hb=80ef1f06253f1a20a63816c295e180e47cd9a347;hp=43f23a329ed6cf4b991cdb46f5e460a9761e67a0;hpb=7fc749a43b4b6b85d234fa95d4928648259584f4;p=ghc-hetmet.git diff --git a/compiler/typecheck/TcDefaults.lhs b/compiler/typecheck/TcDefaults.lhs index 43f23a3..9da5d96 100644 --- a/compiler/typecheck/TcDefaults.lhs +++ b/compiler/typecheck/TcDefaults.lhs @@ -50,7 +50,7 @@ tcDefaults [] -- defaultDefaultTys tcDefaults [L locn (DefaultDecl [])] - = returnM (Just []) -- Default declaration specifying no types + = return (Just []) -- Default declaration specifying no types tcDefaults [L locn (DefaultDecl mono_tys)] = setSrcSpan locn $ @@ -61,7 +61,7 @@ tcDefaults [L locn (DefaultDecl mono_tys)] ; let deflt_clss | ovl_str = [num_class, is_str_class] | otherwise = [num_class] - ; tau_tys <- mappM (tc_default_ty deflt_clss) mono_tys + ; tau_tys <- mapM (tc_default_ty deflt_clss) mono_tys ; return (Just tau_tys) }