diff options
author | Adam Chlipala <adam@chlipala.net> | 2016-02-07 19:59:10 -0500 |
---|---|---|
committer | Adam Chlipala <adam@chlipala.net> | 2016-02-07 19:59:10 -0500 |
commit | 5579b84a97cb942fdfd4c4898793f9de95bc03d1 (patch) | |
tree | 2fd60da2fe681fa69d712efdeb36b720c72b9820 /src/mono_util.sml | |
parent | a777dd13f4075418ec883f4eb42e5de1739d50d1 (diff) |
Merge PVar and PWild, to get more reasonable type-class resolution
Diffstat (limited to 'src/mono_util.sml')
-rw-r--r-- | src/mono_util.sml | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mono_util.sml b/src/mono_util.sml index 5d7eb164..fc1a2bcb 100644 --- a/src/mono_util.sml +++ b/src/mono_util.sml @@ -235,8 +235,7 @@ fun mapfoldB {typ = fc, exp = fe, bind} = let fun pb ((p, _), ctx) = case p of - PWild => ctx - | PVar (x, t) => bind (ctx, RelE (x, t)) + PVar (x, t) => bind (ctx, RelE (x, t)) | PPrim _ => ctx | PCon (_, _, NONE) => ctx | PCon (_, _, SOME p) => pb (p, ctx) |