X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=docs%2Fusers_guide%2Fglasgow_exts.xml;h=7a918a8f49ad1908a59c085d54c1228f17d0a6a3;hb=bec18cb3a1dcbc70b0257a367091c9a5948da6f6;hp=3801f966f3493927d86a437b5fea7bf0d113d224;hpb=09c814ec2c4fa854165f98aff4d29a69cafdc92a;p=ghc-hetmet.git diff --git a/docs/users_guide/glasgow_exts.xml b/docs/users_guide/glasgow_exts.xml index 3801f96..7a918a8 100644 --- a/docs/users_guide/glasgow_exts.xml +++ b/docs/users_guide/glasgow_exts.xml @@ -140,7 +140,7 @@ documentation describes all the libraries that come with GHC. - + @@ -617,7 +617,7 @@ clunky env var1 var1 = case lookup env var1 of Nothing -> fail Just val2 -> val1 + val2 where - fail = val1 + val2 + fail = var1 + var2 @@ -2090,7 +2090,7 @@ option, you can use arbitrary types in both an instance context and instance head. Termination is ensured by having a fixed-depth recursion stack. If you exceed the stack depth you get a sort of backtrace, and the opportunity to increase the stack depth -with N. +with N. @@ -2107,7 +2107,9 @@ can be modified by two flags: and -fallow-incoherent-instances -, as this section discusses. +, as this section discusses. Both these +flags are dynamic flags, and can be set on a per-module basis, using +an OPTIONS_GHC pragma if desired (). When GHC tries to resolve, say, the constraint C Int Bool, it tries to match every instance declaration against the