aboutsummaryrefslogtreecommitdiff
path: root/src/Main.hs
diff options
context:
space:
mode:
Diffstat (limited to 'src/Main.hs')
-rw-r--r--src/Main.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Main.hs b/src/Main.hs
index 92319d3e..a83376f3 100644
--- a/src/Main.hs
+++ b/src/Main.hs
@@ -1079,8 +1079,8 @@ collectInstances
-> Map HsQName [InstHead] -- maps class/type names to instances
collectInstances mod_ifaces
- = Map.fromListWith (++) ty_inst_pairs `Map.union`
- Map.fromListWith (++) class_inst_pairs
+ = Map.fromListWith (flip (++)) ty_inst_pairs `Map.union`
+ Map.fromListWith (flip (++)) class_inst_pairs
where
all_instances = concat (map (iface_insts.snd) mod_ifaces)