simonpj     2005/07/12 07:50:10 PDT

  Modified files:
    ghc/compiler/typecheck TcSimplify.lhs 
  Log:
  An earlier commit, liberalising the defaulting rules for ghci,
  messed up the handling of defaulting at the top level.  This
  commit fixes it.
  
  The current story is that if there's an ambiguous top-level
  multi-parameter constraint (C a b), then a,b won't be defaulted,
  regardless of how a,b are used otherwise.  A type variable is
  defaulted only if it's constrained by single-parameter type classes,
  even in the more-liberal GHCi.
  
  tcfail142 tests this case.
  
  Revision  Changes    Path
  1.160     +22 -15    fptools/ghc/compiler/typecheck/TcSimplify.lhs
_______________________________________________
Cvs-ghc mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/cvs-ghc

Reply via email to