patch applied (ghc-6.12/ghc): Fix Trac #3813: unused variables in GHCi bindings

Ian Lynagh igloo at earth.li
Sat Jan 30 17:02:13 EST 2010


Wed Jan 20 01:45:33 PST 2010  simonpj at microsoft.com
  * Fix Trac #3813: unused variables in GHCi bindings
  
  In a GHCi stmt we don't want to report unused variables, 
  because we don't know the scope of the binding, eg
  
  	Prelude> x <- blah
  
  Fixing this needed a little more info about the context of the stmt,
  thus the new constructor GhciStmt in the HsStmtContext type.

    M ./compiler/deSugar/DsExpr.lhs +3
    M ./compiler/deSugar/DsMeta.hs -7 +13
    M ./compiler/hsSyn/HsExpr.lhs -1 +4
    M ./compiler/rename/RnEnv.lhs -1
    M ./compiler/rename/RnPat.lhs -5 +13
    M ./compiler/typecheck/TcMatches.lhs -2 +1
    M ./compiler/typecheck/TcRnDriver.lhs -3 +3

View patch online:
http://darcs.haskell.org/ghc-6.12/ghc/_darcs/patches/20100120094533-1287e-717b6814924793381d101dce4c8a767a6212c819.gz



More information about the Cvs-ghc mailing list