Repository : ssh://darcs.haskell.org//srv/darcs/ghc

On branch  : master

http://hackage.haskell.org/trac/ghc/changeset/ced847471d693e458949ac42e8baf919dfec17e8

>---------------------------------------------------------------

commit ced847471d693e458949ac42e8baf919dfec17e8
Author: Ian Lynagh <[email protected]>
Date:   Tue Sep 6 23:12:56 2011 +0100

    Fix typos in comments

>---------------------------------------------------------------

 compiler/specialise/SpecConstr.lhs |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/compiler/specialise/SpecConstr.lhs 
b/compiler/specialise/SpecConstr.lhs
index 3debe8e..eb2372b 100644
--- a/compiler/specialise/SpecConstr.lhs
+++ b/compiler/specialise/SpecConstr.lhs
@@ -1491,15 +1491,15 @@ they are constructor applications.
 
 Note [Free type variables of the qvar types]
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-In a call (f @a x True), that we want to specialise, what varaibles should
+In a call (f @a x True), that we want to specialise, what variables should
 we quantify over.  Clearly over 'a' and 'x', but what about any type variables
 free in x's type?  In fact we don't need to worry about them because (f @a)
 can only be a well-typed application if its type is compatible with x, so any
-varaibles free in x's type must be free in (f @a), and hence either be gathered
+variables free in x's type must be free in (f @a), and hence either be gathered
 via 'a' itself, or be in scope at f's defn.  Hence we just take 
   (exprsFreeVars pats).
 
-BUT phantom type synonums can mess this reasoning up, 
+BUT phantom type synonyms can mess this reasoning up, 
   eg   x::T b   with  type T b = Int
 So we apply expandTypeSynonyms to the bound Ids.  
 See Trac # 5458.  Yuk.



_______________________________________________
Cvs-ghc mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/cvs-ghc

Reply via email to