diff options
author | simonmar <unknown> | 2004-03-25 10:01:42 +0000 |
---|---|---|
committer | simonmar <unknown> | 2004-03-25 10:01:42 +0000 |
commit | dcf55a8de3bf87ce02325118159634ad8efc2e0f (patch) | |
tree | d6893c013a35fd91f01ce155f4a6d3982feb1f33 | |
parent | 6a8575c78baee0e16c612ddb6fb56267236fa743 (diff) |
[haddock @ 2004-03-25 10:01:42 by simonmar]
Fix duplicate instance bug
-rw-r--r-- | src/Main.hs | 3 |
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)) ] -- ----------------------------------------------------------------------------- |