X-Git-Url: https://git.stderr.nl/gitweb?a=blobdiff_plain;f=NormalizeTools.hs;h=c36d85f2006f54aa84632c54afb4a9f40ce45efb;hb=f18e8ab055de511846f09efc7752628013142d0f;hp=7ccb4d1a119e8523d9a4c1a32560b69ccec31e59;hpb=570e26f7870fffb1b08fcf44c972b2152d942fc6;p=matthijs%2Fmaster-project%2Fc%CE%BBash.git diff --git a/NormalizeTools.hs b/NormalizeTools.hs index 7ccb4d1..c36d85f 100644 --- a/NormalizeTools.hs +++ b/NormalizeTools.hs @@ -58,8 +58,8 @@ mkTypeVar str kind = do -- works for both value and type level expressions, so it can return a Var or -- TyVar (which is just an alias for Var). mkBinderFor :: CoreExpr -> String -> TransformMonad Var.Var -mkBinderFor (Type ty) = mkTypeVar string (Type.typeKind ty) -mkBinderFor expr = mkInternalVar string (CoreUtils.exprType expr) +mkBinderFor (Type ty) string = mkTypeVar string (Type.typeKind ty) +mkBinderFor expr string = mkInternalVar string (CoreUtils.exprType expr) -- Creates a reference to the given variable. This works for both a normal -- variable as well as a type variable