aboutsummaryrefslogtreecommitdiff
path: root/src/Main.hs
diff options
context:
space:
mode:
authorpanne <unknown>2005-01-16 12:58:08 +0000
committerpanne <unknown>2005-01-16 12:58:08 +0000
commitefb81da9576a5b4b9befab399a13efbb563b0f36 (patch)
treea65d52942a25ebb6dca90223454a1cc43620e00f /src/Main.hs
parent6ab20e84e1e6b1e8b97466753673ce3a875152f8 (diff)
[haddock @ 2005-01-16 12:58:03 by panne]
Correctly handle the new order of arguments for the combining function given to fromListWith.
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)