From 8e14697c6e2cccc0a632233ffe95505765db2eef Mon Sep 17 00:00:00 2001 From: simonpj Date: Wed, 2 Mar 2005 18:15:36 +0000 Subject: [PATCH] [project @ 2005-03-02 18:15:36 by simonpj] Clarification re overlapping instances; merge to stable --- ghc/docs/users_guide/glasgow_exts.xml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/ghc/docs/users_guide/glasgow_exts.xml b/ghc/docs/users_guide/glasgow_exts.xml index b986247..a25d42e 100644 --- a/ghc/docs/users_guide/glasgow_exts.xml +++ b/ghc/docs/users_guide/glasgow_exts.xml @@ -1731,7 +1731,7 @@ means Instance declarations - + Overlapping instances In general, GHC requires that that it be unambiguous which instance @@ -1787,6 +1787,11 @@ So GHC rejects the program. If you add the flag + +Because overlaps are checked and reported lazily, as described above, you need +the in the module that calls +the overloaded function, rather than in the module that defines it. + -- 1.7.10.4