aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsimonmar <unknown>2004-03-25 10:01:42 +0000
committersimonmar <unknown>2004-03-25 10:01:42 +0000
commitdcf55a8de3bf87ce02325118159634ad8efc2e0f (patch)
treed6893c013a35fd91f01ce155f4a6d3982feb1f33
parent6a8575c78baee0e16c612ddb6fb56267236fa743 (diff)
[haddock @ 2004-03-25 10:01:42 by simonmar]
Fix duplicate instance bug
-rw-r--r--src/Main.hs3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/Main.hs b/src/Main.hs
index bf1350ec..9106bffb 100644
--- a/src/Main.hs
+++ b/src/Main.hs
@@ -1098,8 +1098,7 @@ collectInstances mod_ifaces
ty_inst_pairs = [ (nm, [(ctxt,(cls,args))])
| HsInstDecl _ ctxt (cls,args) _ <- all_instances,
- arg <- args,
- nm <- freeTyCons arg
+ nm <- nub (concat (map freeTyCons args))
]
-- -----------------------------------------------------------------------------